Skip to content

ci: bump actions/checkout and astral-sh/setup-uv to @v5 (Node 24) - #4

Merged
bsbodden merged 2 commits into
mainfrom
chore/bump-ci-actions-node24
May 13, 2026
Merged

bsbodden merged 2 commits into
mainfrom
chore/bump-ci-actions-node24

Conversation

@bsbodden

Copy link
Copy Markdown
Contributor

Summary

Closes #3.

Bumps the two actions that GitHub explicitly flagged as Node.js 20 deprecated on every job in the new CI matrix:

Action Before After
actions/checkout @v4 @v5
astral-sh/setup-uv @v4 @v5

Deprecation notice: forced to Node 24 by June 2nd, 2026, Node 20 removed from runners by September 16th, 2026.

Files changed

File Bumps
.github/workflows/test.yml 2× checkout, 2× setup-uv
.github/workflows/release.yml 4× checkout, 2× setup-uv
.github/workflows/test-release.yml 3× checkout, 2× setup-uv

Total: 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@v4
  • actions/download-artifact@v4
  • actions/github-script@v7
  • pypa/gh-action-pypi-publish@release/v1

These were not part of the deprecation annotation surfaced by GitHub on the previous run.

Verification

$ actionlint .github/workflows/test.yml .github/workflows/release.yml .github/workflows/test-release.yml
$ echo $?
0

$ grep -nE "(actions/checkout|astral-sh/setup-uv)@v4" .github/workflows/test.yml .github/workflows/release.yml .github/workflows/test-release.yml
(none)

Acceptance criteria

  • actionlint clean on all three workflows
  • PR CI green across Ubuntu / macOS / Windows × Python 3.10–3.14
  • No "Node.js 20 actions are deprecated" annotation in the new run
  • quality-gate still posts the ✅ Code Quality Report

@bsbodden bsbodden added the maintenance CI/build/tooling maintenance label May 13, 2026
@github-actions

Copy link
Copy Markdown

✅ Code Quality Report

Metric Score Status
MFCQI Score 0.8203666241704082 ✅ Good
Test Coverage 93% ✅ Good
Security Issues 0 ✅ Clean

Quality Gates

  • MFCQI Score: ✅ Minimum 0.75 (Current: 0.8203666241704082)
  • Test Coverage: ✅ Minimum 80% (Current: 93%)
  • Security: ✅ Zero vulnerabilities (Current: 0)

🎉 All quality gates passed! This PR maintains high code quality standards.

📊 View detailed MFCQI breakdown

Run uv run python -m mfcqi analyze langgoap locally to see detailed metrics breakdown.

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
bsbodden force-pushed the chore/bump-ci-actions-node24 branch from 028e4b9 to 4c7d00f Compare May 13, 2026 19:40
@github-actions

Copy link
Copy Markdown

✅ Code Quality Report

Metric Score Status
MFCQI Score 0.8203666241704082 ✅ Good
Test Coverage 93% ✅ Good
Security Issues 0 ✅ Clean

Quality Gates

  • MFCQI Score: ✅ Minimum 0.75 (Current: 0.8203666241704082)
  • Test Coverage: ✅ Minimum 80% (Current: 93%)
  • Security: ✅ Zero vulnerabilities (Current: 0)

🎉 All quality gates passed! This PR maintains high code quality standards.

📊 View detailed MFCQI breakdown

Run uv run python -m mfcqi analyze langgoap locally to see detailed metrics breakdown.

`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.
@github-actions

Copy link
Copy Markdown

✅ Code Quality Report

Metric Score Status
MFCQI Score 0.8203666241704082 ✅ Good
Test Coverage 93% ✅ Good
Security Issues 0 ✅ Clean

Quality Gates

  • MFCQI Score: ✅ Minimum 0.75 (Current: 0.8203666241704082)
  • Test Coverage: ✅ Minimum 80% (Current: 93%)
  • Security: ✅ Zero vulnerabilities (Current: 0)

🎉 All quality gates passed! This PR maintains high code quality standards.

📊 View detailed MFCQI breakdown

Run uv run python -m mfcqi analyze langgoap locally to see detailed metrics breakdown.

@bsbodden
bsbodden merged commit ea79582 into main May 13, 2026
18 checks passed
@bsbodden
bsbodden deleted the chore/bump-ci-actions-node24 branch May 13, 2026 19:58
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance CI/build/tooling maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump actions/checkout and astral-sh/setup-uv to @v5 to clear Node.js 20 deprecation

1 participant