Skip to content

acc: Avoid selecting entire invariant suites when adding exclusions - #7307

Draft
janniklasrose wants to merge 2 commits into
mainfrom
janniklasrose/fix-regression-test-selection
Draft

janniklasrose wants to merge 2 commits into
mainfrom
janniklasrose/fix-regression-test-selection

Conversation

@janniklasrose

@janniklasrose janniklasrose commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Changes

Stop selecting an entire invariant suite when its test.toml only adds exclusions. Script changes, removed exclusions, and overrides of inherited rules still select the suite.

The new Git-backed acceptance/selftest/selection_exclusions has two suites, migrate and no_drift. Adding new.yml.tmpl and excluding it from migrate selects only no_drift/INPUT_CONFIG=new.yml.tmpl. Changing the migration script or removing its exclusion selects the migration suite again.

The harness also omits unselected variants from the report and explicitly skips a directory if no selected variants remain after exclusions.

Why

The report on #7094 had 660 rows for 14 selected entries: 551 filtered-out variants and 84 unrelated migration cases. Those rows filled the comment budget and hid all 16 failure details. limit=20 caps selection entries; one directory entry can expand to many matrix variants.

Tests

  • ./task fmt, ./task checks, and ./task lint pass.
  • ./task test passes. Both variants of the existing presets_name_prefix_dev test passed on retry after a temporary sandbox /tmp/.git artifact caused Git metadata mismatches.
  • Git-backed acceptance self-test covers adding an exclusion, changing the script, and removing the exclusion.
  • Targeted selection, regression-report, and subset unit tests pass.
  • Verified with the actual harness that combination exclusions removing every selected variant produce a skip.

This PR and its description were written by Codex.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: ce1ff05

Run: 41680545695

Env 🔄​flaky ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 271 16 13:48
🔄​ aws-windows-latest-4core-16gb 1 272 14 12:08
✅​ azure linux-2core-8gb 270 16 10:25
✅​ azure-windows-latest-4core-16gb 272 14 10:03
🔄​ gcp linux-2core-8gb 1 270 16 10:44
🔄​ gcp-windows-latest-4core-16gb 1 272 14 10:31
Test Name aws-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
🔄​ TestSyncIncrementalFileSync 🔄​f 🔄​f ✅​p
🔄​ TestSyncIncrementalSyncPythonNotebookToFile ✅​p ✅​p 🔄​f
Top 25 slowest tests (at least 2 minutes):
duration env testname
3:49 aws-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
3:43 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
3:41 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsRead
3:17 aws linux-2core-8gb TestFilerRecursiveDelete/workspace_files
3:13 gcp-windows-latest-4core-16gb TestAccept
3:11 azure-windows-latest-4core-16gb TestAccept
3:10 gcp-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
3:06 aws-windows-latest-4core-16gb TestAccept
2:57 gcp-windows-latest-4core-16gb TestFilerWorkspaceNotebook/sqlJupyterNotebook.ipynb
2:55 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsReadDir
2:51 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsStat
2:47 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsReadDir
2:45 aws linux-2core-8gb TestLock
2:40 aws-windows-latest-4core-16gb TestImportDir
2:28 aws-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsDelete
2:23 aws linux-2core-8gb TestFilerReadWrite/workspace_files_extensions
2:22 gcp-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsStat
2:22 aws-windows-latest-4core-16gb TestFilerReadWrite/workspace_files_extensions
2:20 azure linux-2core-8gb TestFilerRecursiveDelete/workspace_files
2:20 gcp-windows-latest-4core-16gb TestFilerRecursiveDelete/workspace_files
2:15 azure-windows-latest-4core-16gb TestFilerWorkspaceFilesExtensionsRead
2:10 azure-windows-latest-4core-16gb TestFilerReadWrite/workspace_files
2:09 gcp linux-2core-8gb TestFilerRecursiveDelete/workspace_files
2:05 gcp linux-2core-8gb TestAccept
2:01 aws linux-2core-8gb TestFilerWorkspaceFilesExtensionsStat

@denik denik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear what this does. We have acceptance test

acceptance/selftest/selection

maybe add similar one that demoes this feature?

@janniklasrose janniklasrose changed the title acc: Avoid selecting unchanged invariant test variants acc: Avoid selecting entire invariant suites when adding exclusions Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Commit: ce1ff05f7 | Workflow run

Regression test report

Selected 1 changed tests (limit=20, 0 not selected)

1 tests: regression=0 unreleased=0 coverage=1 failing=0
test branch main (44f2eda) latest (v1.23.0)
TestAccept/selftest/selection_exclusions ✅ ✅ ✅

This branch has not been deployed

No deployments
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.

3 participants