Skip to content

Maintenance: Add pause when building layers #2491

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

Closed
1 of 2 tasks
leandrodamascena opened this issue Jun 17, 2023 · 3 comments · Fixed by #2834
Closed
1 of 2 tasks

Maintenance: Add pause when building layers #2491

leandrodamascena opened this issue Jun 17, 2023 · 3 comments · Fixed by #2834
Assignees
Labels
internal Maintenance changes

Comments

@leandrodamascena
Copy link
Contributor

Why is this needed?

Our layer-building process expects to download the version published on PyPI with the corresponding tag, but it happens that sometimes (probably CDN cache) PyPI takes minutes to point to the latest version and the build fails. So let's add a pause of about 30 seconds in the layer build to give Pypi time to update with the latest version.

ERROR:

#9 [6/7] RUN CFLAGS="-Os -g0 -s" pip install --no-binary pydantic==1.* -t /asset/python "aws-lambda-powertools[all]==2.17.0"
#9 0.744 ERROR: Could not find a version that satisfies the requirement aws-lambda-powertools[all]==2.17.0 (from versions: 0.1.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.10.0, 0.10.1, 0.11.0, 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.10.4, 1.10.5, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.17.0, 1.17.1, 1.18.0, 1.18.1, 1.19.0, 1.20.0, 1.20.1, 1.20.2, 1.21.0, 1.21.1, 1.22.0, 1.23.0, 1.24.0, 1.24.1, 1.24.2, 1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.25.4, 1.25.5, 1.25.6, 1.25.7, 1.25.8, 1.25.9, 1.25.10, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 1.26.5, 1.26.6, 1.26.7, 1.27.0, 1.28.0, 1.29.0, 1.29.1, 1.29.2, 1.30.0, 1.31.0, 1.31.1, 2.0.0a0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.0a4, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.7.1, 2.8.0, 2.9.0, 2.9.1, 2.10.0, 2.11.0, 2.12.0, 2.13.0, 2.14.0, 2.14.1, 2.15.0, 2.16.0, 2.16.1, 2.16.2)
#9 0.744 ERROR: No matching distribution found for aws-lambda-powertools[all]==2.17.0

Which area does this relate to?

Automation

Solution

Add a pause of about 30 seconds in the layer build to give Pypi time to update with the latest version.

Acknowledgment

@leandrodamascena leandrodamascena added triage Pending triage from maintainers internal Maintenance changes labels Jun 17, 2023
@leandrodamascena leandrodamascena changed the title Maintenance: Add sleep when building layers Maintenance: Add pause when building layers Jun 17, 2023
@leandrodamascena
Copy link
Contributor Author

Removing the triage label, assigning it to me, and putting it in "On Hold" status until we have the bandwidth to implement this.

@leandrodamascena leandrodamascena removed the triage Pending triage from maintainers label Jun 20, 2023
@leandrodamascena leandrodamascena self-assigned this Jun 20, 2023
@leandrodamascena leandrodamascena linked a pull request Jul 24, 2023 that will close this issue
9 tasks
@leandrodamascena leandrodamascena moved this from On hold to Working on it in Powertools for AWS Lambda (Python) Jul 24, 2023
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (Python) Jul 24, 2023
@github-actions
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Jul 24, 2023
@github-actions
Copy link
Contributor

This is now released under 2.22.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Jul 25, 2023
@heitorlessa heitorlessa moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Maintenance changes
Projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

1 participant