Skip to content

Commit

Permalink
Merge pull request #179 from okurz/feature/no_aggregate_log
Browse files Browse the repository at this point in the history
Use better log message for 'missing aggregate results'
  • Loading branch information
mergify[bot] authored May 8, 2024
2 parents 13f1e14 + 975513f commit 12ceaa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openqabot/approver.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _approvable(self, inc: IncReq) -> bool:
log.info(e)

if any(i.withAggregate for i in i_jobs):
log.info("Aggregate missing for %s", _mi2str(inc))
log.info("No aggregate test results found for %s", _mi2str(inc))
return False

u_jobs = []
Expand Down
6 changes: 3 additions & 3 deletions tests/test_approve.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ def test_inc_passed_aggr_without_results(fake_qem, fake_two_passed_jobs, caplog)
assert len(caplog.records) >= 1, "we rely on log messages in tests"
messages = [x[-1] for x in caplog.record_tuples]
assert "Start approving incidents in IBS" in messages
assert "Aggregate missing for SUSE:Maintenance:1:100" in messages
assert "Aggregate missing for SUSE:Maintenance:2:200" in messages
assert "Aggregate missing for SUSE:Maintenance:3:300" in messages
assert "No aggregate test results found for SUSE:Maintenance:1:100" in messages
assert "No aggregate test results found for SUSE:Maintenance:2:200" in messages
assert "No aggregate test results found for SUSE:Maintenance:3:300" in messages
assert "Incidents to approve:" in messages
assert "* SUSE:Maintenance:4:400" in messages
assert "End of bot run" in messages
Expand Down

0 comments on commit 12ceaa1

Please sign in to comment.