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: stager fails when the file to download doesn't exist #1321

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

otaviomacedo
Copy link
Contributor

@otaviomacedo otaviomacedo commented Sep 27, 2023

Sometimes, the stager function receives a message to download a file that should exist but doesn' t. If we throw an error, the message will be sent to the DLQ, to be processed again in a re-drive. But given that this file will probably never be available, the re-drives will also fail, and we'll never be able to get rid of the message in the DLQ. Instead, we ignore this version by returning silently.

NPM seems to occasionally drop tarballs on the floor when a new package version is released, which you can notice on the download stats because the package has been downloaded 0 times. So far we've seen that happen for:


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

github-actions added 2 commits September 27, 2023 13:10
Signed-off-by: github-actions <github-actions@github.com>
Signed-off-by: github-actions <github-actions@github.com>
@otaviomacedo otaviomacedo requested review from a team September 27, 2023 15:21
@cdklabs-automation cdklabs-automation added this pull request to the merge queue Sep 29, 2023
Merged via the queue into main with commit 7107eaf Sep 29, 2023
7 checks passed
@cdklabs-automation cdklabs-automation deleted the otaviom/ignore-missing-files branch September 29, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants