-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate staging test run from prod test run This was originally combined into a single invocation for convenience but I believe this is more work than gain: * xfails alone became painful if staging expected failures are not the same as prod (which seems like a normal thing at times). * The test results are much clearer ("Staging conformance failure" is not as critical as "production conformance failure") This means the caller does need to run the action twice to get both tests Signed-off-by: Jussi Kukkonen <[email protected]> * cli protocol: Change --staging argument order If we promise the order is static, let's make it something sensible (don't have --staging after the artifact input). Signed-off-by: Jussi Kukkonen <[email protected]> * cli protocol: Don't promise option presence We already have --trusted-root that also is not always present. Signed-off-by: Jussi Kukkonen <[email protected]> * linter: Fix warnings from modern ruff * Update config to current style * use "ruff check" instead of "ruff" Signed-off-by: Jussi Kukkonen <[email protected]> * self-test: Let's run this daily Results should not change... except if infrastructure changes. Signed-off-by: Jussi Kukkonen <[email protected]> --------- Signed-off-by: Jussi Kukkonen <[email protected]>
- Loading branch information
Showing
8 changed files
with
100 additions
and
75 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,19 @@ client-under-test [CLI protocol](docs/cli_protocol.md). | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# insert your client installation steps here | ||
|
||
# Run tests against production Sigstore environment | ||
- uses: sigstore/[email protected] | ||
with: | ||
entrypoint: my-conformance-client | ||
|
||
# Run tests against staging Sigstore environment | ||
- uses: sigstore/[email protected] | ||
with: | ||
entrypoint: my-conformance-client | ||
environment: staging | ||
``` | ||
See [sigstore-python conformance test](https://github.com/sigstore/sigstore-python/blob/main/.github/workflows/conformance.yml) | ||
|
@@ -57,8 +66,8 @@ for a complete example. | |
The important action inputs are | ||
* `entrypoint`: required string. A command that implements the client-under-test | ||
[CLI protocol](docs/cli_protocol.md) | ||
* `enable-staging`: optional boolean. When true, the test suite will run tests against | ||
staging infrastructure in addition to running them against production infrastructure | ||
* `environment`: 'production' (default) or 'staging'. This selects the Sigstore environment to | ||
run against | ||
* `xfail`: optional string. Whitespace separated test names that are expected to fail. | ||
|
||
See [action.yml](action.yml) for full list of inputs. | ||
|
@@ -77,8 +86,7 @@ The test suite can be configured with | |
[CLI specification](https://github.com/sigstore/sigstore-conformance/blob/main/docs/cli_protocol.md) | ||
* `--identity-token=$GITHUB_TOKEN` where GITHUB_TOKEN is a GitHub token with actions:read | ||
access for public repositories (--identity-token is only required for signing tests) | ||
* optional (and currently experimental) `--staging`: This instructs the test suite to run | ||
against Sigstore staging infrastructure | ||
* optional `--staging`: This instructs the test suite to run against Sigstore staging infrastructure | ||
* The environment variable `GHA_SIGSTORE_CONFORMANCE_XFAIL` can be used to | ||
set expected results | ||
|
||
|
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
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
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
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
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