Skip to content

ci(conda): drop the unreachable Windows conda steps (#1967) - #2055

Merged
JarryShaw merged 1 commit into
mainfrom
ci/1967-drop-dead-windows-conda
Oct 22, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
ci/1967-drop-dead-windows-conda

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

What is the purpose of your pull request?

  • ci — changes to CI configuration files and scripts

Description of your pull request and other information

A smaller item from #1967. windows-latest has been commented out of both conda matrices since 2023, yet its steps stayed.

  • Removed from create-release.yml's conda and cron-conda.yml's conda-dist:
    • Install and Setup (Windows) and Setup Conda Distribution (Windows).
    • The windows-latest → win-64 case arms in Check whether this leg is already on Anaconda and Build conda packages.
    • The if: matrix.os != 'windows-latest' guards on the remaining install and setup steps.
  • Why the guards go too: they only split work with the Windows twins. Left in place, they would quietly skip install if a Windows leg were re-added without its steps. A two-line note citing ci: divide and simplify the workflows into scripts, shared heads and smaller files #1967 replaces the commented matrix line.
  • util/conda_vendor.py's PLATFORMS comment now matches the matrices. conda/pypcapkit/bld.bat is left as is.
  • Tests:
    • New: tests/project/test_conda_no_windows_steps_1967.py pins three rules. No if: or case arm names a matrix label the matrix lacks. No step is Windows-only while no leg is Windows. Self-checks prove both rules report.
    • Before and after: it fails on main's workflows (4 failed) and passes here.
    • Updated: test_conda_legs_install_no_pcapkit_1854 now expects one Install and Setup step.

`windows-latest` has been commented out of the conda matrices since 2023,
yet `conda` in create-release.yml and `conda-dist` in cron-conda.yml still
carried `Install and Setup (Windows)`, `Setup Conda Distribution (Windows)`,
the `matrix.os != 'windows-latest'` guards on their twins, and a
`windows-latest` arm in each `case "${{ matrix.os }}"`. Remove them, and
replace the commented matrix line with a note that adding the leg back means
writing its steps.

test_conda_no_windows_steps_1967 pins that no step's `if:` or `case` arm in
either job names a runner its matrix lacks, and that no step is Windows-only
while no leg is Windows. #1854's install-step count drops its Windows twin,
and util/conda_vendor.py's note on `bld.bat` no longer says "commented out".
@JarryShaw JarryShaw added ci Pull requests that change CI or workflow configuration (ci: subject prefix) chore Maintenance work: tooling, repo hygiene, no library behaviour change review: running A cross-review is in flight against the current head - no verdict yet and removed chore Maintenance work: tooling, repo hygiene, no library behaviour change labels Oct 22, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

GOOD TO GO at 9024434bf (Sonnet cross-review).

  • Dead code: every removed step, case arm and guard was unreachable. Both matrices list only macos-latest, macos-26-intel and ubuntu-latest, with no include: or exclude:, and the removed guards were plain matrix.os comparisons, not compound ones.
  • Unchanged: the Anaconda upload steps and the Miniforge input are untouched. The existing legs run exactly as before, since the dropped guards were true for all three.
  • New test: it flags 8 and 7 dead items on main's two jobs and none here. It does not flag legitimate conditions such as matrix.os == 'macos-26-intel'. I re-ran it: 4 failed on main's workflows, passing here.
  • Results: the workflow-reading tests give 432 passed. The "since 2023" note matches 3ab2e8fe4 (2023-06-07, "skip windows conda pkg").

@JarryShaw JarryShaw added review: good-to-go Cross-review at the current head says ready; CI state is separate and removed review: running A cross-review is in flight against the current head - no verdict yet labels Oct 22, 2026
@JarryShaw JarryShaw moved this to In review in PyPCAPKit Oct 22, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

Ordering check on 9024434bf: the project leg (util/run_unittest_leg.py project) ran 1908 tests, OK (71 skipped). CI: all checks green, 0 failing; only the Required checks passed roll-up is still finishing. KTLO 3.8, 3.9 and 3.10 legs: 0 failing tests. Ready to merge.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 91.54% (unit tier, Python 3.15, 9024434bf, Unit Tests run success)

Package Statements Missed Branches Partial Cover
pcapkit (top level) 104 4 20 2 95.16%
pcapkit/const 19599 881 2618 867 92.11%
pcapkit/corekit 2567 71 816 37 96.57%
pcapkit/dumpkit 282 3 102 3 98.44%
pcapkit/foundation 2930 23 1022 25 98.79%
pcapkit/interface 138 4 52 3 96.32%
pcapkit/protocols 17436 219 4582 185 98.15%
pcapkit/toolkit 872 36 298 10 95.21%
pcapkit/utilities 529 7 160 5 98.26%
pcapkit/vendor 4431 1995 1018 167 51.73%

Per-file detail: the coverage-html artifact of this run.

@JarryShaw
JarryShaw merged commit 3437c74 into main Oct 22, 2026
66 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in PyPCAPKit Oct 22, 2026
@JarryShaw
JarryShaw deleted the ci/1967-drop-dead-windows-conda branch October 22, 2026 22:55
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Oct 22, 2026
@JarryShaw JarryShaw added this to the PyPCAPKit v1.5 milestone Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pull requests that change CI or workflow configuration (ci: subject prefix)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant