Skip to content

Gate direct bench configuration changes with init checks - #3

Merged
brettheap merged 3 commits into
mainfrom
023-all-bench-reaping-ci
Oct 7, 2026
Merged

brettheap merged 3 commits into
mainfrom
023-all-bench-reaping-ci

Conversation

@brettheap

@brettheap brettheap commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Add repository-local process-reaping validation for this setup-cloned bench.

Parent workBenches PRs cannot gate direct changes here because the setup clone is consumed from main, not a parent gitlink. This workflow checks the repository on every PR and main push without path filters, so a required check cannot remain pending because a workflow was skipped. Standard compose/docker-compose .yml/.yaml names and mixed-extension overlays are covered by the checker.

The checker is pinned to verified public workBenches commit 3f180c5c42cca2fce259105cb1252521423ee274, which the coordinated parent PR will preserve in main with a normal merge commit. No cross-repository secrets, image builds or container replacements are required. Both checkouts disable credential persistence.

Local effective-configuration checks and nine checker regression tests pass. This follows up the already merged process-reaping configuration fix and addresses the parent PR's final review finding.

Summary by Sourcery

Gate bench configuration changes with repository-local process-reaping validation.

Bug Fixes:

  • Add automated validation that bench configurations satisfy process-reaping requirements on pull requests and pushes to main.

Enhancements:

  • Run the validation against an immutable public checker without starting services or requiring cross-repository credentials.

CI:

  • Add a required GitHub Actions workflow for bench process-reaping checks on pull requests, main pushes, and manual runs.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Introduces a pinned, repository-local CI check that validates process-reaping initialization in canonical, template, worker, and overlay Compose configurations for relevant PRs and main-branch changes.

Sequence diagram for bench configuration validation

sequenceDiagram
    participant GitHub as GitHub Actions
    participant Repo as Repository checkout
    participant Checker as Pinned workBenches checker
    participant Compose as Compose definitions

    GitHub->>Repo: checkout()
    GitHub->>Checker: checkout(repository, ref, path)
    GitHub->>Checker: check-bench-init.py(.)
    Checker->>Compose: read tracked docker-compose*.yml
    Compose-->>Checker: configuration definitions
    Checker-->>GitHub: validation result
Loading

File-Level Changes

Change Details Files
Add a repository-local GitHub Actions validation workflow for Compose-based bench configuration changes.
  • Run on pull requests and pushes to main when Compose definitions or the workflow change, with manual dispatch support.
  • Restrict workflow permissions, pin the runner timeout, and use credential-free checkouts.
  • Check out the public workBenches validator at an immutable commit and run it against the repository without starting services.
.github/workflows/bench-init.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T18:53:31.847486Z f968bf7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Oct 7, 2026

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 613b796e84

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/bench-init.yml Outdated
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 5b164b9b4f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai sourcery-ai Bot 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.

Sourcery assessment

Approved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: f968bf7096

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap
brettheap merged commit 1c12961 into main Oct 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant