Skip to content

ci: flake checks the PR tier never runs — nix ci has no pull_request/push trigger, so deploy-list checks are unenforced on PRs #7322

Closed

Description

@dezren39

Problem

nix ci (.github/workflows/nix-ci.yml) has only schedule and workflow_dispatch triggers — no pull_request and no push. The PR-tier jobs it carries (basic: proxy port fallbacks in the copy, basic: NixOS host evaluation) and the flake checks that actually exercise repo packages therefore never run on a pull request at all; the dedicated proxy-port-fallbacks.yml covers only the one script.

Observed on PR #6432 (merged 2026-11-08 as b908d1d, closing #6383):

  • Head 9a5bb9cb has exactly one check run — CodeRabbit (neutral) — and zero Actions workflow runs.
  • The merge produced only the scripts-test and id push runs.
  • The PR's evidence line claimed nix build --no-link .#checks.x86_64-linux.deploy-list-malformed .#checks.x86_64-linux.deploy-list passed, but nothing in CI ever executed that check for the change. It landed on the PR author's own local run (or an unverified claim).
  • The nix ci schedule run for 2026-11-07 14:53Z was still queued at merge time, so the nightly backstop had not covered it either.

Why it matters

.github/ci-policy.md says the basic PR tier is the merge gate. For any change whose only real regression coverage is a flake check (deploy-list-malformed, deploy-list, the deploy registry checks, etc.), there is currently no gate: the merge queue validates basic: proxy port fallbacks only, and this class of check is not in it. A PR can claim a flake check passed and be merged without any independent execution.

Ask

Decide and implement one of:

  1. Add a pull_request trigger (with paths limited to the packages whose checks are cheap enough for the PR tier) to nix ci, promoting the relevant flake checks to basic: jobs; or
  2. Add a dedicated basic: deploy flake checks workflow (like proxy-port-fallbacks.yml) on pull_request + merge_group, running deploy-list and deploy-list-malformed; and
  3. Either way, make the merge-gate story explicit in .github/ci-policy.md so a PR body claiming a flake check passed is either backed by a check run or rejected.

Acceptance

  • A PR touching pkgs/deploy/** or lib/default.nix produces a required, basic:-prefixed check run that executes deploy-list and deploy-list-malformed.
  • The check appears in the PR check list within the normal PR-tier latency, and ci-policy.md names it.

Found while triaging #6383 (queue task 12524). Related: #6376, #5766.

Acceptance criteria

  • The problem described above is confirmed against current main (reproduced or traced to the named code path), or the issue is closed with that evidence.
  • A fix/implementation addressing the described behaviour is merged via PR referencing this issue, with tests naming their oracle where the change has meaningful invariants.
  • Related/sibling issues from the same filing batch are cross-linked and any dependency is recorded as a native blocked-by relation.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    app/deployPackage/app: deploy (pkgs/ or apps/ in this repo)
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  3. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 8, 2026
  4. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Agent note · filed

    Related: No merged PR or commit found at intake time that explicitly resolves this issue — it reads as live, not solved. Sibling/batch context, if any, is in the issue title/body.

    Notes: Acceptance criteria appended to the body by the monitor (original body preserved verbatim above the new section) when missing. Labels normalized by the monitor: priority/normal, effort/m, meta/enriched.

    Risks: Scope may overlap a sibling or parent decomposition — the triaging lane should confirm before implementing.

    Suggested approach: Triage through the queue; confirm scope against current main, record any dependency as a native blocked-by relation, then route to a fix packet.

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 8, 2026
  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  8. 31 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 9, 2026
  10. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: repo queue worker, lane opencode (repo-worker-code)
    • Session / ID: ses_e5e419eac2bffezpmUBh01Falg; task 13721
    • Verified against: origin/main c994bdb10f (2026-11-09T03:45Z)
    • Verdict: gap CONFIRMED, still live — not handled or superseded.

    Evidence

    • .github/workflows/nix-ci.yml on: is schedule (cron 17 8 * * *) + workflow_dispatch only — no pull_request, no push.
    • git grep deploy-list -- .github/workflows/ at c994bdb10f → no matches. No workflow runs deploy-list or deploy-list-malformed on any trigger.
    • The checks exist: lib/default.nix:1285 (checks.deploy-list) and lib/default.nix:1337 (checks.deploy-list-malformed), both runCommandLocal, so nothing exercises them on a PR.
    • No merged PR or commit resolves it (gh pr list --state merged --search 7322 → empty).

    Fix path (scoped — option 2)
    .github/ci-policy.md change class 4 says **.nix gets "class 1 + parse/eval of the changed files only (never full flake check on a PR)", so option 1 (broad pull_request trigger on nix ci) conflicts with stated policy. Option 2 fits:

    1. New .github/workflows/deploy-flake-checks.yml, modeled on proxy-port-fallbacks.yml: on: pull_request + merge_group, paths: pkgs/deploy/**, lib/default.nix, job name basic: deploy flake checks, running nix build --no-link .#checks.x86_64-linux.deploy-list .#checks.x86_64-linux.deploy-list-malformed.
    2. One .github/ci-policy.md row/sentence naming the check in the merge-gate story.
    3. Oracle: the PR check list shows the basic:-prefixed job executing both checks, and the policy names it.

    Blockers / ordering: none — the fix is independent. Related #5766 (open; deploy tool v1 parent feature) does not block it; #6376 is closed.

    Follow-on: fix task 14265 is now enqueued by this triage completion (dedupe repo-health:v1:fix:developing-today/code:issue:7322).

  11. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  12. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked (CI pending)

  13. added a commit that references this issue on Nov 9, 2026
  14. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done
    queue: repo-health-code-pilot
    task: 14265 (small_fix, worker repo-worker-code, lane code-e, direct)
    by: repo-worker-code lane code-e
    at: 2026-11-09T07:16:00Z

    PR #7964 MERGED (merge commit c2283a5); issue #7322 CLOSED via the PR Fixes keyword. Fresh verification this shift: PR #7964 OPEN at checkpointed head 209cb5a, mergeable, +71/-0 across .github/workflows/deploy-flake-checks.yml, .github/ci-policy.md, .github/test-suite-registry.json; no hard-stop labels on PR #7964 or issue #7322. The new workflow check run (basic: deploy flake checks) appeared on the PR, proving the workflow parses and triggers; registry JSON validated on the laptop; Codex review had failed on Codex usage limits with zero findings (nothing to disposition, per the prior lane verified checkpoint). Remaining PR checks were QUEUED under the repo-wide Actions stall; merged per standing merge authority (CI runs on main only). Task 14265 completed fixed_merged.

  15. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 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

    app/deployPackage/app: deploy (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/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