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

feat: Introduce enforce-hash-update flag to help hashing migration #10209

Merged
merged 1 commit into from Nov 9, 2021

Conversation

pgrzesik
Copy link
Contributor

@pgrzesik pgrzesik commented Nov 8, 2021

Reported internally, introduce a way to ease the lambda hashing algorithm migration

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #10209 (dde6a4f) into master (a591008) will increase coverage by 0.03%.
The diff coverage is 100.00%.

❗ Current head dde6a4f differs from pull request most recent head 25201f1. Consider uploading reports for the commit 25201f1 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10209      +/-   ##
==========================================
+ Coverage   85.35%   85.38%   +0.03%     
==========================================
  Files         339      339              
  Lines       13831    13836       +5     
==========================================
+ Hits        11805    11814       +9     
+ Misses       2026     2022       -4     
Impacted Files Coverage Δ
lib/cli/commands-schema/aws-service.js 100.00% <ø> (ø)
lib/configuration/variables/parse.js 98.95% <ø> (-0.01%) ⬇️
.../compile/events/apiGateway/lib/hack/updateStage.js 95.06% <ø> (ø)
lib/plugins/aws/deploy/index.js 98.75% <100.00%> (+0.06%) ⬆️
lib/plugins/aws/package/compile/functions.js 94.82% <100.00%> (+0.37%) ⬆️
lib/utils/awsSdkPatch.js 100.00% <0.00%> (+50.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a591008...25201f1. Read the comment docs.

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Well done! Looks as a great migration aid

I've just spotted one styling issue in readme


By default, Lambda version hashes will now be generated using improved algorithm (fixed determinism issues). As it is a breaking change that requires more manual effort during migration, it is still possible (but not recommended) to keep using old algorithm by using the following configuration:

````
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should be one back quote less

@@ -236,7 +260,7 @@ provider:
statements: ...
managedPolicies: ...
deploymentRole: ...
```
````
Copy link
Contributor

Choose a reason for hiding this comment

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

And then this change should not happen

@pgrzesik pgrzesik force-pushed the introduce-enforce-hash-update-option branch from 5779071 to 5938c6a Compare November 8, 2021 16:06
@pgrzesik pgrzesik requested a review from medikoo November 8, 2021 16:12
medikoo
medikoo previously approved these changes Nov 8, 2021
Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Looks great 👍

Copy link
Contributor

@mnapoli mnapoli left a comment

Choose a reason for hiding this comment

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

🎉 great!

I've used grammarly.com to add a few missing words (minor), and some suggestions to clarify a few parts.

docs/guides/upgrading-v3.md Outdated Show resolved Hide resolved
docs/guides/upgrading-v3.md Outdated Show resolved Hide resolved
docs/guides/upgrading-v3.md Outdated Show resolved Hide resolved
docs/guides/upgrading-v3.md Outdated Show resolved Hide resolved
docs/guides/upgrading-v3.md Outdated Show resolved Hide resolved
docs/guides/upgrading-v3.md Outdated Show resolved Hide resolved
medikoo
medikoo previously approved these changes Nov 9, 2021
Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

👍

@pgrzesik pgrzesik merged commit afd0a5b into master Nov 9, 2021
@pgrzesik pgrzesik deleted the introduce-enforce-hash-update-option branch November 9, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants