Skip to content

ci: use the shared gate action - #500

Merged
uniqueg merged 1 commit into
devfrom
ci/shared-gate
Oct 28, 2026
Merged

uniqueg merged 1 commit into
devfrom
ci/shared-gate

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The gate job passed ("CI passed") now uses the shared action elixir-cloud-aai/.github/actions/gate, pinned to a full commit SHA on main (397a1c8…, comment # gate; the .github repository has no releases; the existing Dependabot github-actions entry covers the pin).
  • No skips allowed, as before (the action fails on any skipped, failed or cancelled job, and now also on empty needs). Job ID and name unchanged, so no ruleset change is needed.

Closes #499

Verification

  • Reviews: adversarial and quality reviewers, no high or medium findings.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Adopt the shared gate action for the CI passed check.

Enhancements:

  • Replace the CI workflow’s custom result-checking script with the shared, pinned gate action while preserving the existing required gate job.

CI:

  • Use the shared gate action to fail CI when required jobs do not complete successfully.

Replace the inline result check of the gate job with
elixir-cloud-aai/.github/actions/gate, pinned to a commit on main;
keep the job ID and name, and allow no skips, as before.

Closes #499

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The CI gate job now delegates result validation to the shared elixir-cloud-aai/.github gate action pinned to a specific commit, while keeping the existing required check identity and job dependencies and explicitly granting no permissions.

Flow diagram for the shared CI gate action

flowchart LR
    conflicts[conflicts]
    lint[lint]
    test[test]
    gate[CI passed\nshared gate action]
    result[Required check result]

    conflicts --> gate
    lint --> gate
    test --> gate
    gate --> result
Loading

File-Level Changes

Change Details Files
Replace the workflow’s inline job-result validation with the shared, pinned gate action while preserving the required CI check contract.
  • Use the shared gate action at a full commit SHA with a Dependabot-compatible pin comment.
  • Pass the serialized needs context to the action so it validates all dependent jobs, including skipped, failed, cancelled, or empty results.
  • Retain the existing job ID, display name, dependencies, always-run behavior, timeout, and add an empty permissions set.
.github/workflows/ci.yml

Assessment against linked issues

Issue Objective Addressed Explanation
#499 Replace the custom result-checking logic in the passed job with the shared gate action, passing the job dependencies as needs. ✅
#499 Preserve the CI passed required check and its existing job dependencies and behavior, allowing skipped jobs only where the workflow permits them. ✅

Possibly linked issues


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

@uniqueg
uniqueg marked this pull request as ready for review October 28, 2026 15:57
@uniqueg
uniqueg requested a review from anuragxxd as a code owner October 28, 2026 15:57

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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

Needs a human reviewer. The pinned shared action now decides whether the required CI check passes; if it treats a failed or skipped job as success, changes could merge without the intended checks. Reverting restores the previous gate, but any changes merged while it was faulty would not be undone by that revert.


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

@uniqueg
uniqueg merged commit 2bae5cc into dev Oct 28, 2026
11 checks passed
@uniqueg
uniqueg deleted the ci/shared-gate branch October 28, 2026 16:12
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.

ci: use the shared CI gate action

1 participant