Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous Delivery nodejs version bump #573

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

sbSteveK
Copy link
Contributor

@sbSteveK sbSteveK commented Aug 16, 2024

Bump the install phase nodejs version from 10 to 14 in continuous-delivery related yml files.

CD is currently failing at the POST_BUILD phase of the aws-crt-nodejs-cd-combine-binaries CodeBuild Build Project with the context "COMMAND_EXECUTION_ERROR: Error while executing command: bash ./continuous-delivery/pack.sh. Reason: exit status 1"

logs indicate:
npx tsc -p tsconfig.json
Unexpected token ?

run(npx tsc -p tsconfig.json) is in the scripts/tsc.js
Which is listed in the "prepare": "node ./scripts/tsc.js && node ./scripts/install.js" of the package.json.

The related yml file for pack sets the runtime-version of nodejs to 10. Changing this to our minimum supported version of 14 should resolve the issue. We may as well also bump the version from 10 -> 14 in the publish and test-version-exists files as well since I'm expecting the same issue in those locations.

This solution was tested locally where running npx tsc -p tsconfig.json resulted in no error when using node 14 but generated an identical "Unexpected token ?" error when using Node 10.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@graebm
Copy link
Contributor

graebm commented Aug 16, 2024

Why?

Please, in all pull requests explain WHY you're doing things. Explain the problem you encountered, and why this will fix it.

@sbSteveK sbSteveK merged commit 1de478c into main Aug 16, 2024
30 checks passed
@sbSteveK sbSteveK deleted the codebuild-nodejs-version branch August 16, 2024 23:19
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