Skip to content

CI/agent loop: restore green main before dispatching low-priority work #975

Closed

Description

@godofecht

At commit b54bf3bfce0a77383d62f33f550d6f2aa0924c53 (Flow 2.0.0 relicense/version bump), main CI is not green.

The current CI run has at least two substantive failures: Ruff reports 24 errors, including an undefined func_name in src/flow/mlir_jit.py; the self-host roundtrip fails because compiler/src/lexer.flow references unbound KW_SHADER. PR #966 reports a fix for the lexer/import side, so this issue should coordinate rather than duplicate that work.

The agent dispatcher should treat failing main as backpressure: prioritize restoring the baseline and avoid spawning low-value cleanup/performance work until the required gates are healthy.

Acceptance criteria:

  1. Land or supersede the existing fix for the KW_SHADER self-host failure.
  2. Fix the current Ruff errors on main without masking them or weakening lint.
  3. Re-run required CI on the resulting main commit and record the green run.
  4. Add dispatcher priority logic so broken required CI gates outrank cosmetic/refactor/micro-performance tasks.
  5. Do not create duplicate repair PRs when an existing PR already covers a failing gate.

Activity

  1. godofecht commented on Sep 27, 2026

    @godofecht
    ContributorAuthor

    Progress: #980 has merged and cleared the 24 Ruff errors on main. #966 remains the existing self-host repair path for the KW_SHADER/compiler baseline; I am not duplicating it. PR #971 now also treats red main CI as dispatcher backpressure, pausing low-priority work while keeping repair-class work eligible.

  2. godofecht commented on Oct 1, 2026

    @godofecht
    ContributorAuthor

    Main is green again on commit 47af1872 after the compiler-gate, MLIR golden, shellcheck, and script-reference fixes. Verified by CI run 36896703953: parity gates passed, native tools passed, parse coverage passed, fuzz passed, and the path-filtered self-host/corpus checks were skipped for this FIR-G-only change. The full self-host and corpus gates passed on the preceding merged compiler-gates run 36892452204.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions