Skip to content

ci: upgrade done gate to self-check + 1-line aggregation#51

Merged
helly25 merged 2 commits into
mainfrom
ci/done-gate-self-check
Jun 13, 2026
Merged

ci: upgrade done gate to self-check + 1-line aggregation#51
helly25 merged 2 commits into
mainfrom
ci/done-gate-self-check

Conversation

@helly25

@helly25 helly25 commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Pattern source: helly25/bzl. Two parts:

  1. Self-check: parses the workflow with yq, fails if any declared job (other than done itself) is absent from done.needs. A newly added job that someone forgets to wire in fails CI loudly.
  2. Failure aggregation: single-line contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') guard. GitHub's Actions UI already shows per-job results.

Part of a batch syncing the gate across helly25/* repos (helly25/coderef#33, helly25/mbo#189, helly25/bashtest#15).

Pattern source: helly25/bzl. Two parts:

1. Self-check: parses the workflow with yq, fails if any declared
   job (other than done itself) is absent from done.needs. A newly
   added job that someone forgets to wire in fails CI loudly.
2. Failure aggregation: single-line contains(needs.*.result, ...)
   guard. GitHub's Actions UI already shows per-job results.

Part of a batch syncing the gate across helly25/* repos.
beautysh v6.2.1 imports pkg_resources from setuptools. setuptools
>= 80 (released 2025) dropped that shim, so the hook fails on
fresh CI runners with ModuleNotFoundError.

bzl already has the fix: bump to v6.4.3 + add additional_dependencies:
[setuptools]. Copying that pattern verbatim.
@helly25 helly25 requested a review from Fab-Cat June 13, 2026 14:19
@helly25 helly25 merged commit 4a24c71 into main Jun 13, 2026
24 checks passed
@helly25 helly25 deleted the ci/done-gate-self-check branch June 13, 2026 15:05
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.

2 participants