Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Dec 2, 2020

🗣 Description

This PR updates the GitHub Actions jobs to generate a lambda artifact for every supported version of Python. The Dockerfile and build.sh script have been updated to support this change.

💭 Motivation and Context

The Python package being used is built for all supported Python versions, so I felt the generated Lambda artifact should be built for all Python versions supported by both the package and AWS. This makes it easier to use generated artifacts for deployments if desired.

🧪 Testing

Automated testing passes and lambda artifacts are successfully generated.

✅ Checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

Switch lambda building to use the Python version given as a build argument.
Change the build script to accept an argument to use the correct major.minor
version from the lambci imagine being used.
When building the lambda we only need Docker tools which are pre-installed on
the GH Actions runners. Thus, we do not need to set up a Python environment and
install Python requirements.
Revert the complicated output name bits from the build script and Actions
workflows. Instead the Actions workflows will handle any fancy asset naming.
Remove reverted IS_RELEASE argument. Add some comments explaining
functionality. Update the LABELs being set to reflect the current best
practices.
@mcdonnnj mcdonnnj self-assigned this Dec 2, 2020
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

Approved, but please see my questions and comments.

Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

Good stuff! 🐑

Expand the comment to reference what the command is doing since zip does not
have long options.
Copy link
Contributor

@hillaryj hillaryj left a comment

Choose a reason for hiding this comment

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

🎆

@mcdonnnj mcdonnnj merged commit 1f15ee7 into develop Dec 3, 2020
@mcdonnnj mcdonnnj deleted the improvement/dynamic_python_version branch December 3, 2020 20:21
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.

4 participants