Skip to content

ci: migrate workflows to Node 24 actions and hash fastled-lint sources by content - #5512

Merged
zackees merged 1 commit into
masterfrom
ci/node24-actions-and-rust-lint-cache
Dec 3, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/node24-actions-and-rust-lint-cache

Conversation

@zackees

@zackees zackees commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Implements Item #27 of #5492 plus local/CI lint caching improvement:

  • Node 24 GitHub Actions migration across 31 workflow files (eliminates Node 20 deprecation warnings on GitHub Actions runners):
    • actions/checkout@v4 → @v7 (node24)
    • actions/cache/restore@v4, actions/cache/save@v4 → @v6 (node24)
    • actions/setup-python@v5 → @v7 (node24)
    • actions/upload-artifact@v4 → @v7 (node24)
    • actions/download-artifact@v4 → @v8 (node24)
    • actions/github-script@v7 → @v9 (node24)
    • astral-sh/setup-uv@v6 → @v7 (node24)
    • Verified all inputs used by FastLED workflows are supported on the target versions and validated every workflow file with yaml.safe_load plus check_size_thresholds.py.
  • Content-based fastled-lint cache fingerprint (ci/lint_cpp/rust_binary_cache.py):
    • Hash Rust crate source bytes instead of st_mtime_ns, eliminating spurious soldr --no-cache cargo build rebuilds across git branch switches, rebases, and CI cache restores when crate contents are unchanged.
    • Added regression unit test in ci/tests/test_rust_binary_cache.py.

Maintainer directive (@zackees): authorized per #5492 item #27 and local/CI build caching audit to update .github/workflows/*.yml action pins and ci/lint_cpp/rust_binary_cache.py.

Summary by CodeRabbit

  • Chores
    • Updated the tools used by automated build, test, and release workflows.
  • Bug Fixes
    • Build-cache fingerprints now respond to file content changes rather than timestamp-only changes, improving cache consistency.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates GitHub Actions versions across workflow files. It also changes Rust binary cache fingerprints to hash input file contents and adds a test for timestamp-only and content changes.

Changes: Workflow action updates

Layer / File(s) Summary
Update workflow action versions
.github/workflows/*
Workflow files update checkout, setup, cache, artifact, and GitHub Script action versions. Existing workflow inputs and settings are generally unchanged.

Rust binary cache fingerprint

Layer / File(s) Summary
Fingerprint file contents
ci/lint_cpp/rust_binary_cache.py, ci/tests/test_rust_binary_cache.py
_compute_fingerprint hashes each input file’s project-relative path, byte length, and contents. A test verifies that timestamp-only changes preserve the fingerprint and content changes alter it.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Possibly related issues

  • FastLED/FastLED issue 5492: This pull request updates action versions in 31 workflow files, addressing part of the workflow migration described in the issue.

Suggested labels: area: ci

Merge Risk: Minimal · up to c62a4

This change updates CI action versions and makes the Rust binary cache fingerprint depend on file contents instead of timestamps. I found no concrete behavioral risk, and the added test covers the fingerprint change.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two changes: migrating workflows to Node 24-compatible action versions, and hashing fastled-lint Rust sources by content. The summary confirms both. The 31 workflow files are upgraded …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two changes: migrating workflows to Node 24-compatible action versions, and hashing fastled-lint Rust sources by content. The summary confirms both. The 31 workflow files are upgraded to v7 and similar versions, and rust_binary_cache.py now fingerprints file bytes instead of st_mtime_ns, with a regression test added. The title covers the main changes, though it does not mention the test addition. This is a PASS.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a70fe25 and c62a417.

Files selected for processing: 33

  • .github/workflows/arduino_library_lint.yml
  • .github/workflows/avr8js_docker_template.yml
  • .github/workflows/bloat_regression_esp32s3.yml
  • .github/workflows/build_arduino_uno_q_zephyr.yml
  • .github/workflows/build_bare_idf.yml
  • .github/workflows/build_clone_and_compile.yml
  • .github/workflows/build_esp32dev_idf5_component.yml
  • .github/workflows/build_esp_extra_libs.yml
  • .github/workflows/build_linux.yml
  • .github/workflows/build_template.yml
  • .github/workflows/build_template_binary_size.yml
  • .github/workflows/build_wasm.yml
  • .github/workflows/build_wasm_compilers.yml
  • .github/workflows/check_tag.yml
  • .github/workflows/ci-labels.yml
  • .github/workflows/claude.yml
  • .github/workflows/full_sanitizer_linux.yml
  • .github/workflows/header-perf.yml
  • .github/workflows/iwyu.yml
  • .github/workflows/memory_report.yml
  • .github/workflows/mp3_conformance.yml
  • .github/workflows/mp3_cpu_audit.yml
  • .github/workflows/mp3_memory_audit.yml
  • .github/workflows/nightly-examples.yml
  • .github/workflows/project_automation.yml
  • .github/workflows/project_drift_sync.yml
  • .github/workflows/qemu_template.yml
  • .github/workflows/release.yml
  • .github/workflows/sanitize_issues.yml
  • .github/workflows/template_example_test.yml
  • .github/workflows/template_unit_test.yml
  • ci/lint_cpp/rust_binary_cache.py
  • ci/tests/test_rust_binary_cache.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Memory usage (this PR vs. its merge base)

Change in examples/Blink per target. The left number is this PR's image flash / attributed RAM in bytes; the colored delta is the change from the merge base (red ↑ is larger, green ↓ is smaller, Same is unchanged).

Target FLASH [bytes] RAM [bytes]
attiny85 2,460 (Same) 136 (Same)

@zackees
zackees added this pull request to the merge queue Dec 3, 2026
Merged via the queue into master with commit 25e73b9 Dec 3, 2026
136 checks passed
@zackees
zackees deleted the ci/node24-actions-and-rust-lint-cache branch December 3, 2026 05:07
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