Skip to content

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

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#907
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-sdk-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_package.yaml, and _tests.yaml into a single _checks.yaml. Every check now carries the shared Checks / prefix. unit_tests, integration_tests, and e2e_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:05
Merge _check_code.yaml, _check_docs.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, integration_tests, and
e2e_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:12
@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 87.04%. Comparing base (7a13809) to head (3487039).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #907   +/-   ##
=======================================
  Coverage   87.04%   87.04%           
=======================================
  Files          48       48           
  Lines        2942     2942           
=======================================
  Hits         2561     2561           
  Misses        381      381           
Flag Coverage Δ
e2e 37.72% <ø> (ø)
integration 59.07% <ø> (ø)
unit 75.76% <ø> (ø)

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 1e5b94c into master May 26, 2026
32 checks passed
@vdusek vdusek deleted the ci/consolidate-checks-and-gate-releases branch May 26, 2026 09:16
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