Skip to content

ci: force Node.js 24 for JS setup actions#2424

Merged
overtrue merged 1 commit into
mainfrom
codex/fix-gh-actions-node24
Apr 7, 2026
Merged

ci: force Node.js 24 for JS setup actions#2424
overtrue merged 1 commit into
mainfrom
codex/fix-gh-actions-node24

Conversation

@overtrue
Copy link
Copy Markdown
Collaborator

@overtrue overtrue commented Apr 7, 2026

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other: CI maintenance

Related Issues

  • N/A

Summary of Changes

  • Pin Nugine/setup-flatc to v1.2.4 in .github/actions/setup/action.yml.
  • Remove step-level FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 settings and centralize it as job-level environment variables.
  • Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true to jobs that use the composite setup action:
    • ci.yml: test-and-lint, build-rustfs-debug-binary
    • build.yml: build-rustfs
    • performance.yml: performance-profile, benchmark
  • This keeps deprecated Node.js 20 action usage warning-free when these actions run.

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact: CI environment/runtime migration

Additional Notes

  • Date: 2026-04-07
  • This PR keeps arduino/setup-protoc@v3 in place (latest available is v3.0.0) and opts actions into Node.js 24 via runner flag.

Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md). If this is your first contribution, review the CLA document and sign it by commenting I have read and agree to the CLA. on the PR.

Copilot AI review requested due to automatic review settings April 7, 2026 15:46
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

CLA requirements are satisfied for this pull request.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s GitHub Actions CI configuration to opt JavaScript-based setup actions into running on Node.js 24 (to avoid Node.js 20 deprecation warnings) and pins the FlatBuffers compiler setup action to a specific version.

Changes:

  • Pin .github/actions/setup to Nugine/setup-flatc@v1.2.4.
  • Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" at the job level in CI workflows that invoke the setup composite action.
  • Remove reliance on step-level Node-forcing env (per PR intent) by centralizing the opt-in at workflow job level.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/performance.yml Sets FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for performance jobs using the setup action.
.github/workflows/ci.yml Sets FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for CI jobs using the setup action.
.github/workflows/build.yml Sets FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for the build job using the setup action.
.github/actions/setup/action.yml Pins Nugine/setup-flatc to v1.2.4 within the composite setup action.

Comment on lines 62 to 66
repo-token: ${{ inputs.github-token }}

- name: Install flatc
uses: Nugine/setup-flatc@v1
uses: Nugine/setup-flatc@v1.2.4
with:
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description mentions removing a step-level Node-forcing env from this composite action, but this diff only changes the Nugine/setup-flatc ref. If the env removal was intended, it looks missing from the PR; otherwise please update the PR description to match what actually changed.

Copilot uses AI. Check for mistakes.
@overtrue overtrue merged commit 1977d19 into main Apr 7, 2026
9 of 10 checks passed
@overtrue overtrue deleted the codex/fix-gh-actions-node24 branch April 7, 2026 15:49
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.

3 participants