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

ci: fix gator cli build #2657

Merged
merged 4 commits into from
Mar 31, 2023
Merged

Conversation

sozercan
Copy link
Member

@sozercan sozercan commented Mar 30, 2023

What this PR does / why we need it:
This fixes gator cli builds during release and it should mark the job as failed if build fails

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #2656

Special notes for your reviewer:
Will need to be cherry picked to release-3.12 branch after merged

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
@sozercan sozercan changed the title fix: fix gator cli build ci: fix gator cli build Mar 30, 2023
Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@sozercan sozercan requested a review from maxsmythe March 30, 2023 16:14
Copy link
Contributor

@acpana acpana left a comment

Choose a reason for hiding this comment

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

just two non blocking questions


# wait for all pids
for pid in ${pids[*]}; do
wait $pid
Copy link
Contributor

Choose a reason for hiding this comment

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

two thoughts

  • wondering if we want a specific timeout here, besides the overall timeout defined on line 19 in this file for all jobs;
  • did we want to fail the job if one of the pid's returns non zero?

Copy link
Member Author

@sozercan sozercan Mar 30, 2023

Choose a reason for hiding this comment

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

  • no specific timeout, just timeout for the pipeline itself
  • yea that is the proposed behavior in the PR (set -e). we are not doing that today so we didn't know release of gator failed

Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for spotting this!

@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.13 ⚠️

Comparison is base (e33c551) 53.36% compared to head (2c2c426) 53.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2657      +/-   ##
==========================================
- Coverage   53.36%   53.23%   -0.13%     
==========================================
  Files         120      120              
  Lines       10594    10594              
==========================================
- Hits         5653     5640      -13     
- Misses       4508     4518      +10     
- Partials      433      436       +3     
Flag Coverage Δ
unittests 53.23% <ø> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sozercan sozercan merged commit 8f253d5 into open-policy-agent:master Mar 31, 2023
@sozercan sozercan deleted the fix-gator-release branch March 31, 2023 19:48
sozercan added a commit to sozercan/gatekeeper that referenced this pull request Mar 31, 2023
sozercan added a commit to sozercan/gatekeeper that referenced this pull request Mar 31, 2023
sozercan added a commit to sozercan/gatekeeper that referenced this pull request Mar 31, 2023
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
sozercan added a commit that referenced this pull request Mar 31, 2023
salaxander pushed a commit to salaxander/gatekeeper that referenced this pull request Apr 5, 2023
Signed-off-by: Xander Grzywinski <xandergr@microsoft.com>
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.

gator tarball release is broken
5 participants