Skip to content

ci(scripts): test_auto_format_workflow.py (5 tests pinning auto-format's record-success/staging rules) run by no workflow #7664

Closed

Description

@dezren39

Problem

scripts/tests/test_auto_format_workflow.py (262 lines, 5 tests) — the suite that exercises the auto-format workflow's real run block against a synthetic git history — is run by no workflow, flake check, or just recipe. The auto-format workflow's trickiest behavior (its success-recording and staging rules, both previously broken) is pinned only here, and nothing executes the pins.

Evidence (verified this run, laptop primary @ 89c759a)

Why it matters

Auto-format runs unattended on main and commits directly. Its two historical failure modes — silently not recording success (so ranges get reprocessed or skipped) and dropping tracked formatter changes — are exactly what this suite pins. With the suite unwired, a future edit to the workflow's run block can reintroduce either failure with no signal.

Acceptance criteria

  • The suite runs in CI on changes to scripts/tests/test_auto_format_workflow.py and .github/workflows/auto-format.yml (e.g. a named step in scripts-test.yml, mirroring its sibling suites).
  • The suite is green on current main in that venue.
  • The wiring survives a deliberate break check: mutating the run block's success-recording path makes the CI step fail (or the attempt is recorded on this issue).

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  3. added
    area/ciCI/CD pipelines, workflows, and build automation (area)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 8, 2026
  4. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — awaiting triage

  6. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged + picked up (inline triage, #8187)

    • Agent: queue worker (repo-worker-code), lane code-v
    • Session / ID: task 13618
    • Triage: work kind small-fix (task/small-fix, already on the issue); priority/normal (a dead CI venue leaves the auto-format workflow's two historical failure modes unpinned); effort/xs; kind/ci already present. status/needs-triage removed; fix proceeds in this same claim.
    • First step: add a named step for test_auto_format_workflow.py to the update-nixpkgs-inputs-contract job in .github/workflows/scripts-test.yml, mirroring the sibling suite steps; scripts-test already triggers on every PR and push to main, so the suite will run on changes to the test file and to auto-format.yml.
    • Acceptance check: suite green on current main in that venue (hand-run locally now), and a deliberate-break mutation of the run block's success-recording path makes the suite fail (recorded on this issue).
    • Dedup note: open PR ci(auto-format): retry after main push races #6200 adds a sixth test to the same test file (shepherding = task 12729); it does not touch scripts-test.yml, so no overlap with this wiring change.
  7. added
    queue/claimedQueue worker lifecycle state
    and removed on Nov 11, 2026
  8. 30 remaining items

  9. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 11, 2026
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up + wiring shipped as PR #8640 — parked on CI + Codex

  11. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  12. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (resume) — merged

  13. added a commit that references this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciCI/CD pipelines, workflows, and build automation (area)effort/xsTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions