Skip to content

Conversation

shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented Aug 21, 2025

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

@shreyas-goenka shreyas-goenka changed the base branch from main to archive August 21, 2025 11:12
@shreyas-goenka shreyas-goenka changed the base branch from archive to main August 21, 2025 11:12
@shreyas-goenka shreyas-goenka changed the base branch from main to archive August 21, 2025 11:22
@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Aug 21, 2025

Run: 17232791554

Env ✅‌pass 🔄‌flaky 🙈‌skip
✅‌ aws linux 310 489
✅‌ aws windows 311 488
✅‌ aws-ucws linux 427 384
✅‌ aws-ucws windows 428 383
✅‌ azure linux 310 488
✅‌ azure windows 311 487
✅‌ azure-ucws linux 427 383
🔄‌ azure-ucws windows 425 3 382
🔄‌ gcp linux 306 3 490
🔄‌ gcp windows 306 4 489
Test Name azure-ucws windows gcp linux gcp windows
TestAccept 🔄‌flaky 🔄‌flaky ✅‌pass
TestAccept/bundle/deploy/pipeline/allow-duplicate-names 🔄‌flaky 🔄‌flaky 🔄‌flaky
TestAccept/bundle/deploy/pipeline/allow-duplicate-names/DATABRICKS_CLI_DEPLOYMENT=terraform 🔄‌flaky 🔄‌flaky 🔄‌flaky
TestAccept/bundle/resources/pipelines/update ✅‌pass ✅‌pass 🔄‌flaky
TestAccept/bundle/resources/pipelines/update/DATABRICKS_CLI_DEPLOYMENT=terraform ✅‌pass ✅‌pass 🔄‌flaky

@@ -45,6 +46,7 @@ var (
LogRequests bool
LogConfig bool
SkipLocal bool
Dbr bool
Copy link
Contributor Author

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.

Copy link
Contributor

@Copilot Copilot AI left a 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))
Copy link
Contributor Author

@shreyas-goenka shreyas-goenka Aug 25, 2025

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.

Copy link
Contributor

@Copilot Copilot AI left a 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.

@shreyas-goenka shreyas-goenka marked this pull request as draft August 26, 2025 09:13
shreyas-goenka added a commit that referenced this pull request Aug 27, 2025
## 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
shreyas-goenka added a commit that referenced this pull request Aug 27, 2025
## 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.
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.

4 participants