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

Misc cleanup of CI and README #2944

Merged
merged 20 commits into from
Jan 22, 2024
Merged

Misc cleanup of CI and README #2944

merged 20 commits into from
Jan 22, 2024

Conversation

rrsettgast
Copy link
Member

@rrsettgast rrsettgast commented Jan 18, 2024

  • Cleanup badges in README.md
  • fix ci_test.yml for non-pr runs
  • add badge for actions status

@rrsettgast rrsettgast self-assigned this Jan 18, 2024
@rrsettgast rrsettgast requested review from TotoGaz and wrtobin January 18, 2024 07:52
@rrsettgast rrsettgast added the ci: run CUDA builds Allows to triggers (costly) CUDA jobs label Jan 18, 2024
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3ccaaf9) 51.33% compared to head (8d48a59) 51.33%.

❗ Current head 8d48a59 differs from pull request most recent head 3a32dbb. Consider uploading reports for the commit 3a32dbb to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2944   +/-   ##
========================================
  Coverage    51.33%   51.33%           
========================================
  Files          968      968           
  Lines        86819    86817    -2     
========================================
  Hits         44570    44570           
+ Misses       42249    42247    -2     

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

@rrsettgast rrsettgast requested a review from bmhan12 January 19, 2024 17:49
… and try to evaluate NUM_ASSIGNEES in if_not_unassigned_pull_request job instead of is_not_draft_pull_request
@rrsettgast rrsettgast removed their assignment Jan 19, 2024
@rrsettgast rrsettgast self-assigned this Jan 19, 2024
@@ -58,19 +56,22 @@ jobs:

# PR must be assigned to be merged.
# This job will fail if this is not the case.
is_pull_request_assigned:
needs: [is_pull_request_a_draft]
if_not_unassigned_pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe names like unassigned_pr_guard or draft_pr_guard can be nice as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah...I struggled with a name...but this seemed pretty descriptive of the result. It is true if this action is "not on an unassigned pull request"....otherwise "it is an unassigned pull request" and it is a fail.

I think we should consider a more intrusive restructure of the yaml s.t. we have a "query" phase to get all the variables...then tests on those variables for things like (is_draft_pr, is_unassigned_pr, run_cuda_tests) then have the testing blocks depend on those instead of inferred....for instance the cuda tests only run if the label exists, but we have a test for a run_cuda label, then the tests depend on that. This way we can see the workflow better.

rrsettgast and others added 3 commits January 22, 2024 10:18
@rrsettgast rrsettgast merged commit c446b53 into develop Jan 22, 2024
20 of 21 checks passed
@rrsettgast rrsettgast deleted the cleanup/misc branch January 22, 2024 23:09
ouassimkh pushed a commit that referenced this pull request Feb 16, 2024
* Cleanup badges in README.md

* Added CI badge and docs badge

* rename if_pull_request_is_assigned to if_not_unassigned_pull_request, and try to evaluate NUM_ASSIGNEES in if_not_unassigned_pull_request job instead of is_not_draft_pull_request

* remove NUM_ASSIGNEES variable from yml

---------

Co-authored-by: TotoGaz <49004943+TotoGaz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci: run CUDA builds Allows to triggers (costly) CUDA jobs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants