Skip to content

Surface recorded scheduling errors when assertNoTaskSchedule fails on null task names - #19389

Merged
Jackie-Jiang merged 1 commit into
apache:masterfrom
Jackie-Jiang:surface-scheduling-errors-in-assert
Aug 28, 2026
Merged

Surface recorded scheduling errors when assertNoTaskSchedule fails on null task names#19389
Jackie-Jiang merged 1 commit into
apache:masterfrom
Jackie-Jiang:surface-scheduling-errors-in-assert

Conversation

@Jackie-Jiang

Copy link
Copy Markdown
Contributor

Summary

MinionTaskTestUtils.assertNoTaskSchedule asserts assertNotNull(info.getScheduledTaskNames()) first, but null task names are the "no task scheduled due to scheduling errors" convention — and the actual cause is recorded in the info's generationErrors / schedulingErrors, which the bare null assertion discards. A CI failure then reads only expected object to not be null, and since several scheduling-failure branches record the error exclusively in the response (no WARN/ERROR log), the cause is unrecoverable from the run.

This change folds both error lists into the assertion message, so a failure self-identifies:

Scheduling failed with generation errors: [Failed to register batch for plan ...], scheduling errors: []

Test-utility-only change; assertion semantics are unchanged.

@Jackie-Jiang Jackie-Jiang added the testing Related to tests or test infrastructure label Aug 28, 2026
@codecov-commenter

codecov-commenter commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.57%. Comparing base (1918041) to head (33d4384).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #19389      +/-   ##
============================================
- Coverage     67.59%   67.57%   -0.02%     
  Complexity     1430     1430              
============================================
  Files          3486     3486              
  Lines        224131   224131              
  Branches      35376    35376              
============================================
- Hits         151497   151465      -32     
- Misses        60608    60645      +37     
+ Partials      12026    12021       -5     
Flag Coverage Δ
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-25 67.57% <ø> (-0.02%) ⬇️
lane-a 100.00% <ø> (ø)
lane-b 0.00% <ø> (ø)
temurin 67.57% <ø> (-0.02%) ⬇️
unittests 67.57% <ø> (-0.02%) ⬇️
unittests1 57.67% <ø> (-0.02%) ⬇️
unittests2 39.32% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Jackie-Jiang
Jackie-Jiang merged commit f799d90 into apache:master Aug 28, 2026
13 of 14 checks passed
@Jackie-Jiang
Jackie-Jiang deleted the surface-scheduling-errors-in-assert branch August 28, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to tests or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants