8000 Run signing integration test by kichristensen · Pull Request #3135 · getporter/porter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Run signing integration test #3135

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

Merged

Conversation

kichristensen
Copy link
Contributor
@kichristensen kichristensen commented May 28, 2024

What does this change

In order parallelize integration tests, the Github workflow doesn't use Mage to run all integration tests directly. Instead each integration test file is run in different jobs, requiring new integration test files to be manually added to the workflow.
The integration test for signing images was missing and is added in this PR.

For some reason running the Notation and Cosign test in parallel fails on in the Github workflow, so parallelization of those two tests are also disabled.

Related to #2902

Notes for the reviewer

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

In order parallelize integration tests, the Github workflow doesn't use
Mage to run all integration tests directly. Instead each integration test
file is run in different jobs, requiring new integration test files to
be manually added to the workflow.
The integration test for signing images was missing and is added in this
PR.

Signed-off-by: Kim Christensen <kimworking@gmail.com>
Signed-off-by: Kim Christensen <kimworking@gmail.com>
@kichristensen kichristensen marked this pull request as ready for review May 28, 2024 21:21
@@ -124,3 +124,33 @@ jobs:
PORTER_INTEG_FILE: uninstall_test.go
run: go run mage.go -v TestIntegration
shell: bash
signing_test_integ:
Copy link
Member

Choose a reason for hiding this comment

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

Should we make another reusable workflow file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't even think of that, it would be a great idea. I will update the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately it is not possible. The documentation states that it is a maximum of 20 reusable workflows from the top-level workflow file 😢
https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations

Copy link
Member
@schristoff schristoff left a comment

Choose a reason for hiding this comment

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

Approving but maybe we should make another reusable workflow file

@kichristensen kichristensen merged commit eeeaa29 into getporter:main Jun 3, 2024
38 checks passed
@kichristensen kichristensen deleted the runSigningIntegrationTest branch June 3, 2024 21:44
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.

2 participants
0