Skip to content

ci: split pr-osp-select by README section - #534

Merged
ColtonWilley merged 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:fix/ci-pr-osp-select-limit
Dec 2, 2026
Merged

ColtonWilley merged 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:fix/ci-pr-osp-select-limit

Conversation

@yosuke-wolfssl

@yosuke-wolfssl yosuke-wolfssl commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Every ci:* label run of pr-osp-select.yml fails at startup with 0 jobs (e.g. on #503, #505, #511, #512):

error parsing called workflow ".github/workflows/pr-osp-select.yml"
-> "./.github/workflows/x11vnc.yml": too many workflows are referenced, total: 51, limit: 50

GitHub caps one workflow file at 50 unique referenced workflows, nested calls included. Adding mosquitto.yml and musl.yml took pr-osp-select.yml from 49 to 51.

Fix (.github/workflows/pr-osp-select-*.yml)

The jobs are split into three workflows by their section in the workflows README:

File README sections Jobs Referenced
pr-osp-select-network.yml Networking, VPN, file transfer; Web, messaging, libraries; Wireless 29 31
pr-osp-select-auth-crypto.yml Auth, identity, PKI, smart cards; TPM, disk crypto, hashing 12 14
pr-osp-select-validation.yml Internal validations + sweeps, plus multi-compiler, musl, perf, libacvp-pqc 8 10
  • Labels are unchanged. Every ci:<name> label triggers all three files; the files without that job skip everything after select.
  • Concurrency: each file has its own group, so the three runs do not cancel each other.
  • pr-osp-retry.yml listens to all three workflow names and accepts all three file paths.
  • README maps each file to its sections, states the limit, says where a new job goes, and updates the gh workflow run examples.

Verification

  • All 49 job blocks are byte-identical to the original pr-osp-select.yml, with no overlap between files.
  • Counting unique referenced workflows, nested calls included, gives 51 for the original file, matching GitHub's error, and 31 / 14 / 10 for the new files.
  • actionlint clean on the three new files and pr-osp-retry.yml.

Not in this PR

nightly-osp.yml references exactly 50 workflows. It runs today, but the next workflow added to it will fail the same way. Splitting it is not a simple move, because wave 2 needs: wave1-done, and needs: cannot reach across workflow files.

- pr-osp-select.yml becomes pr-osp-select-network.yml,
  pr-osp-select-auth-crypto.yml and pr-osp-select-validation.yml,
  grouped by the job's section in the workflows README. Each file
  has its own select job, workflow name and concurrency group.
- pr-osp-retry.yml listens to all three workflow names and accepts
  all three file paths.
- The workflows README maps each file to its sections, states the
  50-workflow limit, and names the file for each command and for
  ci:perf.
@yosuke-wolfssl yosuke-wolfssl self-assigned this Dec 2, 2026
Copilot AI balanced review requested due to automatic review settings December 2, 2026 11:07
@yosuke-wolfssl yosuke-wolfssl added the ci:all PR OSP toggle: run all label Dec 2, 2026

Copilot AI 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.

🟢 Approval recommended

No active review issues are reported for the workflow split and retry updates.

No open issues 🎉

What changed in this PR

Splits label-selected PR testing into three workflows to stay below GitHub’s 50-workflow reference limit while preserving existing labels and job definitions.

Changes:

  • Groups jobs by README section, with separate concurrency groups.
  • Updates automatic retries to recognize all three workflows.
  • Documents the split and revised manual-dispatch commands.
File Description
.github/​workflows/​README.md Documents workflow groups and usage.
.github/​workflows/​pr-osp-select-validation.yml Groups validation and sweep jobs.
.github/​workflows/​pr-osp-select-network.yml Retains networking, web, and wireless jobs.
.github/​workflows/​pr-osp-select-auth-crypto.yml Groups authentication and cryptography jobs.
.github/​workflows/​pr-osp-retry.yml Accepts all three workflow names and paths.

Review effort: Balanced

@yosuke-wolfssl

Copy link
Copy Markdown
Contributor Author

@claude review

@claude claude 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.

I reviewed this split and found no bugs. A human should still look at it: it changes the trust check in the retry workflow, which has actions: write, and the earlier automated review's comments have no follow-up commit yet.

What was reviewed:

  • All 49 jobs from the old pr-osp-select.yml are in exactly one of the three new files, unchanged, with nothing dropped or duplicated. The select job, permissions and per-file concurrency groups match.
  • The three workflows: names in pr-osp-retry.yml match each file's name: exactly. The new case path pin matches only those three literal paths and rejects anything else. No references to the old file name or workflow name remain.
  • The README's file-to-section table matches the jobs in each file.
Extended reasoning...

The change splits the label-driven PR OSP workflow into three files to stay under GitHub's 50-referenced-workflow limit, and updates the retry workflow and README to match. The security-relevant part is pr-osp-retry.yml: it runs on workflow_run with actions: write, and its trusted-path pin changes from one string comparison to a three-way case. The case uses exact literal patterns, and the collaborator-permission check is unchanged. A review by another reviewer with an unknown number of comments has no later commit, so it can't be confirmed as addressed, and that ruled out approval.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-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.

Fenrir Automated Review — PR #534

Scan targets checked: wolfprovider-pr-general
Review type: general (no scan target covers the changed files)
Coverage: 3 of 5 in-scope changed file(s) opened by the reviewer; not opened: .github/workflows/pr-osp-select-auth-crypto.yml, .github/workflows/pr-osp-select-validation.yml

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Max

@ColtonWilley
ColtonWilley merged commit 3a2ac76 into wolfSSL:master Dec 2, 2026
1300 of 1301 checks passed
@yosuke-wolfssl
yosuke-wolfssl deleted the fix/ci-pr-osp-select-limit branch December 2, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:all PR OSP toggle: run all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants