Skip to content

Harden CI: disk cleanup, cache split, and actions/cache v5#70

Merged
pinodeca merged 1 commit into
mainfrom
pinodeca/ci-fixes
Mar 17, 2026
Merged

Harden CI: disk cleanup, cache split, and actions/cache v5#70
pinodeca merged 1 commit into
mainfrom
pinodeca/ci-fixes

Conversation

@pinodeca

@pinodeca pinodeca commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Opt into Node 24 for JavaScript actions via FORCE_JAVASCRIPT_ACTIONS_TO_NODE24.
  • Split Cargo caching into a cargo-pgrx tool cache and a Cargo source cache.
  • Add an early disk cleanup step in the test job to reduce runner No space left on device failures.
  • Upgrade actions/cache from v4 to v5 across both CI and copilot-setup-steps workflows, fixing Node.js deprecation warnings (punycode, url.parse()).

Why

Recent scheduled and PR CI runs intermittently failed with runner-level No space left on device errors. These changes reduce disk pressure and cache footprint while proactively handling the Node 20 deprecation path. The actions/cache@v4 action emits deprecation warnings on Node 20+ runners.

Scope

  • .github/workflows/ci.yml — disk cleanup, cache restructuring, actions/cache v5, Node 24 opt-in.
  • .github/workflows/copilot-setup-steps.ymlactions/cache v5.
  • No extension runtime behavior changes.

Copilot AI left a comment

Copy link
Copy Markdown

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 GitHub Actions CI workflow to reduce runner disk pressure and prepare for JavaScript actions’ Node 24 runtime, improving CI reliability without changing extension behavior.

Changes:

  • Opt into Node 24 for JavaScript-based GitHub Actions via FORCE_JAVASCRIPT_ACTIONS_TO_NODE24.
  • Add an early runner disk cleanup step to mitigate intermittent “No space left on device” failures.
  • Split Cargo caching into separate caches for the cargo-pgrx tool and Cargo dependency sources to reduce cache footprint.

You can also share your feedback on Copilot code review. Take the survey.

- Add early disk cleanup step to reduce runner 'No space left on device' failures
- Opt into Node 24 for JavaScript actions (FORCE_JAVASCRIPT_ACTIONS_TO_NODE24)
- Split Cargo caching into separate cargo-pgrx tool and dependency source caches
- Upgrade actions/cache from v4 to v5 (fixes Node.js deprecation warnings)
- Apply cache v5 upgrade to copilot-setup-steps workflow as well
@pinodeca pinodeca force-pushed the pinodeca/ci-fixes branch from 1eb8a1c to 53adf5d Compare March 17, 2026 17:11
@pinodeca pinodeca changed the title Improve CI resilience for Node 24 and runner disk pressure Harden CI: disk cleanup, cache split, and actions/cache v5 Mar 17, 2026
@pinodeca pinodeca merged commit 428672f into main Mar 17, 2026
6 checks passed
@pinodeca pinodeca deleted the pinodeca/ci-fixes branch March 17, 2026 17:33
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