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

Notify slack with overall result of coverage check. #327

Merged
merged 2 commits into from
Aug 1, 2023
Merged

Conversation

cqc-alec
Copy link
Collaborator

@cqc-alec cqc-alec commented Aug 1, 2023

No description provided.

@cqc-alec cqc-alec requested a review from aborgna-q August 1, 2023 12:44
Copy link
Collaborator

@aborgna-q aborgna-q left a comment

Choose a reason for hiding this comment

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

Nice!

Comment on lines 52 to 54
echo "msg=Coverage check for hugr shows no regression. :-) ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> "$GITHUB_OUTPUT"
else
echo "msg=Coverage check for hugr shows regression. :-( ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> "$GITHUB_OUTPUT"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add an emoji to quickly differentiate the cases on slack?
(:white_check_mark: vs :x:?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just running a test to make sure this works...

@@ -16,15 +18,50 @@ jobs:
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0" # should match version used by rustc
- name: Generate coverage report
- name: Download previous summary
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happens if the artifact doesn't exist yet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This retrieves the last successful run with this workflow file, which must exist (unless we change the name of the workflow file or the artifact). (I did have to bootstrap it though: https://github.com/CQCL-DEV/hugr/actions/runs/5723914732 .)

@cqc-alec cqc-alec enabled auto-merge August 1, 2023 13:24
@cqc-alec cqc-alec added this pull request to the merge queue Aug 1, 2023
Merged via the queue into main with commit b5178b1 Aug 1, 2023
5 checks passed
@cqc-alec cqc-alec deleted the covcompare branch August 1, 2023 13:26
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.

2 participants