Repository navigation
smoke-test: nightly stores its durations cache though tested-tree is skipped (Part of #5133) - #6629
Merged
Merged
Conversation
…skipped (Part of #5133) full-suite-durations used a bare success(), false under the skipped push-only tested-tree ancestor, so the green nightly 40179743618 stored no cache. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5133 (slice 8).
The slice's precondition (a calibrated cache written by the nightly) cannot be met: nightly 40179743618 completed green but
store the suite's durationswas skipped, so the only durations cache is stilltest-durations-38247246921(2026-10-12). Cause: the job'sifwasgithub.event_name == 'schedule' && success(); job-levelsuccess()is false when any ancestor in theneedschain was skipped, and the push-onlytested-treeis skipped on schedule. Fix:!cancelled() && github.event_name == 'schedule' && needs.full-suite-part.result == 'success'.Class / Sibling gaps
Class: a job-level
ifthat uses the implicit or baresuccess()while a skipped-by-event job (push-onlytested-tree, PR-only jobs) sits in itsneedsancestry, so the job is skipped on the event it was written for. Members swept across.github/workflows/*.yml(grep of everysuccess()):smoke-test.ymlfull-suite-durations(jobif)test_smoke_test_concurrency.pyevaluates it for schedule / push / PR / failed partssmoke-test.ymltwo stepsif: github.event_name == 'schedule' && success()(lines ~383, ~389)success()only looks at earlier steps of the same job, not the needs chainsuccess().github/workflowsreturned only the three lines aboveSibling gaps: none: every member handled.
Rest of the change
docs/ci.md: slice 8 paragraph. The part balance is still unmeasured;calibrate_test_durations.pyis unchanged (retune only if max/min > 1.2).test-durations-<run id>and 3+ main push runs restore it, runpython tests/tools/ci_part_balance.py --latest 8, retune only if max/min > 1.2, record indocs/ci.md.Checklist: partial -- balance not measurable until the next nightly stores a cache and 3+ main push runs restore it, then
ci_part_balance.py --latest 8.Lessons for agents
if: ... && success()in a workflow is false when ANY ancestor inneedswas skipped (not just direct needs): use!cancelled() && needs.<job>.result == 'success'.🤖 Generated with Claude Code