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

Open issue when ADMX/L builds fail #754

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Conversation

denisonbarbosa
Copy link
Member

@denisonbarbosa denisonbarbosa commented Aug 1, 2023

ADMX/L build failures are sometimes hard to spot and this isn't great. Opening an issue and syncing it to Jira will help us to notice those failures and to start handling them.

Example of issue opened by the action: #756. (It was opened before fixing the job order and without the Jira tag to avoid cluttering Jira with test issues)

UDENG-990

@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2023

Codecov Report

Merging #754 (c4e1de3) into main (e0cd683) will decrease coverage by 0.15%.
Report is 42 commits behind head on main.
The diff coverage is 93.25%.

@@            Coverage Diff             @@
##             main     #754      +/-   ##
==========================================
- Coverage   86.20%   86.05%   -0.15%     
==========================================
  Files          75       77       +2     
  Lines        8196     8543     +347     
==========================================
+ Hits         7065     7352     +287     
- Misses        814      868      +54     
- Partials      317      323       +6     
Files Changed Coverage Δ
cmd/adwatchd/commands/main_linux.go 35.00% <0.00%> (ø)
internal/i18n/i18n.go 2.27% <ø> (-95.46%) ⬇️
cmd/adsysd/daemon/scripts.go 75.00% <50.00%> (ø)
cmd/adwatchd/commands/version.go 60.00% <50.00%> (ø)
internal/adsysservice/policy.go 71.55% <50.00%> (-2.49%) ⬇️
cmd/adsysd/client/doc.go 67.96% <60.00%> (ø)
cmd/adsysd/client/policy.go 72.06% <82.22%> (+0.11%) ⬆️
internal/policies/certificate/certificate.go 95.71% <95.55%> (ø)
internal/policies/manager.go 90.49% <97.14%> (+1.51%) ⬆️
cmd/adsysd/client/client.go 80.64% <100.00%> (ø)
... and 12 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@denisonbarbosa denisonbarbosa force-pushed the issue-on-adm-fails branch 3 times, most recently from 3a39bdc to cd8c544 Compare August 1, 2023 14:08
@denisonbarbosa denisonbarbosa changed the title Issue on adm fails Open issue when ADMX/L builds fail Aug 1, 2023
@denisonbarbosa denisonbarbosa marked this pull request as ready for review August 1, 2023 14:28
@denisonbarbosa denisonbarbosa requested a review from a team as a code owner August 1, 2023 14:28
Copy link
Contributor

@GabrielNagy GabrielNagy left a comment

Choose a reason for hiding this comment

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

Nice work, everything looks good to me!

Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

I need some investigation before giving my definitive +1:

Would that spam bugs if the job is restarted and fail again? Is it possible to create an unique issue ? We can imagine checking if one is opened first with a particular label (I would say, let’s create a label for it) and then only open if none found?

@denisonbarbosa
Copy link
Member Author

denisonbarbosa commented Aug 2, 2023

I need some investigation before giving my definitive +1:

Would that spam bugs if the job is restarted and fail again? Is it possible to create an unique issue ? We can imagine checking if one is opened first with a particular label (I would say, let’s create a label for it) and then only open if none found?

@didrocks It won't, no. By default, the action already searches the opened (this can also be changed to look for all or for closed as well, but it doesn't make much sense in our context) issues for one with the exact same name before opening a new one.
There's another option update_existing that can be set to true which makes the action update the existing issue, but the action docs do not specify exactly what kind of update it's talking about. If it's plain overriding (which I think it's the more likely one to be), I'm not sure it's a good idea to use it. But if it appends the content of the new issue into the old one, that could be good.

Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

Maybe updating the bug description will be interesting? I can see the logs becoming deprecated and so, using a new fresh run URL could be more useful?

Whatever you decide, we can iterate, but I would give this a short.

ADMX/L build failures sometimes are hard to spot, so opening an issue
and syncing it to Jira will help us check for those failures.
This defines a custom template that will be used to create the issue
when the build fails.
@denisonbarbosa
Copy link
Member Author

Maybe updating the bug description will be interesting? I can see the logs becoming deprecated and so, using a new fresh run URL could be more useful?

Whatever you decide, we can iterate, but I would give this a short.

Updated the job to update the existing issue and to be explicit that it should only search for open issues (in case the default changes someday)

@denisonbarbosa denisonbarbosa merged commit 5399d1a into main Aug 2, 2023
14 checks passed
@denisonbarbosa denisonbarbosa deleted the issue-on-adm-fails branch August 2, 2023 12:50
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.

4 participants