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

ci: add gh action to generate and test pyinstaller zip file #4487

Merged
merged 21 commits into from
Dec 20, 2022

Conversation

mndeveci
Copy link
Contributor

@mndeveci mndeveci commented Dec 15, 2022

Generates a pyinstaller zip file for linux & mac and runs some basic tests. ZIP file will also added as artifact so that it can be downloaded and tested with each PR.

build-linux.sh and build-mac.sh behaves differently if CI_OVERRIDE environment variable is set to 1:

  • Installation folder is changed as aws-sam-cli-beta
  • Installed executable is changed as sam-beta (different than what we have as of now [samdev, sam-nigtly, sam])

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

@mndeveci mndeveci marked this pull request as ready for review December 16, 2022 20:17
@mndeveci mndeveci requested a review from a team as a code owner December 16, 2022 20:17
@mndeveci mndeveci requested review from jfuss and qingchm December 16, 2022 20:17
Copy link
Contributor

@qingchm qingchm left a comment

Choose a reason for hiding this comment

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

LGTM! Let's ship it ASAP!

run: |
unzip .build/output/aws-sam-cli-linux-x86_64.zip -d sam-installation
./sam-installation/install
sam-beta --version
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking: can we kick off another suite of tests that is bare bones across the commands, such that each command is atleast invoked once? could be a follow up commit. Could be a first step towards artifact based testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do agree with this. But I would rather have that as a separate PR and include the tests that we want to run with the pyinstaller. So that we can incrementally improve our installer test coverage.

@sriram-mv sriram-mv enabled auto-merge (squash) December 20, 2022 19:12
@sriram-mv sriram-mv merged commit 64583c3 into aws:develop Dec 20, 2022
@mndeveci mndeveci deleted the pyinstaller_ci_gha branch December 20, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants