Skip to content

ci(drift): wire the release wheel gate's test and shrink the budget - #1935

Merged
zackees merged 1 commit into
mainfrom
agent/wire-wheel-check-guard
Nov 6, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/wire-wheel-check-guard

Conversation

@zackees

@zackees zackees commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What

ci/test_wheel_check.py guards ci/wheel_check.py, the step release-auto.yml runs on every wheel before it reaches PyPI. It asserts three release-blocking policies: no embedded debug info in any native binary (ELF/Mach-O/PE section tables, not filenames), a per-wheel size budget, and the 10 GB project quota whose exhaustion stranded a release in #1756.

ci/gate_script_tests.toml already claimed that coverage, but nothing executed the module — it sat in KNOWN_UNWIRED. The ledger's claim was decorative.

This wires it into DRIFT_UNITTEST_MODULES (the single source of truth, so ci/local_gate.py picks it up too) plus the drift workflow step, drops it from KNOWN_UNWIRED, and lowers MAX_UNWIRED 5 → 4 so the shrink cannot regrow.

Why the test needed work first

Promoting it to a real gate exposed its weakest seam: all 12 existing tests drove a helper (debug_sections, check_wheels). main() — the exit code the release actually obeys — had no test. A main() that returned 0 regardless would publish a debug-info wheel with the entire suite green.

Three added (MainTests, 12 → 15 tests):

case asserted
unstripped wheel on disk rc 1 + a ::error:: annotation naming the member
clean wheel on disk rc 0, no annotation
empty argv usage error, SystemExit(2) — auditing nothing must not "pass"

Real output

  • gate module: Ran 15 tests in 0.007s — OK (was 12)
  • whole drift registry, 25 modules: Ran 406 tests in 10.2s — OK (was 391)
  • ruff check ci/local_suites.py ci/test_wheel_check.py → All checks passed
  • python ci/check_python_complexity.py → All checks passed
  • python ci/render_workflows.py --check → rc 0
  • ci.test_gate_script_coverage + ci.test_local_suites → 16 / 7 tests OK

RED, all four directions

  1. registry token removed and workflow token removed → a ci/test_*.py file that nothing runs is a decorative guard: … 'test_wheel_check'
  2. workflow token removed only → sequence mismatch (registry vs workflow)
  3. re-added to KNOWN_UNWIRED → both drop the now-wired module from KNOWN_UNWIRED and 5 not less than or equal to 4
  4. main() -> 0 → test_unstripped_wheel_fails_the_run_with_an_annotation: 0 != 1

Part of the decorative-guard burn-down: four entries remain (test_check_test_layout, test_lint_entrypoint, test_run_dylint, test_select_boards), matching the new MAX_UNWIRED = 4.

ci/test_wheel_check.py guards ci/wheel_check.py -- the step release-auto.yml
runs on every wheel before it uploads to PyPI (debug-info scan + the 10 GB
project quota that stranded 2.5.x in #1756). Nothing executed the test, so
the ledger's coverage claim was decorative.

Wire it into DRIFT_UNITTEST_MODULES (which propagates to ci/local_gate.py)
and the drift step, drop it from KNOWN_UNWIRED, MAX_UNWIRED 5 -> 4.

Promoting it to a real gate exposed its weakest seam: every existing test
drove a helper, and main() -- the exit code the release obeys -- had no test.
A main() returning 0 would publish a debug-info wheel with a green suite.
Added three: unstripped wheel -> rc 1 + ::error annotation, clean wheel ->
rc 0 with no annotation, empty argv -> usage error (exit 2).
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@zackees
zackees added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit c0ccc80 Nov 6, 2026
31 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant