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

Do not crash if no _log file found #15852

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ncounter
Copy link
Contributor

@ncounter ncounter commented Mar 21, 2024

Fix #15768

Backend::Api::BuildResults::Binaries.file(project, repository, architecture, package, '_log') crashes in case of _log file is missing. This PR handle the exception and returns empty content so the default message is rendered.

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Mar 21, 2024
@ncounter ncounter force-pushed the prevent-rpmlint_log-on-disabled-repos branch 4 times, most recently from 07c55ec to 5e707ee Compare March 21, 2024 15:25
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 86.08%. Comparing base (6894d36) to head (f088a8f).
Report is 694 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15852      +/-   ##
==========================================
- Coverage   86.09%   86.08%   -0.01%     
==========================================
  Files         794      794              
  Lines       26028    26030       +2     
==========================================
  Hits        22408    22408              
- Misses       3620     3622       +2     

@ncounter ncounter force-pushed the prevent-rpmlint_log-on-disabled-repos branch from 5e707ee to 299b722 Compare March 21, 2024 16:03
@ncounter ncounter force-pushed the prevent-rpmlint_log-on-disabled-repos branch from 93bf45f to 63fcfdc Compare March 21, 2024 16:21
@ncounter ncounter force-pushed the prevent-rpmlint_log-on-disabled-repos branch from 63fcfdc to f088a8f Compare March 21, 2024 16:25
@ncounter ncounter marked this pull request as draft March 21, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OBS tries to load rpmlint_log from disabled repo
2 participants