Repository navigation
ci: bump actions/checkout and astral-sh/setup-uv to @v5 (Node 24) - #4
Merged
Merged
Conversation
✅ Code Quality Report
Quality Gates
🎉 All quality gates passed! This PR maintains high code quality standards. 📊 View detailed MFCQI breakdownRun |
GitHub is forcing all Node.js 20 actions to Node.js 24 by June 2nd,
2026 and removing Node.js 20 from the runners by September 16th, 2026.
A first-pass bump to `@v5` revealed that several actions still ship
Node 20 at that major; this lands the minimum bump for each action
to clear the deprecation across the three CI workflows.
Per-action audit and bump:
actions/checkout v4 -> v5 (v5 is Node 24)
astral-sh/setup-uv v4 -> v7 (v5 and v6 are still Node 20,
v7 is the first Node 24
major. Latest is v8.1.0
but no floating `v8` tag
is published.)
actions/upload-artifact v4 -> v7 (v5 is Node 20, v6/v7 are
Node 24; v7 matches the
download-artifact pin for
cross-version artifact
compatibility)
actions/download-artifact v4 -> v7 (v5 and v6 are Node 20, v7
is the first Node 24 major)
actions/github-script v7 -> v8 (v8 is the first Node 24
major. Input contract is
unchanged from v7.)
Files touched:
.github/workflows/test.yml (test matrix + quality-gate)
.github/workflows/release.yml (verify-version, test-install,
publish-pypi, mark-release)
.github/workflows/test-release.yml (build, smoke-test-install)
Out of scope:
Other workflows in the repo (`docs.yml`, `lint.yml`,
`coverage-gist.yml`, `claude.yml`) and `pypa/gh-action-pypi-publish`
(which targets a non-major floating tag) are not covered here and
will be addressed if/when GitHub flags them.
Verification:
actionlint .github/workflows/{test,release,test-release}.yml -> 0
grep '@v4|setup-uv@v[0-6]|github-script@v7' -> 0
Closes #3
bsbodden
force-pushed
the
chore/bump-ci-actions-node24
branch
from
May 13, 2026 19:40
028e4b9 to
4c7d00f
Compare
✅ Code Quality Report
Quality Gates
🎉 All quality gates passed! This PR maintains high code quality standards. 📊 View detailed MFCQI breakdownRun |
`test_mcts_chance_nodes_beats_astar_on_frozen_lake` flaked on
`Python 3.10 on windows-latest` with a 13.33pp goal-rate delta
against the >=15pp contract. The same test passed on every other
matrix entry (3 OS x 5 Python = 15 jobs) in the same run, ruling
out a real regression and pointing at platform-dependent variance
in the MCTS arm.
Root cause: `MCTSExploration` has dual budgets and the search
loop breaks on whichever trips first:
if wall_budget_s and (time.monotonic() - t0) >= wall_budget_s:
break
`MCTS_WALL_CLOCK_MS = 200.0` in the bench harness fires before
`MCTS_ITERATIONS = 200` completes on slower runners (Windows 3.10
is consistently the slowest matrix slot). Fewer iterations ->
weaker plans -> two fewer goal-reaches across 30 seeds -> a 6.66pp
swing that drops the delta under the contract. A* is unaffected
because its budget (50 ms on a 4x4 grid) is many multiples of the
wall-clock it actually needs, and `env_rng` is seeded per `seed`
so slip draws are identical across platforms.
Fix: let the test disable the wall-clock cap so the iteration
budget alone bounds MCTS. A 4x4 frozen-lake search at 200
iterations completes well under the previous cap on every
supported runner; on macOS the test now runs in 5.5s
(was 43s, mostly spent at the cap).
Mechanics:
tests/benchmarks/stochastic_gridworld_bench.py
- `mcts_factory` / `mcts_random_factory` grow an optional
`wall_clock_ms` kwarg that overrides `MCTS_WALL_CLOCK_MS`
when supplied; `astar_factory` accepts and ignores it via
`**_`.
- `StrategyFactory` is widened to `Callable[..., PlanningStrategy]`
to reflect the new keyword-only override on the mcts arms.
- `run_cell` grows a matching `mcts_wall_clock_ms` kwarg that
it threads into the factory call.
- `run_benchmark()` is unchanged: it does not pass the override
and therefore continues to honour the pre-registered
`MCTS_WALL_CLOCK_MS` constant from the 2026-04-20 protocol.
tests/integration/test_mcts_beats_astar_stochastic.py
- Passes `mcts_wall_clock_ms=0.0` for the MCTS arm and
documents the rationale in the test docstring.
Out of scope: the pre-registered benchmark in
`research/experiments/2026-04-20-mcts-on-stochastic.md` is not
touched. `main()` still runs with the protocol's wall-clock cap
on a single host, so cross-host comparability of the research
artifact is preserved.
✅ Code Quality Report
Quality Gates
🎉 All quality gates passed! This PR maintains high code quality standards. 📊 View detailed MFCQI breakdownRun |
bsbodden
pushed a commit
that referenced
this pull request
May 13, 2026
After #4 cleared checkout / setup-uv / upload-artifact / download-artifact / github-script to Node 24, `setup-python@v5` was the last remaining Node-20-based action in the release pipelines. Confirmed by the TestPyPI dispatch run 25827053068, which still emitted the deprecation warning on every job in `test-release.yml`. `v6.0.0` (2025-09-04) is "Upgrade to node 24" -- the only breaking change is the Node runtime bump itself. GitHub-hosted runners are already on v2.327.1+, so no compatibility action is required. All four call sites pass only `python-version`, which is unchanged in v6. The `v6` major-tag will resolve to the latest patch (currently `v6.2.0`, 2026-01-22). Touched files: * `.github/workflows/release.yml:80` -- matrix validate-pypi job * `.github/workflows/release.yml:163` -- release job * `.github/workflows/test-release.yml:25` -- build job * `.github/workflows/test-release.yml:106` -- matrix validate-test-pypi job (`test.yml` does not use setup-python -- it relies on setup-uv for Python provisioning.) Closes #8.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #3.
Bumps the two actions that GitHub explicitly flagged as Node.js 20 deprecated on every job in the new CI matrix:
actions/checkout@v4@v5astral-sh/setup-uv@v4@v5Deprecation notice: forced to Node 24 by June 2nd, 2026, Node 20 removed from runners by September 16th, 2026.
Files changed
.github/workflows/test.yml.github/workflows/release.yml.github/workflows/test-release.ymlTotal: 16 line changes, mechanical version bump only.
Out of scope (tracked separately if/when GitHub flags them)
Other workflows (
docs.yml,lint.yml,coverage-gist.yml,claude.yml) and other Node-20 actions referenced inside the three modified workflows:actions/upload-artifact@v4actions/download-artifact@v4actions/github-script@v7pypa/gh-action-pypi-publish@release/v1These were not part of the deprecation annotation surfaced by GitHub on the previous run.
Verification
Acceptance criteria
actionlintclean on all three workflowsquality-gatestill posts the✅ Code Quality Report