Calculate validation timeout from matrix plan - #171
Merged
Conversation
Replace the fixed five-minute connectivity deadline with a budget derived from selected checks and ordered pod-pair batches. Preserve a positive --connectivity-timeout as an explicit hard override and log the selected total before execution. Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
Greptile SummaryThe PR replaces the fixed connectivity timeout with separate bounded setup and matrix-derived execution deadlines, while retaining positive user-supplied values as hard end-to-end deadlines.
Confidence Score: 5/5The PR appears safe to merge with no actionable correctness or security issues identified. The calculated budget mirrors the serial connectivity execution graph, context transitions remain valid in both automatic and explicit modes, and duplicated documentation surfaces consistently describe the new default. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Start connectivity validation] --> B{Timeout positive?}
B -->|Yes| C[Create explicit end-to-end deadline]
B -->|No| D[Create bounded setup context]
C --> E[Apply workload and discover pods]
D --> E
E --> F[Generate matrix plan]
F --> G{Automatic mode?}
G -->|Yes| H[Calculate execution budget from planned tests]
G -->|No| I[Reuse explicit deadline]
H --> J[Run route, RDMA, GPUDirect, and ICMP stages]
I --> J
J --> K[Best-effort cleanup with independent context]
Reviews (1): Last reviewed commit: "Calculate validation timeout from matrix..." | Re-trigger Greptile |
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.
Summary
--connectivity-timeoutas an explicit hard setup and execution deadlineFor the 3-node, 4-rail quick matrix that plans 144 checks, the calculated total budget is
2h10m24s.Testing
make buildmake testgo test -race -count=1 ./...golangci-lint v2.11.4 run ./...(0 issues)git diff --check