AlmaLinux / AlmaLinux/build-system
Redirect errors during parsing spec files into logs
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 32
- Fork
- 11
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Sometimes we can fall into parsing spec files silently to users, and detailed info about parsing spec files can be found in the service logs.
For example:
mock_build_srpm.log
```
RPM build errors:
error: Bad file: /builddir/build/SOURCES/negativo-nvidia.repo: No such file or directory
error: Bad file: /builddir/build/SOURCES/almalinux-nvidia.repo: No such file or directory
Bad file: /builddir/build/SOURCES/negativo-nvidia.repo: No such file or directory
Bad file: /builddir/build/SOURCES/almalinux-nvidia.repo: No such file or directory
Child return code was: 1
```
logs from journal:
```
May 26 12:42:29 builder01 python3[3780286]: error: source 0 defined multiple times
May 26 12:42:29 builder01 python3[3780286]: error: source 0 defined multiple times
```
Probably, we can somehow redirect errors via rpm binding or maybe using `contextlib.redirect_stderr` or something else
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.