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

When RHEL publish fails, log reason (test_results) #845

Merged
merged 6 commits into from
Jan 13, 2025

Conversation

JackPGreen
Copy link
Collaborator

While investigating an action failure of an RHEL publish failure, the logs indicated that the image had never published, but not why.

The publish response includes a link to an test_results result which can provide more information.

Updated the script to log these results in the case of failure.

I've gone backwards and forwards on the implementation - ideally the publish request should be polled rather than the the presence of an image, but would require significant refactoring of the script which is difficult to test due to its destructive nature.
In fact, in isolation this change is pointless - we build from tags so the usage of this change will only gradually increase. But it helps to document how we get investigate subsequent failures. Ideally once next investigated, the root cause can be identified and resolved.

@JackPGreen JackPGreen self-assigned this Dec 24, 2024
@JackPGreen JackPGreen requested a review from a team as a code owner December 24, 2024 14:13
.github/scripts/publish-rhel.sh Show resolved Hide resolved
.github/scripts/publish-rhel.sh Show resolved Hide resolved
@JackPGreen JackPGreen requested a review from nishaatr January 6, 2025 12:25
@JackPGreen JackPGreen enabled auto-merge (squash) January 6, 2025 15:10
@JackPGreen
Copy link
Collaborator Author

@ldziedziul are you able to review, please?

@JackPGreen JackPGreen merged commit 32ff463 into master Jan 13, 2025
14 checks passed
@JackPGreen JackPGreen deleted the better-rhel-publish-failure-logging branch January 13, 2025 09:08
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