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

Refactor monitoring workflow inputs #489

Merged

Conversation

linus-sun
Copy link
Collaborator

@linus-sun linus-sun commented Oct 14, 2024

Summary

As part of the refactoring work outlined in this doc, this PR refactors the RunConsistencyCheck workflow to take in string/boolean values directly from parsed flag inputs instead of pointers. In doing so, this PR adds a function to check that CLI flags are set correctly and verifies as such in the reusable monitoring workflow.

This PR depends on #483; this is the relevant commit introducing the workflow input changes from pointer to static variable inputs.

Release Note

NONE

Documentation

N/A

@linus-sun linus-sun changed the title Linussun/refactor workflow inputs Refactor monitoring workflow inputs Oct 14, 2024
@linus-sun linus-sun force-pushed the linussun/refactor-workflow-inputs branch from dc9d74a to 4ab1f56 Compare October 14, 2024 21:04
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 41.66667% with 14 lines in your changes missing coverage. Please review.

Project coverage is 70.92%. Comparing base (d271ec7) to head (3599a68).
Report is 131 commits behind head on main.

Files with missing lines Patch % Lines
pkg/rekor/verifier.go 55.55% 8 Missing ⚠️
cmd/verifier/main.go 0.00% 4 Missing ⚠️
pkg/rekor/identity.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
+ Coverage   64.02%   70.92%   +6.89%     
==========================================
  Files           4       13       +9     
  Lines         303      815     +512     
==========================================
+ Hits          194      578     +384     
- Misses         78      182     +104     
- Partials       31       55      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@linus-sun linus-sun force-pushed the linussun/refactor-workflow-inputs branch from 4ab1f56 to 38115b4 Compare October 14, 2024 21:12
@linus-sun linus-sun marked this pull request as ready for review October 14, 2024 21:16
@linus-sun linus-sun requested review from mihaimaruseac and haydentherapper and removed request for mihaimaruseac October 14, 2024 21:16
@linus-sun linus-sun force-pushed the linussun/refactor-workflow-inputs branch 2 times, most recently from 80a1d48 to 72a5e00 Compare October 15, 2024 20:29
mihaimaruseac
mihaimaruseac previously approved these changes Oct 15, 2024
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

LGTM pending rebase

@linus-sun linus-sun dismissed mihaimaruseac’s stale review October 15, 2024 21:22

The merge-base changed after approval.

@linus-sun linus-sun force-pushed the linussun/refactor-workflow-inputs branch from 72a5e00 to 3599a68 Compare October 15, 2024 21:22
@haydentherapper haydentherapper merged commit d1b6b64 into sigstore:main Oct 15, 2024
8 checks passed
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.

3 participants