Skip to content

acc: fix change detection skipping new tests on windows/macOS PRs#6047

Open
denik wants to merge 3 commits into
mainfrom
denik/fix-test-selection
Open

acc: fix change detection skipping new tests on windows/macOS PRs#6047
denik wants to merge 3 commits into
mainfrom
denik/fix-test-selection

Conversation

@denik

@denik denik commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Why

Subsetting is enabled only on the windows/macOS PR cells (TESTS_SELECT_SUBSET_PCT). There the subset selector runs git diff --merge-base origin/main to always run the tests a PR adds/changes, but the test job's shallow checkout has no origin/main, so the diff failed — and the error was swallowed, silently disabling change detection. New tests then fell through to the seeded hash and got skipped, which is how b82fa5c's invariant tests passed on PR yet failed on the nightly Windows run.

Follow up to #6019

Changes

  • push.yml: fetch origin/main (and unshallow the head) after setup-build-environment, which would otherwise re-shallow the repo.
  • selectChangedLocalTests: fail loudly on a failed diff instead of treating it as "nothing changed".

The acceptance subset selector runs `git diff --merge-base origin/main`
to always run the tests a PR adds/changes on the windows/macOS cells, but
the test job's shallow checkout has no origin/main, so the diff failed and
the error was swallowed, silently disabling change detection.

Fetch origin/main in CI and fail loudly on a failed diff instead.
@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/

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

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

Do not merge. Modifies selftest/basic/script so its golden comparison
fails, to confirm from CI logs that change detection runs this test on
the windows/macOS subset cells (not skipped by TESTS_SELECT_SUBSET_PCT).
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: e113e42

Run: 30025598938

Env 🟨​KNOWN 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 1 3 304 18 5:35
🟨​ aws windows 1 3 306 16 5:17
🟨​ azure linux 1 3 304 17 5:45
🟨​ azure windows 1 3 306 15 5:25
🟨​ gcp linux 1 1 303 19 5:32
🟨​ gcp windows 1 1 305 17 5:14
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
🟨​ TestAccept 🟨​K 🟨​K 🟨​K 🟨​K 🟨​K 🟨​K
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R

@denik
denik enabled auto-merge July 23, 2026 16:33
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