-
Notifications
You must be signed in to change notification settings - Fork 403
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(ci): lambda layer workflow release version and conditionals #1316
Merged
heitorlessa
merged 23 commits into
aws-powertools:develop
from
am29d:chore/fix-layer-workflow
Jul 19, 2022
Merged
fix(ci): lambda layer workflow release version and conditionals #1316
heitorlessa
merged 23 commits into
aws-powertools:develop
from
am29d:chore/fix-layer-workflow
Jul 19, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: fix(logger): preserve std keys when using custom formatters (#1264)
* chore: add layer project * reduce to 1 region for dev * chore: shorter name for the workflow * fix ignore markdown lint for now * fix: more f strings * ignore mdlint * add reusable workflow for both beta and prod * Update layer/layer/canary/app.py Co-authored-by: Heitor Lessa <heitor.lessa@hotmail.com> * Update layer/layer/canary/app.py Co-authored-by: Heitor Lessa <heitor.lessa@hotmail.com> * readme review * rephrase canary stack ssm parameter usage * add default RELEASE_TAG_VERSION assignment based on the input (release or manual trigger) * add reference to layer docs * wording * move version trackign arn to canary stack * remove outdated npm caching, add release tag resolution for manual workflow trigger * review: fix layer name and remove dependencies from reusable workflow * remove debug statement, add default working dir * pin versions and hashes for requirements with pip-compile * rename reusable workflow * pass artefact name to the reusable workflow to prevent potential future conflicts Co-authored-by: Heitor Lessa <heitor.lessa@hotmail.com>
boring-cyborg
bot
added
the
github-actions
Pull requests that update Github_actions code
label
Jul 19, 2022
pull-request-size
bot
added
the
size/M
Denotes a PR that changes 30-99 lines, ignoring generated files.
label
Jul 19, 2022
7 tasks
heitorlessa
suggested changes
Jul 19, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! Suggested a job conditional instead of dummy jobs, but I might be missing something
heitorlessa
changed the title
chore(ci): fix layer workflow
fix(ci): lambda layer release pipeline release version and conditionals
Jul 19, 2022
heitorlessa
changed the title
fix(ci): lambda layer release pipeline release version and conditionals
fix(ci): lambda layer workflow release version and conditionals
Jul 19, 2022
Co-authored-by: Heitor Lessa <heitor.lessa@hotmail.com>
heitorlessa
approved these changes
Jul 19, 2022
rubenfonseca
approved these changes
Jul 19, 2022
heitorlessa
added a commit
to heitorlessa/aws-lambda-powertools-python
that referenced
this pull request
Jul 19, 2022
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: fix(ci): lambda layer workflow release version and conditionals (aws-powertools#1316)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
github-actions
Pull requests that update Github_actions code
internal
Maintenance changes
size/M
Denotes a PR that changes 30-99 lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number:
Summary
In this PR we fix few issues with layers we have discovered in last release.
First, we need to make sure to keep the old layer versions, something I have missed during the migration.
Second, there is a case when the release upstream workflow can fail but it will still trigger the layer deployment because the condition is set to
complete
, and it can besuccess
orfailure
. Thus, we need a job conditional to proceed only upon success OR a dispatch event.Changes
RETAIN
so we can keep the old layer versionsif
block so we can trigger the workflow manually as wellUser experience
Checklist
If your change doesn't seem to apply, please leave them unchecked.
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.