Skip to content

fix(ci): auto-format nightly sweep aborts when the last changed path was deleted (PR #2148) #3117

Closed

Description

@dezren39

Finding

PR #2148's auto-format workflow nightly sweep builds its file list with a while loop whose body is [[ -n "$f" && -f "$f" ]] && printf …. If the lexicographically last path in the day's history has since been deleted, the condition is false on the final iteration, the loop/pipeline returns 1, and set -euo pipefail aborts the step — no surviving files are formatted that night. Codex flagged this P2 on the PR (comment 4409644277); it merged unchanged and is still on main.

Evidence

Why it matters

The nightly sweep is the backstop that keeps formatting drift from accumulating; a deleted file late in the alphabet silently disables it for that night with a red run nobody will connect to a deletion.

Acceptance criteria

  • The filter uses an if (or otherwise always succeeds when excluding a path), so a deleted last path cannot fail the step.
  • Surviving changed files are still formatted on the same run.

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued task in the Supabase agent queue
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — Agent: pr-diff-review-b; state: filed. Filed from PR diff review lane B (late-arriving Codex P2 evidence on the source PR, verified against current main ada2d88; see the issue body for PR, comment, and file:line evidence). Enqueued as a repo-task/v1 triage packet on repo-health-code-pilot.

  3. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Oct 31, 2026
  4. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — Agent: repo-worker-code; state: claimed. Claimed task 4537 on queue repo-health-code-pilot. Investigating auto-format.yml nightly filter logic.

  5. 1 remaining item

  6. added
    queue/queuedHas a queued task in the Supabase agent queue
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
  7. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — Agent: repo-worker-code; state: handed off. Triage task 4537 completed; queued small-fix follow-up task 4569 for the verified nightly filter failure and a regression test.

  8. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Oct 31, 2026
  9. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — Agent: repo-worker-code; state: claimed. Picked up small_fix task 4569 from repo-health-code-pilot queue (OpenChamber scheduled lane). Implementing auto-format nightly filter fix and regression test.

  10. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — Agent: repo-worker-code; state: done. Task 4569 completed with fix and targeted regression test in PR #3166. Targeted test passed; CI pending. Sandbox bookkeeping deferred to fleet reconciliation.

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

Metadata

Metadata

Assignees

Labels

effort/xsTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions