Skip to content

fix: add _setupNodeVersion to _setupCDKTestsLinux and _setupE2ETestsLinux#3462

Merged
adrianjoshua-strutt merged 1 commit into
releasefrom
fix/add-setupNodeVersion-to-cdk-tests-release
Apr 6, 2026
Merged

fix: add _setupNodeVersion to _setupCDKTestsLinux and _setupE2ETestsLinux#3462
adrianjoshua-strutt merged 1 commit into
releasefrom
fix/add-setupNodeVersion-to-cdk-tests-release

Conversation

@adrianjoshua-strutt
Copy link
Copy Markdown
Member

Problem

The canary test functions _setupCDKTestsLinux and _setupE2ETestsLinux in shared-scripts.sh never called _setupNodeVersion, causing them to run on the Docker image's system Node 18.15.0 instead of the configured AMPLIFY_NODE_VERSION (24.12.0).

This worked until lru-cache v11 was published to npm (~Apr 6 2026 00:00 UTC), which requires diagnostics_channel.tracingChannel() (available from Node 20.5+). Since CodeBuild was still running Node 18.15.0 in these test steps, the canary builds broke.

Result: 83 CloudWatch alarms firing across Amplify Data Canary tests.

Fix

Add the missing _setupNodeVersion $AMPLIFY_NODE_VERSION call to both functions, matching what every other test function in shared-scripts.sh already does.

  • _setupE2ETestsLinux: replaced the stale yarn config set ignore-engines true workaround with _setupNodeVersion
  • _setupCDKTestsLinux: added _setupNodeVersion after loadCache and before _installCLIFromLocalRegistry

Notes

@adrianjoshua-strutt adrianjoshua-strutt requested a review from a team as a code owner April 6, 2026 16:41
@adrianjoshua-strutt adrianjoshua-strutt merged commit 781863b into release Apr 6, 2026
6 checks passed
@adrianjoshua-strutt adrianjoshua-strutt deleted the fix/add-setupNodeVersion-to-cdk-tests-release branch April 6, 2026 17:24
adrianjoshua-strutt added a commit that referenced this pull request Apr 7, 2026
…inux (#3463)

The canary test functions _setupCDKTestsLinux and _setupE2ETestsLinux
never called _setupNodeVersion, causing them to run on the Docker
image's system Node 18.15.0 instead of the configured
AMPLIFY_NODE_VERSION (24.12.0). This worked until lru-cache v11 was
published to npm (~Apr 6 2026 00:00 UTC), which requires
diagnostics_channel.tracingChannel() (Node 20.5+).

This PR adds the missing _setupNodeVersion $AMPLIFY_NODE_VERSION call to
both functions in Gen1 as well

Companion PRs:
- #3461 (main)
- #3462 (release)
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