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

Add support for validating one job in a workflow #27

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

ericcornelissen
Copy link
Collaborator

@ericcornelissen ericcornelissen commented Mar 10, 2024

Closes #2
Relates to #1, #16

Summary

Extend the ghasum verify command with the ability to verify a single job in a workflow. In particular, when the provided target ends with :suffix the suffix will be stripped and used as the job id/key, the rest of the target is then treated as the workflow to verify. This will result in the verification scope being limited to only that job (in that workflow).

@ericcornelissen ericcornelissen added the enhancement New feature or request label Mar 10, 2024
Extend the `ghasum verify` command with the ability to verify a single
job in a workflow. In particular, when the provided target ends with
`:suffix` the suffix will be stripped and used as the job id/key, the
rest of the target is then treated as the workflow to verify. This will
result in the verification scope being limited to only that job (in that
workflow).

The new behavior is tested primarily through `testscript` tests covering
both good weather and bad weather scenarios (this also improves the good
weather scenarios for verification by covering the scenario where only
some of the checksums are valid and only those are being validated for
both workflow and job verification). Additionally, local functionality
is unit tested in places where unit tests already exist.
@ericcornelissen ericcornelissen merged commit 32bdb8c into main Mar 14, 2024
11 checks passed
@ericcornelissen ericcornelissen deleted the 2-validate-job branch March 14, 2024 21:38
@ericcornelissen ericcornelissen mentioned this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support validating a specific job
1 participant