Skip to content

fix(ci): unblock merge queue evictions - #24056

Merged
kalverra merged 1 commit into
developfrom
fix/ci-merge-queue-unblock
Oct 22, 2026
Merged

kalverra merged 1 commit into
developfrom
fix/ci-merge-queue-unblock

Conversation

@kalverra

@kalverra kalverra commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Every PR entering the develop merge queue has been evicted since #23555 landed (~16:11 UTC today) by two independent CI bugs. This fixes both.

Notes

  • The ci-deployments gate listed its own run's jobs from the Actions Jobs API, which reports conclusion: null for jobs that finished seconds earlier. The gate starts seconds after the last shard, so it failed 4 of the last 60 Deployment Tests runs with all 7 shards green.
  • In merge_group runs GITHUB_REF_NAME is gh-readonly-queue/<base>/<branch>, so TestRunnerSpot_CLI_Human resolved spot=false instead of spot=co even though it passed --event push --ref refs/heads/develop. It only fails under merge queue env.
  • The required check name Core Tests (go_core_deployment_tests) is unchanged; branch protection is unaffected.

Changes

Deployment shard gate reads the workflow result instead of the Jobs API
  • deployment-tests-result now checks needs.deployment-tests.result, the same pattern as the lint gate in ci-core.yml.
  • A skipped matrix now passes instead of failing with Expected 7 rows, got 0.
  • Drops the unused shard-count output and the actions: read permission.
Spot CLI test pinned to its own ref instead of ambient merge-queue env
  • TestRunnerSpot_CLI_Human now passes --ref-name develop --ref-type branch.
  • tools/ci suite verified green with GITHUB_REF_NAME, GITHUB_REF, and GITHUB_EVENT_NAME set to merge-queue values.

Two independent CI bugs evict runs from the develop merge queue.

ci-deployments: the shard gate listed its own run's jobs from the Actions
Jobs API. That API reports `conclusion: null` for jobs that finished
seconds earlier, and the gate always starts seconds after the last shard,
so it failed 4 of the last 60 runs with every shard green. Read
`needs.deployment-tests.result` instead, as the `lint` gate in ci-core.yml
already does. Drops the now-unused `shard-count` output.

tools/ci: TestRunnerSpot_CLI_Human passes `--event` and `--ref` but leaves
`--ref-name` unset, so the CLI falls back to ambient GITHUB_REF_NAME. In a
merge_group runner that is `gh-readonly-queue/<base>/<branch>`, which trips
isMergeQueue() and returns spot=false instead of spot=co. Every merge queue
run has failed CI Tools since the spot change landed. Pin `--ref-name` and
`--ref-type` so the test is hermetic.
@github-actions

Copy link
Copy Markdown
Contributor

👋 kalverra, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@kalverra
kalverra enabled auto-merge October 22, 2026 18:57
@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@kalverra kalverra added complexity:low pr-triage: low complexity risk:medium pr-triage: medium risk labels Oct 22, 2026
@kalverra

Copy link
Copy Markdown
Collaborator Author

PR Triage · Risk Medium · Complexity Low

Suggests 1 approval, including one from an owner. Suggested reviewers: @Tofel, @erikburt.

Level Why
Risk Medium .github/workflows/ci-deployments.yml: .github/workflows/ci-deployments.yml is a workflow edit; no High pattern matched
Complexity Low No metric or rule reached a threshold

Start Review Here

  1. .github/workflows/ci-deployments.yml
Visualizations

Score map

flowchart LR
  R["Risk: Medium"]
  r0[".github/workflows/ci-deployments.yml"] -->|"workflow edit"| R
  C["Complexity: Low"]
  cn["no rule or threshold applied"] --> C
  RT["Suggests 1 approval · one from an owner"]
  R --> RT
  classDef low fill:#dafbe1,stroke:#1a7f37,color:#1f2328;
  classDef medium fill:#fff8c5,stroke:#9a6700,color:#1f2328;
  classDef high fill:#ffebe9,stroke:#cf222e,color:#1f2328;
  class R medium;
  class C low;
Loading

Change shape

pie title Change shape
    "Tests" : 24
    "Source" : 359
Loading

— concentrated in .github/workflows/ci-deployments.yml

Files: 2 changed

Workflow changes

File Risk Change
.github/workflows/ci-deployments.yml Medium edit
File Risk Complexity Why
.github/workflows/ci-deployments.yml Medium Low .github/workflows/ci-deployments.yml is a workflow edit; no High pattern matched
tools/ci/cmd/runner_test.go Low Low
Why these reviewers
Reviewer Share Last commit
@Tofel 44% 2026-05-12
@erikburt 20% 2026-06-17

Others who know this code: jmank88 19%, FelixFan1992 17%.

Ranked by commits to the changed files in the 360 days before the head commit; newer commits count more. Requested everyone with at least 20% of the score, up to 4. Added 1 reviewer below that to reach 2 reviewers. Excluded the PR author, @kalverra. Considered only current members of the repository's organization.

Metrics and policy
Metric PR value Scale Medium at High at
logic added (cognitive delta) 0 [░░░░░░│░░░░░░░░░░░░│] 15 45
syntax change (AST delta) 24 [█░░░░░░░░░░░░░░░░░░│] 1,600 —
new code size (Kolmogorov delta) 387 [█████░░░░░░░░░░░░░░│] 1,600 —
most complex function (max function cognitive complexity) 0 [░░░░░░░░░░░░░░░░░░░│] 70 70

Risk signals: change spread ○ · subsystems ○ · hotspot ○ · blast radius ○ · author familiarity ○ · floor Low

pr-triage v0.0.0-20261022180816-8d1680a70e5d+dirty · policy 5559f2e


What is this? · How is this calculated?

@kalverra
kalverra added this pull request to the merge queue Oct 22, 2026
@cl-sonarqube-production

Copy link
Copy Markdown

Merged via the queue into develop with commit 8633a06 Oct 22, 2026
265 of 270 checks passed
@kalverra
kalverra deleted the fix/ci-merge-queue-unblock branch October 22, 2026 19:26
@trunk-io

trunk-io Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

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

Labels

complexity:low pr-triage: low complexity risk:medium pr-triage: medium risk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants