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 job that passed when all other CI jobs have completed #741

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

peternied
Copy link
Member

Description

GitHub allows 'requiring' a job to be run before a pull request can be merged, by adding a new job that 'needs' all the other ci jobs, this job will run last and only if they all pass.

After this is merged someone from the admin team can update the repo settings to enforce this requirement.

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

GitHub allows 'requiring' a job to be run before a pull request can be
merged, by adding a new job that 'needs' all the other ci jobs, this job
will run last and only if they all pass.

After this is merged someone from the admin team can update the repo
settings to enforce this requirement.

Signed-off-by: Peter Nied <peternied@hotmail.com>
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.75%. Comparing base (76fce88) to head (1488d90).
Report is 15 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #741      +/-   ##
============================================
+ Coverage     63.96%   64.75%   +0.79%     
- Complexity     1584     1585       +1     
============================================
  Files           223      238      +15     
  Lines          9093     9880     +787     
  Branches        771      771              
============================================
+ Hits           5816     6398     +582     
- Misses         2866     3072     +206     
+ Partials        411      410       -1     
Flag Coverage Δ
gradle-test 63.99% <ø> (?)
python-test 73.57% <ø> (?)
unittests ?

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

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

@peternied peternied merged commit f91e12d into opensearch-project:main Jun 19, 2024
11 checks passed
@peternied peternied deleted the merge-blocking-job branch June 19, 2024 21:09
@peternied
Copy link
Member Author

@opensearch-project/admin Can you please add a branch protection on main that required check for CI / all-ci-checks-pass?

@gaiksaya
Copy link
Member

gaiksaya commented Jun 19, 2024

@opensearch-project/admin Can you please add a branch protection on main that required check for CI / all-ci-checks-pass?

image

Done! Also added require code reviews from code owners Hope that's okay!

@peternied
Copy link
Member Author

@gaiksaya Thanks for the fast turn around!

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