-
Notifications
You must be signed in to change notification settings - Fork 108
Add runner for DBR tests #3453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add runner for DBR tests #3453
Conversation
|
acceptance/acceptance_test.go
Outdated
@@ -45,6 +46,7 @@ var ( | |||
LogRequests bool | |||
LogConfig bool | |||
SkipLocal bool | |||
Dbr bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could implicitly also rely on the DATABRICKS_RUNTIME_VERSION environment variable being set. But this feels more robust.
Either approach is good enough, though IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
deadline, ok := t.Deadline() | ||
if ok { | ||
// If -timeout is configured for the test, wait until that time for the job run results. | ||
run, err = waiter.GetWithTimeout(time.Until(deadline)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intention here really is to increase the timeout since the default one is too short. I suspect eventually we might need a custom poller here since even with a bigger timeout this method often fails due to some opaque TCP error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
## Changes The—workspace-tmp-dir option makes the acceptance testing framework run the test using the workspace file system instead of the local file mount. ## Why This option is necessary to simulate DABs in the workspace, since it runs the Databricks CLI on the workspace file system. ## Tests Manually. I've been using this function to run a couple of test runs in my other PR: #3453
## Why Feedback in #3453 (comment) recommended not using build tags. This PR enables these tests by default. These tests will be skipped when `-short` flag is provided. Note: We do not specify the `-short` flag in CI so these tests will run by default.
Changes
This PR adds a test runner that can run integration tests on DBR. A follow-up PR will use it to run integration tests on nightly jobs and PRs.
Why
Running integration tests on DBR is important for DABs in the workspace.
Tests
Manually running the test. All integration tests run and pass, except the ones that are broken on main right now, like
TestAccept/bundle/run/app-with-job