Skip to content

ci: migrate 14 workflows to needs.setup.outputs.matrix (batch 2/8) - #4926

Open
luhenry wants to merge 14 commits into
mainfrom
fix/matrix-batch-2
Open

luhenry wants to merge 14 commits into
mainfrom
fix/matrix-batch-2

Conversation

@luhenry

@luhenry luhenry commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Part of the repo-wide move off hardcoded python/libc strategy matrices and
onto needs.setup.outputs.matrix (see PRs #4914/#4915 for the bug class this
closes: a hardcoded list drifting out of sync with docs/packages/<pkg>.yaml).

Packages touched in this batch (14):

  • crosshair-tool
  • ct3
  • cyscale
  • cyseq
  • cysignals
  • datasketches
  • deflate
  • dukpy
  • ed25519-blake2b-fork
  • edlib
  • endec
  • ephem
  • evtx
  • fast-diff-match-patch

For each file: the build_wheels job's strategy.matrix now reads
include: ${{ fromJSON(needs.setup.outputs.matrix) }} instead of a hardcoded
version/python/libc cross product, and every remaining matrix.libc
reference (job name:, cibuildwheel only:/CIBW_BUILD:, artifact
name:) is renamed to matrix.platform to match the generated matrix's
field. endec and evtx already used platform as the field name, so only
their matrix block changed.

Several packages declare interpreters in docs/packages/<pkg>.yaml that their
old hardcoded list never built (the repo's actual floor is cp312; cp39-cp311
and, where present, cp315/cp315t are declared for upstream-compat reasons but
never released). Without correcting for that, the generated matrix would
start building those for the first time. To preserve the old, intentional
behavior, each setup: job now also sets python-exclude to the equivalent
of what the old hardcoded list excluded by omission:

  • crosshair-tool, ct3, cyscale, cyseq, datasketches, dukpy,
    ed25519-blake2b-fork, edlib, endec, ephem, evtx,
    fast-diff-match-patch: python-exclude: 'cp39 cp310 cp311' (plus cp315*
    for crosshair-tool, which also declares 3.15).
  • cysignals: python-exclude: 'cp39 cp315*' — cp312 is already excluded
    naturally (1.13.0+ raised requires-python to >=3.13, and the YAML stops
    declaring cp312 from 1.13.0 on), but 1.13.1 newly declares 3.15/3.15t.
  • deflate, evtx: both build an abi3 wheel on the repo's cp312 floor rather
    than on the abi3 floor's own interpreter (3.11 / 3.10); excluding
    cp310/cp311 makes the generated matrix's abi3-floor selection land on cp312
    too, matching the old python: [cp312, cp314t] / cp31?-glob behavior.
    evtx's CIBW_BUILD ternary mapping 'abi3' -> 'cp31?' is no longer
    needed and was dropped, since the generated matrix's python field is
    already the resolved build interpreter.

Verified each file's new matrix against
uv run --quiet ci_scripts/pending_versions.py --python-matrix --python-exclude '<same exclude>' <pkg>
and confirmed it reproduces the old hardcoded python/platform combinations
for the currently pending version(s), with three exceptions — pre-existing
stale-matrix bugs (same shape as #4914/#4915), fixed here as a side effect of
the structural change, flagged for visibility:

  • ct3: the old hardcoded list included cp314t, but
    docs/packages/ct3.yaml never declares a 3.14t target for 3.4.0.post5.
    That build identifier was being requested every run for nothing; the
    generated matrix correctly drops it.
  • datasketches: the old hardcoded list included cp314/cp314t, but
    docs/packages/datasketches.yaml only declares up to 3.13 for 5.2.0.
    Same dead-build-identifier shape; the generated matrix drops both.
  • edlib: the old hardcoded list included cp314/cp314t, but
    docs/packages/edlib.yaml only declares up to 3.13 for 1.3.9.post1.
    Same shape; dropped.
  • fast-diff-match-patch: the old hardcoded list included
    cp313/cp314/cp314t, but docs/packages/fast-diff-match-patch.yaml
    only declares up to 3.12 for 2.1.0. Same shape; dropped.

No file in this batch was skipped — all 14 convert cleanly to the shared
shape. None of them currently declare any musllinux-only-new target (all
already built both platforms where applicable), so no package starts
building musllinux for the first time here.

Scope: .github/workflows/* only, per batch instructions — no
docs/packages/*.yaml, .queue.yml, or skills/ changes.

Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.
Drop the hardcoded python/libc strategy matrix in favor of
needs.setup.outputs.matrix, and rename remaining matrix.libc
references to matrix.platform.

This branch has not been deployed

No deployments
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.

1 participant