Skip to content

ci: replace Janitor with native PR concurrency - #1592

Merged
lklimek merged 4 commits into
devfrom
ci/replace-janitor
Nov 6, 2026
Merged

lklimek merged 4 commits into
devfrom
ci/replace-janitor

Conversation

@lklimek

@lklimek lklimek commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

TL;DR: Cancel superseded pull-request checks automatically using GitHub's built-in workflow controls.

User story

As a Tenderdash maintainer, I want newer PR checks to replace older ones, so that CI capacity is spent on the latest changes.

Scenario

Base flow

Push another commit while checks for the same pull request are running or queued.

Actual behavior

The Janitor cleanup job relies on a third-party action and obsolete numeric workflow IDs.

Expected behavior

Each verification workflow cancels its superseded PR runs directly, with separate queues for other PRs and workflows.

Detailed discussion

What was done

  • Remove .github/workflows/janitor.yml.
  • Add workflow-level native concurrency to nine PR verification workflows.
  • Scope groups by workflow, event type and PR number. Non-PR runs use a unique run ID, protecting both running and pending push/manual runs from replacement.
  • Preserve the existing documentation publication and label-aware review concurrency rules.
  • Targets v1.8-dev, which includes ci: build and test on Ubuntu 26.04 #1590’s Ubuntu 26.04 runner changes.

Testing

  • Local expression and queue scenarios cover PR supersession, fork/PR/workflow isolation, workflow-level matrix scope, and non-PR event isolation.
  • Existing documentation/review workflow files verified unchanged.
  • YAML parsing, whitespace checks and targeted actionlint pass. The installed actionlint version's outdated Ubuntu 26.04 label warning is filtered.
  • Workflow configuration only; no runtime suite or live cancellation experiment was run.

Breaking changes

None.

Prior work

Attribution

🤖 Co-authored by Claudius the Magnificent AI Agent

PR Hygiene · eaf4e0f

  • Bots — thepastaclaw ✓
  • Self-review — posted; again after any push
  • Build green
  • Approvals — you own every area touched; none needed

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

lklimek and others added 2 commits November 4, 2026 15:48
Select explicit Ubuntu 26.04 runners for builds and tests, and use slim
runners only for bounded metadata and Pages deployment jobs. Exercise
native build and workflow changes through the affected CI gates.

Set the minimum CMake policy for bundled BLS dependencies, and isolate
native caches by runner image and build inputs.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Codex GPT-6 <[email protected]>
Cancel superseded PR verification runs within each workflow. Use distinct
event and run namespaces so push and manual runs remain independent.
Preserve existing documentation publication and Claude review concurrency.

Remove the legacy Janitor workflow and its hard-coded upstream workflow IDs.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Codex GPT-6 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

lklimek commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

/self-reviewed

Reviewed e380a5f against #1590. Janitor is removed; nine verification workflows use native concurrency isolated by workflow/event/PR. Non-PR runs use unique IDs, preserving pending and running push/manual runs. Existing documentation publication and label-aware review files are unchanged.

Validation: YAML parsing, targeted actionlint, whitespace checks and 92 local expression/queue scenario checks pass. No runtime code changes or live cancellation experiment.

🤖 Co-authored by Claudius the Magnificent AI Agent

@thepastaclaw

thepastaclaw commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Final review complete — no blockers (commit eaf4e0f) · triage: low

@lklimek lklimek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/self-reviewed

@lklimek
lklimek marked this pull request as ready for review November 4, 2026 16:19
Base automatically changed from ci/ubuntu-runner-compatibility to v1.8-dev November 4, 2026 16:51
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Nov 4, 2026
Retain the intentional Janitor deletion after the Ubuntu runner migration
was squash-merged. Preserve the original native concurrency patch and all
current base tooling without changing the feature tree.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Codex GPT-6 <[email protected]>
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@lklimek
lklimek enabled auto-merge (squash) November 4, 2026 18:01

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

Verified the combined reviewer evidence against exact head a984490; no actionable issues were found. All nine workflow-level concurrency groups isolate workflows, events, and PRs, preserve independent non-PR runs, and leave the existing documentation/review concurrency unchanged; the Docker-only base drift does not supersede or conflict with these changes. Current CI code checks all pass, with only PR Hygiene pending; validation was static, so live cancellation behavior remains unverified.

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — The diff is a small, contained CI behavior change that replaces a cleanup workflow with repeated native concurrency settings whose scope and cancellation behavior are straightforward to verify.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 99% left, weekly 59% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer

@github-actions github-actions Bot added waiting-self-review Waiting for the author to post /self-reviewed and removed waiting-bots Waiting for the review bots to report on this head labels Nov 4, 2026
@Claudius-Maginificent Claudius-Maginificent added the priority: high High priority — address soon label Nov 5, 2026
@github-actions github-actions Bot removed the waiting-self-review Waiting for the author to post /self-reviewed label Nov 5, 2026
Preserve the dev integration-branch triggers and release tooling while
retaining workflow-scoped PR cancellation and the obsolete Janitor deletion.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Codex GPT-6 <[email protected]>
@lklimek

lklimek commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

/skip-bots

@lklimek

lklimek commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

/self-reviewed

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review — Final validation — Phase 1 + Phase 2

At eaf4e0f, the nine concurrency additions correctly isolate workflows, PRs, and non-PR runs while preserving the existing documentation and review policies. One path-filtered PR verification workflow remains outside the stated cancellation policy. The supplied CI snapshot and current PR checks show no failed code checks; this static review did not run builds, tests, or a live cancellation experiment.

🟡 1 suggestion(s)

1 finding(s) not shown inline (the lines are not part of this PR's diff)

🟡 Suggestion: Include release-tooling verification in PR concurrency
.github/workflows/release.yml:28

The PR's expected behavior is that each verification workflow cancels superseded PR runs, but this workflow still has no concurrency group. Its pull_request trigger covers release scripts, Makefile, and its own configuration, and its steps only perform local validation—not release publication. Successive pushes affecting those paths therefore leave superseded checks running or queued. Although this gap predates the diff, it is a missed sibling of the repository-wide cancellation policy being implemented here. Add the same workflow-level concurrency block; if this remaining workflow is deferred, link a tracking issue or follow-up PR.

concurrency:
  group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:

source: glm-5.3-flash (phase1-reviewer: general); gpt-6.1-sol (phase2-reviewer: general)

Review provenance

Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)

  • Triage: low by gpt-6.1-sol (effort low) — The diff is a small, contained CI behavior change that replaces Janitor cleanup with straightforward workflow-level concurrency settings across nine verification workflows.
  • Phase 1 reviewers: glm-5.3-flash — general (completed, effort high); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 84% left, weekly 50% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh final gate: an independent Phase-2 review ran after iterative findings were reconciled
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer, gpt-6.1-sol — general (completed, effort medium); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify each finding against the current code and only fix it if needed.

In `.github/workflows/release.yml`:
- [SUGGESTION] .github/workflows/release.yml:28: Include release-tooling verification in PR concurrency
  The PR's expected behavior is that each verification workflow cancels superseded PR runs, but this workflow still has no concurrency group. Its pull_request trigger covers release scripts, Makefile, and its own configuration, and its steps only perform local validation—not release publication. Successive pushes affecting those paths therefore leave superseded checks running or queued. Although this gap predates the diff, it is a missed sibling of the repository-wide cancellation policy being implemented here. Add the same workflow-level concurrency block; if this remaining workflow is deferred, link a tracking issue or follow-up PR.

@Claudius-Maginificent Claudius-Maginificent added priority: low Low priority — nice to have and removed priority: high High priority — address soon labels Nov 5, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Bots are done — your move: post /self-reviewed.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-self-review Waiting for the author to post /self-reviewed label Nov 6, 2026

@lklimek lklimek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/self-reviewed

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Policy satisfied — this can merge.
Full checklist in the description.

@github-actions github-actions Bot removed the waiting-self-review Waiting for the author to post /self-reviewed label Nov 6, 2026
@lklimek
lklimek merged commit 5a135bd into dev Nov 6, 2026
32 checks passed
@lklimek
lklimek deleted the ci/replace-janitor branch November 6, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: low Low priority — nice to have

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants