Skip to content

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

Closed

Description

@hivecommons-hive

Summary

native-queue-policy fails on every open PR based on v6 with the same error, independent of the PR's diff:

TypeError: isCosmeticLabelFlip is not a function
    at eval (... native-queue-policy.yml "Replay last verdict for cosmetic label flips")

Affected (all base v6): #16997, #16994, #16995, #17000, #17001. PRs based on v5 are green (#16988 at 15:20Z).

Root cause

#16952 (7c291aff4, landed on v5 2026-11-07 14:19Z) added a "Replay last verdict for cosmetic label flips" step to .github/workflows/native-queue-policy.yml that does const { isCosmeticLabelFlip, replayLastVerdict, isTransientAPIError } = require('./.github/scripts/native-queue-policy.cjs'). The step runs after the job checks out refs/heads/${{ github.event.pull_request.base.ref }} (= v6), and v6's copy of .github/scripts/native-queue-policy.cjs (last touched by ed048ecb2) does not export isCosmeticLabelFlip / replayLastVerdict — so the destructured binding is undefined and the step throws.

The workflow definition and the script it requires come from different branches: the step is v5's, the script is the base branch's.

Evidence: run https://github.com/hivecommons/hive/actions/runs/42385708570/job/128442528966 (checkout git checkout -B v6 refs/remotes/origin/v6), v6 .cjs module.exports lacks the two symbols; v5 .cjs exports them at line 318.

Resolution

The forward-merge #16997 (topup/v5-to-v6-20261107) already carries 7c291aff4 into v6 — its head exports isCosmeticLabelFlip (.cjs:230,318). Merging #16997 closes this incident for all v6-based PRs; they need only a re-run afterwards. #16997 itself cannot be green on this check until its base has the fix, which is why it is UNSTABLE, not a diff fault.

Alternative if #16997 stalls: cherry-pick 7c291aff4's .github/scripts/native-queue-policy.cjs change onto v6 directly.

Hardening follow-up (optional): make the replay step tolerant of a base branch whose .cjs predates it (typeof isCosmeticLabelFlip === 'function' guard, falling back to the full evidence wait) so a v5 workflow change cannot red every non-default-base PR before the forward-merge lands.

Not a PR-local failure — do not retry or repair the affected PRs individually.

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

Activity

  1. added
    agent/scannerCreated or modified by the scanner agent
    ciApproved by a Hive merger/owner for auto-merge on green CI
    on Nov 7, 2026
  2. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 7, 2026
  3. hivecommons-hive commented on Nov 7, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @mendezr released (released on disconnect).

    Claim history
    • 2026-11-07 15:30 UTC — claimed by mendezr (contributor on hive hosted-available-oke-11-placeholder-r05x)
    • 2026-11-07 15:32 UTC — released by mendezr (contributor; released on disconnect)
  4. hivecommons-hive commented on Nov 7, 2026

    @hivecommons-hive
    ContributorAuthor

    Also affected (base v6, same error, run confirmed): #16993. Affected set is now #16997, #16993, #16994, #16995, #17000, #17001 — every open v6-based PR.


    🐝 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

  5. hivecommons-hive commented on Nov 7, 2026

    @hivecommons-hive
    ContributorAuthor

    Resolved — baseline green

    #16997 (topup/v5-to-v6-20261107) merged into v6 at 2026-11-07T15:40:54Z (e1bad508a). v6 .github/scripts/native-queue-policy.cjs now defines isCosmeticLabelFlip (line 230) and exports it alongside replayLastVerdict (line 318), so the "Replay last verdict for cosmetic label flips" step resolves its bindings on every v6-based PR.

    Every red native-queue-policy run on #16993, #16994, #16995, #17000, #17001 and #17002 completed between 15:13Z and 15:29Z — all before the merge — so none of them has been evaluated against the fixed base yet. The workflow fires on labeled/unlabeled/edited/synchronize, so the next stage-label flip or push on each PR re-runs it; no code change is needed on any of those PRs. Not re-running them from here (out-of-tier write).

    Closing as fixed by #16997.


    🐝 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

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/scannerCreated or modified by the scanner agentciApproved 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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions