acc: always run acceptance tests locally - #6196
Conversation
Every acceptance test already runs against the testserver, so the Local test.toml knob only existed to opt out. Drop it: local runs include all tests by default, and DATABRICKS_TEST_SKIPLOCAL still skips them on cloud PR/integration runs.
These only restated the root default after Local was removed, so delete them.
Integration test reportCommit: 9a6b40a
8 interesting tests: 4 RECOVERED, 4 SKIP
Top 8 slowest tests (at least 2 minutes):
|
This does not need to be in PR description, it's already seen in the diff. |
| const ( | ||
| SkipLocalEnvVar = "DATABRICKS_TEST_SKIPLOCAL" | ||
|
|
||
| // SkipLocalAll skips every test with Local = true. | ||
| // SkipLocalAll skips every acceptance test. |
There was a problem hiding this comment.
We should probably delete this?
~/work/cli % git grep -B 5 DATABRICKS_TEST_SKIPLOCAL=true
Taskfile.yml- test-update-aws:
Taskfile.yml- desc: Update acceptance test output (integration, requires deco access)
Taskfile.yml- sources: *ACC_SOURCES_UPDATE
Taskfile.yml- generates: *ACC_GENERATES_UPDATE
Taskfile.yml- cmds:
Taskfile.yml: - "deco env run -i -n aws-prod-ucws -- env DATABRICKS_TEST_SKIPLOCAL=true go test ./acceptance -run ^TestAccept$ -update -timeout=1h -v"
and we should not support DATABRICKS_TEST_SKIPLOCAL=true anymore, right?
There was a problem hiding this comment.
This could be a follow up PR, given that it would be nice to merge this one quickly to minimize conflicts.
Approval status: pending
|
The Local knob was removed in #6196; regenerate the two out.test.toml files this branch adds so they match the current snapshot format.
Local is no longer a test.toml key; keeping it fails config loading.
#6196 removed the Local config field and rewrote the other test.toml files to drop it, but #5587 added this test.toml with Local = true around the same time, so it was not swept. The acceptance harness rejects undecoded keys, failing the test on config parse before any assertion runs. Remove the key. Co-authored-by: Isaac
#6196 removed the Local config field and regenerated every out.test.toml snapshot, but this test was added on this branch in parallel, so its committed snapshot still carried Local = true. The post-test "no files changed" check regenerates it and fails on the diff. Regenerate to match. Co-authored-by: Isaac
Changes
Drop the
Localtest.tomlknob. Every acceptance test already runs against the testserver, so local runs include all tests by default;Cloud/CloudSlowstill opt into real-workspace runs.DATABRICKS_TEST_SKIPLOCALkeeps skipping acceptance tests on cloud PR/integration runs (withwithchangedre-enabling touched tests).Most of the diff is mechanical
Local = trueremovals fromtest.toml/out.test.toml.After this merges, any
test.tomlthat still setsLocalwill fail config loading with an undecoded-key error. Drop theLocalline (tests always run locally now).Why
There are now no remaining
Local = falsetests. Keeping an opt-out that nobody uses invites new cloud-only gaps and forces everytest.toml/out.test.tomlto repeatLocal = true.