-
Notifications
You must be signed in to change notification settings - Fork 536
ci: add runtime-aware Riot sharding #19689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mr-lee
wants to merge
6
commits into
main
Choose a base branch
from
dd/ci-runtime-aware-riot-sharding-20260813-1915
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dbfae8b
ci: add runtime-aware Riot sharding
datadog-datadog-prod-us1[bot] 464429c
ci: fix allocation pipeline execution
datadog-datadog-prod-us1[bot] dc977ae
ci: fail closed on incomplete shard evidence
datadog-datadog-prod-us1-2[bot] 3bd9551
ci: seed balanced shadow validation
datadog-datadog-prod-us1[bot] aa62363
ci: calibrate Riot sharding from live jobs
datadog-official[bot] 40503d7
ci: fix runtime shard JUnit metadata
datadog-datadog-prod-us1[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "allocation": { | ||
| "active_strategy": "legacy", | ||
| "maximum_parallelism_per_suite": 25, | ||
| "target_jobs": 200, | ||
| "target_shard_seconds": 600 | ||
| }, | ||
| "model": { | ||
| "estimate_quantile": 0.9, | ||
| "half_life_days": 30, | ||
| "history_window_days": 90, | ||
| "holdout_days": 14, | ||
| "minimum_samples": 5, | ||
| "sparse_safety_factor": 1.25 | ||
| }, | ||
| "ratchets": { | ||
| "historical_replay": { | ||
| "maximum_runner_seconds_increase_ratio": 0.05, | ||
| "minimum_median_improvement_ratio": 0.05, | ||
| "minimum_runs": 30 | ||
| }, | ||
| "live_shadow": { | ||
| "maximum_queue_p90_increase_ratio": 0.05, | ||
| "maximum_runner_seconds_increase_ratio": 0.05, | ||
| "minimum_median_improvement_ratio": 0.15, | ||
| "minimum_runs": 15 | ||
| }, | ||
| "pr_shape_replay": { | ||
| "maximum_runner_seconds_increase_ratio": 0.05, | ||
| "minimum_median_improvement_ratio": 0.05, | ||
| "minimum_shapes": 30 | ||
| } | ||
| }, | ||
| "schema_version": 1 | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "dataset": { | ||
| "fingerprint_sha256": null, | ||
| "job_fingerprint_sha256": null, | ||
| "history_window_days": 90, | ||
| "holdout_days": 14, | ||
| "holdout_observations": 0, | ||
| "job_observations": 0, | ||
| "censored_observations": 0, | ||
| "source": "uninitialized", | ||
| "training_end": null, | ||
| "training_observations": 0, | ||
| "status_counts": {}, | ||
| "window_end": null | ||
| }, | ||
| "estimates": {}, | ||
| "fallbacks": { | ||
| "global_seconds": 60.0, | ||
| "suite_seconds": {} | ||
| }, | ||
| "generated_at": null, | ||
| "parameters": { | ||
| "estimate_quantile": 0.9, | ||
| "half_life_days": 30, | ||
| "history_window_days": 90, | ||
| "holdout_days": 14, | ||
| "minimum_samples": 5, | ||
| "sparse_safety_factor": 1.25 | ||
| }, | ||
| "overheads": { | ||
| "global_seconds": 0.0, | ||
| "queue_p90_seconds": 0.0, | ||
| "sample_count": 0, | ||
| "suite_seconds": {} | ||
| }, | ||
| "planner_version": "weighted-lpt-v1", | ||
| "schema_version": 1 | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| """Deterministic CI workload modeling and shard allocation.""" | ||
|
|
||
| from .planner import AllocationError | ||
| from .planner import build_suite_plan | ||
| from .planner import legacy_round_robin | ||
| from .planner import weighted_lpt | ||
| from .suites import SuiteVenvInfo | ||
| from .suites import calculate_parallelism_from_venvs | ||
| from .suites import collect_all_suite_venv_info | ||
| from .suites import compute_parallelism | ||
| from .suites import compute_runtime_parallelism | ||
| from .suites import scale_suites | ||
|
|
||
|
|
||
| __all__ = [ | ||
| "AllocationError", | ||
| "SuiteVenvInfo", | ||
| "build_suite_plan", | ||
| "calculate_parallelism_from_venvs", | ||
| "collect_all_suite_venv_info", | ||
| "compute_parallelism", | ||
| "compute_runtime_parallelism", | ||
| "legacy_round_robin", | ||
| "scale_suites", | ||
| "weighted_lpt", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit changes this script from mode
100755to100644, but.gitlab/tests.ymlstill executes it directly, andget-riot-pip-cache-key.shdoes the same while generating the pipeline. On Unix runners both paths now fail withPermission denied, preventing test configuration generation and Riot jobs from running; retain the executable bit.Useful? React with 👍 / 👎.