Skip to content

[BlackboxBenchmarking] Adds return True for aggregate fuzzer stats cron#5274

Merged
ViniciustCosta merged 1 commit into
masterfrom
dylanj/stats-return
May 13, 2026
Merged

[BlackboxBenchmarking] Adds return True for aggregate fuzzer stats cron#5274
ViniciustCosta merged 1 commit into
masterfrom
dylanj/stats-return

Conversation

@dylanjew

@dylanjew dylanjew commented May 13, 2026

Copy link
Copy Markdown
Collaborator

The bots run_cron script expects the cron job's main() to return True, otherwise it assumes the script failed if it returns None (code). This was causing the job to retry multiple times in dev.

logs

@dylanjew dylanjew requested a review from a team as a code owner May 13, 2026 18:39
@dylanjew dylanjew requested a review from aakallam May 13, 2026 18:39
@dylanjew dylanjew changed the title Adds return True for aggregate fuzzer stats cron [BlackboxBenchmarking] Adds return True for aggregate fuzzer stats cron May 13, 2026
@dylanjew dylanjew requested a review from ViniciustCosta May 13, 2026 18:40
Comment on lines +75 to +76
result = aggregate_fuzzer_stats.main()
self.assertTrue(result)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: combine these lines so that an assertion failure is more descriptive.

Suggested change
result = aggregate_fuzzer_stats.main()
self.assertTrue(result)
self.assertTrue(aggregate_fuzzer_stats.main())

Same with the new self.assertTrue below.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, done!

The bots run_cron expects the cron job to return True, otherwise it
assumes the script failed if it returns None. This was causing the job
to retry multiple times in dev.
@dylanjew dylanjew force-pushed the dylanj/stats-return branch from af06f12 to eb47f3c Compare May 13, 2026 19:12
@ViniciustCosta ViniciustCosta merged commit 9e960a7 into master May 13, 2026
10 checks passed
@ViniciustCosta ViniciustCosta deleted the dylanj/stats-return branch May 13, 2026 21:04
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