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

Fatal log update #843

Merged
merged 4 commits into from
Jul 22, 2024
Merged

Fatal log update #843

merged 4 commits into from
Jul 22, 2024

Conversation

bryteise
Copy link
Member

No description provided.

Signed-off-by: William Douglas <[email protected]>
is_clean = False
return is_clean
if fatal_buf:
fatal_buf = f"{fatal_buf}\nCannot resolve dependency name: {match.group(1)}"
Copy link
Member

Choose a reason for hiding this comment

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

What about making fatal_buf a list instead so we can just append to it cleanly and join with LFs when we print?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh nice, thanks!

print_fatal calls need to be followed up by an exit consistently and
exit's need to use print_fatal before being called.

Signed-off-by: William Douglas <[email protected]>
Once we know autospec is going to exit unsuccessfully, send out a
hopefully useful error from print_fatal or scan the build.log one last
time for useful data and add that content to an output file.

This is intended to only be done in update flows and the file should
be cleaned up prior to autospec being run again. Note that without a
special environment variable active nothing will be written out to the
file.

Signed-off-by: William Douglas <[email protected]>
Add an options.conf flag for allowing builds to use mock's
--short-circuit for reducing rebuild time.

This change moves the feature from default enabling with no way to
turn off to default disable with a configure to turn on.

Signed-off-by: William Douglas <[email protected]>
@bryteise bryteise merged commit b5caddc into master Jul 22, 2024
4 checks passed
@bryteise bryteise deleted the fatal-log-update branch July 22, 2024 23:46
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