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(jobs): force ‹__str__› when logging jobs #2726

Merged

Conversation

mfocko
Copy link
Member

@mfocko mfocko commented Feb 19, 2025

Apparently, even if there is a ‹str› implementation, logging still uses ‹repr› which prints everything in a sort-of JSON format.

Therefore map each of the jobs to their respective string representation during the logging to force the usage of the ‹str› instead of the ‹repr›.

Related to packit/packit#2306

Apparently, even if there is a ‹__str__› implementation, logging still
uses ‹__repr__› which prints everything in a sort-of JSON format.

Therefore map each of the jobs to their respective string representation
during the logging to force the usage of the ‹__str__› instead of the
‹__repr__›.

Related to packit/packit#2306

Signed-off-by: Matej Focko <[email protected]>
@mfocko mfocko added the mergeit When set, zuul wil gate and merge the PR. label Feb 19, 2025
@mfocko mfocko self-assigned this Feb 19, 2025
@mfocko mfocko requested a review from a team as a code owner February 19, 2025 10:15
Copy link
Contributor

Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/365410759d7e4a1a848dd6f38b65e185

✔️ pre-commit SUCCESS in 1m 56s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit cc1dba0 into packit:main Feb 19, 2025
4 checks passed
@mfocko mfocko deleted the fix/logging-matching-jobs branch February 19, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
Status: done
Development

Successfully merging this pull request may close these issues.

2 participants