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

fix(property-provider): memoize provider after the first evoke #1471

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Aug 26, 2020

Resolves #1466

Description of changes:
This change makes the memoize function loads the value after the first invoke instead of immediately when calling memoize().

Detailed root cause is stated in the original issue: #1466 (comment). This issue was not caught because all of the environments we run CI, and developers machine, already has AWS_REGION value set.

To prevent it happens again, we need to check and clean the environment of our CI

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2020

Codecov Report

Merging #1471 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1471   +/-   ##
=======================================
  Coverage   79.80%   79.81%           
=======================================
  Files         298      298           
  Lines       11502    11507    +5     
  Branches     2475     2477    +2     
=======================================
+ Hits         9179     9184    +5     
  Misses       2323     2323           
Impacted Files Coverage Δ
packages/property-provider/src/memoize.ts 100.00% <0.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 a377957...336a2c2. Read the comment docs.

@AllanZhengYP
Copy link
Contributor Author

The retried build succeeds. Link for build logs

@AllanZhengYP AllanZhengYP marked this pull request as ready for review August 26, 2020 23:06
@trivikr
Copy link
Member

trivikr commented Aug 26, 2020

Ref: Original build failed because of issue #1460

@AllanZhengYP AllanZhengYP merged commit 729a276 into aws:master Aug 27, 2020
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.0.0-gamma.7 / #1420 causes Region is missing errors
3 participants