-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add staging to selftest #127
Conversation
Only run the marked tests when "--staging" is used. This allows us * enable only the tests we know work on staging * slowly add support to more tests (likely by adding staging test assets) * at some point switch the marker use so that default is staging support and the remaining tests are marked with skipif() I've only enabled three tests: they seem like they should work on staging, I am not sure about any others. Signed-off-by: Jussi Kukkonen <[email protected]>
This variable results in the test suite being run twice: * first without --staging * then with --staging Signed-off-by: Jussi Kukkonen <[email protected]>
Input defaults to false for now: We may want to consider enabling by default when we release (or requiring a value). Signed-off-by: Jussi Kukkonen <[email protected]>
Signed-off-by: Jussi Kukkonen <[email protected]>
* Single summary output line * Add line in log with the "staging"/"production": this is useful to tell apart the two pytest result blocks Signed-off-by: Jussi Kukkonen <[email protected]>
cc @javanlacerda please have a look:
|
The example had bit-rotted a bit so I rewrote it and added enable-staging and xfail to README. Signed-off-by: Jussi Kukkonen <[email protected]>
Hey @jku! It seems awesome! I am just wondering if we could have staging as default and production as optional. I mean, It could decrease the production infrastructure usage for development proposes. Does it make sense? |
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.
LGTM! Thank you!
I think once we're sure this works the default should be to test everything (and not testing with production seems like a decision that could bite a client developer in the behind). Whether there is a use case to ever test only staging I don't know... |
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.
Thanks @jku, LGTM!
I personally can't think of one 🙂 -- IMO we can save ourselves a state here and make staging tests "additive" rather than dealing with different combinations. |
This might be enough to close #121.
Summary
Do several small changes required to support staging tests in self-test
enable-staging
action input defaults to false: we may want to reconsider before releasing -- maybe opt-out is better?TODO?
--staging
flag is sort of documented in cli_protocol.md but it could probably be improvedTest run https://github.com/sigstore/sigstore-conformance/actions/runs/8017481217