Skip to content

infra: port the sanitizers workflow's two remaining shell steps to Python (GEN-005, #962) #2780

Closed

Description

@zackees

GEN-005 burn-down for the sanitizers workflow. After #2605 ported the harness (sanitize.sh, install-ubuntu-deps.sh), two inline run: blocks in .github/workflows/sanitizers.yaml remained over the rule's one-line shell budget, so the file kept its [[exceptions]] block.

step was now
jobs.matrix.steps[0] (id: pick) if/else block echoing the pass list into $GITHUB_OUTPUT ci/sanitizers_step.py select --tools "$TOOLS"
jobs.sanitize.steps[6] (Triage 🩺) [ -d ] guard + triage.py … | tee -a $GITHUB_STEP_SUMMARY ci/sanitizers_step.py triage "$SAN_OUT/<tool>"

Behaviour kept exactly: the same literal JSON for all (["asan","tsan","valgrind"]) and for one pass; the missing-results failure with its one-line summary and no stdout; the report on stdout and in the step summary; and the child's exit status, which bash -e -o pipefail propagated. The matrix job installs nothing today, so it gains its own pinned astral-sh/setup-uv step (same master-only save-cache expression as the sanitize job).

Evidence shape: a stdlib ci/test_sanitizers_step.py (RED on master: 13 failures + 1 error), a differential run of master's two blocks verbatim under bash -e -o pipefail against the new subcommands over the same fixtures (9/9 identical: $GITHUB_OUTPUT bytes, stdout, summary bytes, exit status), and ci-lint precheck's header 5 violation(s), 418 approved exception(s), 10 needs_review -> 5, 416, 10 with no other rule moving and no GEN-005 finding left for the path.

Refs #962.

Activity

  1. added
    infra
    on Oct 28, 2026
  2. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: investigation — the sanitizers workflow's two remaining GEN-005 steps.

    1. RED: ci/test_sanitizers_step.py (stdlib) pins select/triage in a new ci/sanitizers_step.py, the two one-line workflow steps, the matrix job's uv setup, and the absence of the path's GEN-005 block. 13 failures + 1 error on master.
    2. GREEN: the module, both workflow steps, one pinned astral-sh/setup-uv step in the matrix job, and the ci.toml block deleted; precheck header 418 -> 416 approved, no other rule moving.
    3. Proof that nothing changed: master's blocks run verbatim under bash -e -o pipefail against the new subcommands over the same fixtures, 9/9 identical in $GITHUB_OUTPUT bytes, stdout, summary bytes and exit status.

    PR is up (#2781 on infra/962-gen-005-sanitizers-steps, draft while CI runs). One PR for the whole unit.

  3. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    /ready

    Definition of Ready: one unambiguous unit (delete the path's GEN-005 block by porting both steps), a stdlib test that fails on master, and an offline differential for behaviour parity. No open question for a maintainer — it changes no trigger, job name or cache key.

  4. added
    needs-investigation
    on Oct 28, 2026
  5. added
    ready
    and removed
    needs-investigation
    on Oct 28, 2026
  6. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: the sanitizers workflow's two GEN-005 steps — PR #2781 on infra/962-gen-005-sanitizers-steps (draft while PR CI runs).

    • RED 278519bb4: ci/test_sanitizers_step.py, 12 tests, 13 failures + 1 error on master.
    • GREEN 6c8a9b5c1: the module, both one-line steps, the matrix job's pinned astral-sh/setup-uv, and the ci.toml block deleted.
    • Precheck header: 5 violation(s), 418 approved exception(s), 10 needs_review -> 5, 416, 10, no other rule moving, no GEN-005 finding left for the path.
    • Parity: master's blocks verbatim under bash -e -o pipefail vs the new subcommands, 9/9 identical (GITHUB_OUTPUT bytes, stdout, step-summary bytes, exit status).
    • The path keeps its CACHE-002, RUN-001 and WF-004 entries; nothing a user can observe changes, so no features ledger line.
  7. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Handed off: PR #2781 is ready and queued on master (position 2 behind #2779). PR CI green — Fast Gate ⚡ and Format 🔍 / checks pass, 0 of 33 checks failing.

    Remaining after the merge: nothing on this issue. The path's CACHE-002, RUN-001 and WF-004 entries stay (deliberate); the GEN-005 block is gone, which is the unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions