Skip to content

Stabilize Node 18 CI by restoring execute bit on cached Hardhat solc binaries - #577

Draft
tjcloa with Copilot wants to merge 2 commits into
developmentfrom
copilot/fix-github-actions-build-failure
Draft

Stabilize Node 18 CI by restoring execute bit on cached Hardhat solc binaries#577
tjcloa with Copilot wants to merge 2 commits into
developmentfrom
copilot/fix-github-actions-build-failure

Conversation

Copilot AI commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

build (18.x) was failing in GitHub Actions when Hardhat attempted to spawn a cached native compiler with EACCES. This PR hardens the Node.js CI workflow against cache permission drift in ~/.cache/hardhat-nodejs.

  • Root cause addressed

    • Hardhat’s cached Linux solc binaries can be present without executable permissions, causing npm run test to fail at compiler spawn time.
  • Workflow change

    • Added a focused permission-normalization step immediately after dependency install in .github/workflows/node.js.yml.
    • The step is no-op-safe when the cache path is absent.
  • Implementation detail

    - name: Fix Hardhat solc permissions
      run: find ~/.cache/hardhat-nodejs/compilers-v2/linux-amd64 -type f -name "solc-linux-amd64-*" -exec chmod +x {} + || true

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build (18.x) Stabilize Node 18 CI by restoring execute bit on cached Hardhat solc binaries Jun 26, 2026
Copilot AI requested a review from tjcloa June 26, 2026 16:37
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.

2 participants