Skip to content

acc: replace DATABRICKS_TEST_SKIPLOCAL with DATABRICKS_TEST_SELECT_CHANGED=N - #6248

Open
denik wants to merge 7 commits into
mainfrom
denik/skiplocal-withchanged
Open

acc: replace DATABRICKS_TEST_SKIPLOCAL with DATABRICKS_TEST_SELECT_CHANGED=N#6248
denik wants to merge 7 commits into
mainfrom
denik/skiplocal-withchanged

Conversation

@denik

@denik denik commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • DATABRICKS_TEST_SKIPLOCAL=withchanged becomes DATABRICKS_TEST_SELECT_CHANGED=N, where N is the number of changed tests to select (was hardcoded at 50).
  • Tests are ranked before the cap applies: added, changed fixture (script, test.toml, ...), changed output (out*), moved. A regenerated golden lands on hundreds of dirs at once, so it must not crowd out the tests the branch actually edits.
  • Unselected tests are dropped rather than skipped one by one, and the selection is logged at startup, including how many changed tests did not fit the limit.
  • integration-short-skiplocal is renamed to cloud-select and kept as an alias, since that is the name the eng-dev-ecosystem CI job dispatches.
  • New ./task local-select runs the same selection locally against the testserver.

Why

"skiplocal" stopped meaning anything after #6196 dropped the Local knob — every acceptance test runs locally now, so the variable only selects the tests a branch touches.

…ANGED=N

N is the number of changed tests to select, previously hardcoded at 50.
Moved tests are now selected after added and modified ones, and the
selection is logged at startup.
@github-actions

Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @pietern -- recent work in .github/workflows/, ./, acceptance/
  • @radakam -- recent work in acceptance/, ./, .github/workflows/
  • @janniklasrose -- recent work in ./, acceptance/, .github/workflows/

Eligible reviewers: @andrewnester, @anton-107, @lennartkats-db, @rclarey, @renaudhartert-db, @rugpanov, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: c7f6735

Run: 31684692945

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 294 15 5:05
💚​ aws windows 4 296 13 3:06
💚​ azure linux 4 293 15 4:37
💚​ azure windows 4 295 13 3:06
💚​ gcp linux 1 1 294 15 5:16
💚​ gcp windows 1 1 296 13 3:20
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:12 gcp windows TestAccept
2:57 aws windows TestAccept
2:56 aws linux TestAccept
2:56 azure linux TestAccept
2:56 gcp linux TestAccept
2:55 azure windows TestAccept

denik added 3 commits August 12, 2026 14:51
local-select runs the same selection of changed tests locally against the
testserver. TestInprocessMode is skipped under test selection: it asserts
that two specific selftests ran, which does not hold when the selection
excludes them.
A skip per test dir buried the run in ~1100 SKIP lines and hid the
selection summary. local-select now runs plain `go test -v`, which shows
the summary and the tests that ran.
A regenerated golden usually comes from a change elsewhere and lands on
hundreds of dirs at once, which fills the quota and crowds out the tests
the branch actually edits. Order is now added, changed fixture, changed
output, moved.
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.

2 participants