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

FIX (Extension) @W-17311922@ Fix pager duty alert subject #151

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

jag-j
Copy link
Collaborator

@jag-j jag-j commented Dec 5, 2024

No description provided.

RUN_LINK: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
if [[ ${{ env.IS_CRITICAL }} == true ]]; then
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The issue seems to be the way we are assigning IS_CRITICAL. There are two ways to fix this: either assign it correctly or altogether remove this. I prefer removing this because I think the reason this was added was for testing. But this isn't greatly helpful since the if condition in line 36 will anyways needs to be altered to test the script. Let me know if you think otherwise.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed... but should we remove the || cancelled() from the if statement then on line 36? What does that do?

Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC, there are technically ways that a job can end up in cancelled() due to something that would more accurately be described as a failure. But I can't remember what they are off the top of my head.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmm, let's err in the side of caution and leave cancelled() as is.

@jag-j jag-j changed the title FIX @W-17311922@ Fix pager duty alert subject FIX (Extension) @W-17311922@ Fix pager duty alert subject Dec 5, 2024
@jag-j jag-j merged commit 550e6d5 into dev Dec 5, 2024
12 of 13 checks passed
@jag-j jag-j deleted the jj/W-17158924 branch December 5, 2024 21:10
@jag-j jag-j restored the jj/W-17158924 branch December 5, 2024 21:28
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