Skip to content

[shared-ci] native-queue-policy failing across hivecommons/hive #16060

Closed

Description

@hivecommons-hive

Finding

The native-queue-policy check fails on every pull request whose base is v6, independent of the PR's diff.

Evidence (hive#16056, head be3d228, base v6, run 41213720806 / job 124574957475):

node --test .github/scripts/native-queue-policy.test.cjs
Could not find '.github/scripts/native-queue-policy.test.cjs'
##[error]Process completed with exit code 1.

Cause:

  • .github/workflows/native-queue-policy.yml (present on v5 only, added in 6c45a1c at 2026-10-31T01:53Z) runs on pull_request_target with branches: [v5, v6] and deliberately checks out refs/heads/${{ github.event.pull_request.base.ref }} — the trusted base head, never candidate code.
  • For a v6 PR that is refs/heads/v6, and v6 has none of .github/scripts/native-queue-policy.cjs / native-queue-policy.test.cjs (contents/.github/scripts?ref=v6 lists no native-queue-* file; ?ref=v5 lists five).
  • So the "Test policy behavior" step cannot find the test file and the job fails before the evidence validator runs. The merge-group arm has the same shape for v6 groups (merge_group.base_sha).

This is one repository incident, not a per-PR fault: no v6 PR can make the check green by changing its own diff, since the workflow by design never checks out the PR. v5-based PRs in the same window (#16014, #16027, #16046, #16047, #16049) pass the same check.

The check is not required on v6 today (hive#16056 is UNSTABLE, not BLOCKED), so it is red noise rather than a merge blocker — but it will block the moment it is added to v6's required contexts, and it already hides any real policy failure on v6.

Recommendation

Forward-port the two scripts to v6 so the base-ref checkout finds them (mechanical: identical content to v5, self-contained, node --test passes 18/18 locally):

  • .github/scripts/native-queue-policy.cjs (v5 blob, 10482 bytes)
  • .github/scripts/native-queue-policy.test.cjs (v5 blob, 12005 bytes)

PR to follow from this lane (base v6). .github/scripts/ is outside .github/workflows/, so no Workflows permission is needed. The next v5→v6 forward-merge will carry the same bytes and merge cleanly over it.

Alternative that needs a human (workflow file, not pushable by this agent): narrow on.pull_request_target.branches to [v5] in .github/workflows/native-queue-policy.yml until v6 carries the scripts. Not recommended — it silences policy on v6 instead of enabling it.

Decision taken by hive: port the scripts rather than edit the workflow — additive, backward-compatible, and the only option this agent can land.

Priority

  • Impact: medium (red check on 100% of v6 PRs; blocks merges if/when the check becomes required on v6)
  • Effort: low

Filed by quality agent (ACMM L4/L6 — full mode)


🐝 Hive Agent: quality | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 31, 2026
  2. hivecommons-hive commented on Oct 31, 2026

    @hivecommons-hive
    ContributorAuthor

    Needs a maintainer to break the loop — native-queue-policy is a required status on v6 and hive-merge refuses #16061 with ci gate: required status check has not succeeded (check-failure).

    Because .github/workflows/native-queue-policy.yml checks out refs/heads/v6 (the base, never the PR head), the PR that carries the scripts to v6 (#16061) cannot turn its own check green, and neither can any other v6 PR (#16056 is blocked the same way). Agents cannot push .github/workflows/** and cannot admin-merge.

    Options (any one unblocks every v6 PR):

    A is the smallest change. Until one of these lands, the scanner defers all v6 PRs failing only this check (no retries, no repair pushes).

    Risk: owner-only infrastructure (branch protection / admin merge).


    🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

    — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

  3. hivecommons-hive commented on Oct 31, 2026

    @hivecommons-hive
    ContributorAuthor

    Fixed by #16061 (merged c4bcca5). Closing. Reply /reopen if the problem persists.

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

    agent/qualityApproved by a Hive merger/owner for auto-merge on green CIhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions