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

chore: replace Node16 runtimes in unit tests with symbolic runtime #27011

Merged
merged 7 commits into from
Sep 6, 2023

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Sep 5, 2023

To lower the effort for our next hunt-and-peck Node upgrade, replace all runtimes in unit tests with symbolic Node versions.

  • Most of the time, use NODEJS_LATEST
  • Replace expectations of a rendered runtime "nodejs16.x" -> Runtime.NODEJS_LATEST.name
  • For tests where the hash matters, use a hardcoded fake runtime of "node99.x".

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

To lower the effort for our next hunt-and-peck Node upgrade, replace
all runtimes in unit tests with a symbolic Node version that doesn't
actually have to deploy successfully.
@rix0rrr rix0rrr requested a review from a team September 5, 2023 12:54
@aws-cdk-automation aws-cdk-automation requested a review from a team September 5, 2023 12:54
@github-actions github-actions bot added the p2 label Sep 5, 2023
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 5, 2023
Comment on lines +10 to +12
const THE_RUNTIME = new lambda.Runtime('nodejs99.x', lambda.RuntimeFamily.NODEJS, {
supportsInlineCode: true,
});
Copy link
Contributor

Choose a reason for hiding this comment

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

LOVE THIS!

Copy link
Contributor

Choose a reason for hiding this comment

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

(although it will come up in search queries and someone will curse you in ca. 40 years when node99 is released :P)

Comment on lines +10 to +12
const THE_RUNTIME = new lambda.Runtime('nodejs99.x', lambda.RuntimeFamily.NODEJS, {
supportsInlineCode: true,
});
Copy link
Contributor

Choose a reason for hiding this comment

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

(although it will come up in search queries and someone will curse you in ca. 40 years when node99 is released :P)

@mrgrain mrgrain added the pr/do-not-merge This PR should not be merged at this time. label Sep 6, 2023
@mrgrain
Copy link
Contributor

mrgrain commented Sep 6, 2023

pr/do-not-merge to get pr #27002 in first, which seems higher priority

@rix0rrr rix0rrr removed the pr/do-not-merge This PR should not be merged at this time. label Sep 6, 2023
@mergify
Copy link
Contributor

mergify bot commented Sep 6, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: d73295e
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 66a024f into main Sep 6, 2023
8 checks passed
@mergify mergify bot deleted the huijbers/mass-replace-unittest-runtime branch September 6, 2023 13:46
@mergify
Copy link
Contributor

mergify bot commented Sep 6, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

mikewrighton pushed a commit that referenced this pull request Sep 14, 2023
…27011)

To lower the effort for our next hunt-and-peck Node upgrade, replace all runtimes in unit tests with symbolic Node versions.

* Most of the time, use `NODEJS_LATEST`
* Replace expectations of a rendered runtime `"nodejs16.x" -> Runtime.NODEJS_LATEST.name`
* For tests where the hash matters, use a hardcoded fake runtime of `"node99.x"`.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants