Skip to content

ci: Gate manual release workflows on wait-for-checks#826

Merged
vdusek merged 2 commits into
masterfrom
ci/consolidate-checks-and-gate-releases
May 26, 2026
Merged

ci: Gate manual release workflows on wait-for-checks#826
vdusek merged 2 commits into
masterfrom
ci/consolidate-checks-and-gate-releases

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented May 26, 2026

Summary

Ports the CI consolidation and wait-for-checks adoption from crawlee-python to apify-client-python. See apify/crawlee-python#1913 for the original rationale and PR description; the follow-up permission fixes from #1914 and #1915 are baked in here.

Two commits:

  1. Consolidate check workflows into a single Checks workflow — merges _check_code.yaml, _check_docs.yaml, _check_docstrings.yaml, _check_package.yaml, and _tests.yaml into a single _checks.yaml. Every check now carries the shared Checks / prefix. unit_tests and integration_tests are gated on a run_tests input so on_master.yaml can keep skipping tests for docs-only commits.
  2. Gate manual release workflows on wait-for-checks — replaces the inline code_checks step in manual_release_stable.yaml / manual_release_beta.yaml / manual_release_docs.yaml / manual_version_docs.yaml with an apify/actions/wait-for-checks@v1.2.0 step that verifies the Checks workflow already passed on the dispatch commit (it runs via on_master.yaml on every push). Every reusable-workflow caller that ends up requesting checks: read (docs jobs in on_master.yaml, version_docs / doc_release in manual_release_stable.yaml, doc_release_post_publish in manual_release_beta.yaml) explicitly grants the permission, since reusable workflows are capped at the caller's permission set.

vdusek and others added 2 commits May 26, 2026 09:07
Merge _check_code.yaml, _check_docs.yaml, _check_docstrings.yaml,
_check_package.yaml, and _tests.yaml into a single _checks.yaml that
exposes each check as a job. Reduces duplication across on_master.yaml and
on_pull_request.yaml and gives every check the shared `Checks /` prefix.
unit_tests and integration_tests carry `if: inputs.run_tests` so
on_master.yaml can keep skipping tests for docs-only commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace each release workflow's inline `code_checks` with a `wait-for-checks`
step that verifies the `Checks` workflow already passed on the dispatch
commit (it runs via `on_master.yaml` on every push). Adds the gate to the
stable, beta, docs release, and docs versioning workflows that previously
had none or rebuilt the code checks. Every caller that invokes a workflow
requesting `checks: read` (reusable workflows are capped at the caller's
permissions) explicitly grants it: doc_release in on_master.yaml,
version_docs and doc_release in manual_release_stable.yaml, and
doc_release_post_publish in manual_release_beta.yaml.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels May 26, 2026
@vdusek vdusek self-assigned this May 26, 2026
@vdusek vdusek requested a review from janbuchar May 26, 2026 07:13
@github-actions github-actions Bot added this to the 141st sprint - Tooling team milestone May 26, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.78%. Comparing base (ea23338) to head (02a3f03).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #826      +/-   ##
==========================================
+ Coverage   94.74%   94.78%   +0.03%     
==========================================
  Files          48       48              
  Lines        5045     5045              
==========================================
+ Hits         4780     4782       +2     
+ Misses        265      263       -2     
Flag Coverage Δ
integration 93.24% <ø> (+0.07%) ⬆️
unit 83.52% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek merged commit 45e3279 into master May 26, 2026
49 of 51 checks passed
@vdusek vdusek deleted the ci/consolidate-checks-and-gate-releases branch May 26, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants