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: upgrade sdk js to V3 and lambda to runtime 20.x #5583

Merged
merged 22 commits into from Jan 8, 2024

Conversation

KollaAdithya
Copy link
Contributor

@KollaAdithya KollaAdithya commented Jan 2, 2024

Resolves #5422
On top of this PR #5429 upgraded sdk js to V3

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@KollaAdithya KollaAdithya requested review from hkford and a team as code owners January 2, 2024 17:23
@KollaAdithya KollaAdithya requested review from huanjani and removed request for a team January 2, 2024 17:23
Copy link

github-actions bot commented Jan 2, 2024

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 57120 56796 +0.57
macOS (arm) 58140 57796 +0.60
linux (amd) 50088 49804 +0.57
linux (arm) 49344 49092 +0.51
windows (amd) 47192 46940 +0.54

@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2024

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (f435971) 70.03% compared to head (b6496a1) 70.02%.
Report is 1 commits behind head on mainline.

Files Patch % Lines
cf-custom-resources/lib/dns-cert-validator.js 75.00% 4 Missing ⚠️
cf-custom-resources/lib/wkld-cert-validator.js 80.00% 4 Missing ⚠️
cf-custom-resources/lib/wkld-custom-domain.js 73.33% 4 Missing ⚠️
cf-custom-resources/lib/cert-replicator.js 75.00% 2 Missing ⚠️
...f-custom-resources/lib/custom-domain-app-runner.js 89.47% 2 Missing ⚠️
cf-custom-resources/lib/custom-domain.js 84.61% 2 Missing ⚠️
cf-custom-resources/lib/dns-delegation.js 80.00% 2 Missing ⚠️
cf-custom-resources/lib/env-controller.js 75.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline    #5583      +/-   ##
============================================
- Coverage     70.03%   70.02%   -0.01%     
============================================
  Files           302      302              
  Lines         46498    46533      +35     
  Branches        301      299       -2     
============================================
+ Hits          32563    32583      +20     
- Misses        12350    12365      +15     
  Partials       1585     1585              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

Good work! Thank you so much for making this happen! Do we need to update .release too?

@@ -17,7 +17,7 @@ List of all available properties for a Copilot pipeline manifest. To learn more
# connection_name: a-connection

build:
image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know if the following scenarios will break for pipeline users

  1. They don't update the pipeline by running copilot pipeline deploy again so the codebuild won't be updated. However, they updated the buildspec to use the latest Copilot.
  2. They updated the pipeline and the codebuild was upgrade to amazonlinux2-x86_64-standard:5.0. However, they forgot to update the buildspec file.

If so, we might want to make sure they are fully aware of the reason why this happen and what to do to get it around (by looking at the codebuild log).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not test these scenarios. I will deploy a pipeline to test these

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested both the scenarios, surprisingly it did not error out.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool! That's even better. It seems like we don't depend on the current env nodejs when they use Copilot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have only default buildspec that copilot generates other than changing it to latest version.

what if the customer have some commands like make test where they are running some unit tests for their application based on nodejs environment.

Do we need consider this scenario?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm it should be good i think, as they should be aware of their dependency on nodejs version. Whereas if the default scenario breaks, they probably don't know why nodejs version would even matter.

@mergify mergify bot merged commit 50ed8b5 into aws:mainline Jan 8, 2024
12 checks passed
Sprint 🏃‍♀️ automation moved this from In review to Pending release Jan 8, 2024
@KollaAdithya KollaAdithya deleted the upgrade/sdk-js/v3 branch January 19, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sprint 🏃‍♀️
  
Pending release
Development

Successfully merging this pull request may close these issues.

Node.js 16 is now 'End of Life'
4 participants