Skip to content

test(go): create basic validation scaffold#99

Merged
lidavidm merged 15 commits intomainfrom
test/go--set-up-validation-scaffold
Dec 31, 2025
Merged

test(go): create basic validation scaffold#99
lidavidm merged 15 commits intomainfrom
test/go--set-up-validation-scaffold

Conversation

@amoeba
Copy link
Collaborator

@amoeba amoeba commented Dec 22, 2025

What's Changed

Creates a basic validation suite scaffold for the Go driver.

Closes #96

This can be a regex but this should work too
@amoeba amoeba requested a review from lidavidm December 30, 2025 22:32
@amoeba
Copy link
Collaborator Author

amoeba commented Dec 30, 2025

There was an issue my DriverQuirks config which I fixed in 6ace295. validate and gendocs now run fine locally with the proper Databricks env vars set up. gendocs still fails here in CI but that seems like it has to do with the fact that validation is skipped so that's something we can fix by setting up CI.

@lidavidm can we merge this after you review and @Mandukhai-Alimaa can continue from there?

Copy link
Contributor

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Mandukhai-Alimaa I'm going to merge, but please note these things to fix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we just hardcode the driver name? (We can let Mandy fix this later.)

Comment on lines +20 to +21
markers =
feature: test for a driver-specific feature
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
markers =
feature: test for a driver-specific feature
markers =
feature: test for a driver-specific feature
ignore:record_property is incompatible with junit_family:pytest.PytestWarning

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Where is this being copied from?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably mysql. I think trino is like this too. Do both need updating?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should be treating warnings as errors.

Also I just noticed I did this wrong, it should be

Suggested change
markers =
feature: test for a driver-specific feature
markers =
feature: test for a driver-specific feature
filterwarnings =
error
ignore:record_property is incompatible with junit_family:pytest.PytestWarning

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll PRs here and elsewhere in a sec.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +25 to +26
vendor_version = "v1.9.0"
short_version = "v1.9.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this is the driver version and not the vendor version; that needs to be fixed

# I copied in the members of DriverFeatures here and set them all to False
# or None. TODO: Disable/enable what should be enabled/disabled.
features = model.DriverFeatures(
connection_get_table_schema = False,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to set up the Python linter as with other repos

@lidavidm lidavidm merged commit f36a521 into main Dec 31, 2025
13 of 20 checks passed
@lidavidm lidavidm deleted the test/go--set-up-validation-scaffold branch December 31, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(go): set up validation suite for Go driver

2 participants