Skip to content

Commit a3caeea

Browse files
committed
ci: power planning qualification across independent runner cells
Signed-off-by: aihop <4408344+hhyykk@users.noreply.github.com>
1 parent 2e799c0 commit a3caeea

4 files changed

Lines changed: 42 additions & 8 deletions

File tree

‎.github/pr7616-evaluation/configure.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55

66
root = pathlib.Path(__file__).resolve().parent
77
config = {
8-
"series": "isolated-ci",
8+
"series": "isolated-ci-powered",
9+
"warmups_per_arm_per_phase": 10,
910
"baseline": "0a9a3a3884490e7af2c2f27c2f2136ae738460db",
1011
"candidate_head": "230c4e43bbb99b4a9cbce68cba40869407bc2509",
1112
"baseline_source": os.environ["BASE_SOURCE"],
1213
"candidate_source": os.environ["HEAD_SOURCE"],
1314
"node_bin": str(pathlib.Path(shutil.which("node")).parent),
14-
"providers": ["file", "sqlite"],
15-
"history_counts": [0, 500],
16-
"modes": ["warm", "cold-daemon"],
17-
"aa_pairs": 24,
18-
"ab_pairs": 40,
15+
"providers": [os.environ["CASE_PROVIDER"]],
16+
"history_counts": [int(os.environ["CASE_HISTORY"])],
17+
"modes": [os.environ["CASE_MODE"]],
18+
"aa_pairs": 80,
19+
"ab_pairs": 320,
1920
"cpu_affinity": [min(os.sched_getaffinity(0))],
2021
"performance_decision": {
2122
"bootstrap_seed": 7616,

‎.github/pr7616-evaluation/evaluate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def benchmark():
207207
"stopped",
208208
"not_running",
209209
), stopped.stdout
210-
for warmup in range(3):
210+
for warmup in range(CONFIG.get("warmups_per_arm_per_phase", 3)):
211211
for arm in ["base", "head"]:
212212
run(manifest, arm, "warm")
213213
collected = {"base": [], "head": []}

‎.github/pr7616-evaluation/public_summary.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"history_counts",
1616
"modes",
1717
"aa_pairs",
18+
"warmups_per_arm_per_phase",
1819
"ab_pairs",
1920
"cpu_affinity",
2021
"performance_decision",

‎.github/workflows/pr7616-isolated-qualification.yml‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,42 @@ concurrency:
99
cancel-in-progress: false
1010
jobs:
1111
qualify:
12+
strategy:
13+
fail-fast: false
14+
max-parallel: 8
15+
matrix:
16+
include:
17+
- provider: file
18+
history: 0
19+
mode: warm
20+
- provider: file
21+
history: 0
22+
mode: cold-daemon
23+
- provider: file
24+
history: 500
25+
mode: warm
26+
- provider: file
27+
history: 500
28+
mode: cold-daemon
29+
- provider: sqlite
30+
history: 0
31+
mode: warm
32+
- provider: sqlite
33+
history: 0
34+
mode: cold-daemon
35+
- provider: sqlite
36+
history: 500
37+
mode: warm
38+
- provider: sqlite
39+
history: 500
40+
mode: cold-daemon
1241
runs-on: ubuntu-24.04
1342
timeout-minutes: 60
1443
env:
1544
LOOPX_USAGE_PING: "0"
45+
CASE_PROVIDER: ${{ matrix.provider }}
46+
CASE_HISTORY: ${{ matrix.history }}
47+
CASE_MODE: ${{ matrix.mode }}
1648
steps:
1749
- uses: actions/checkout@v7
1850
with:
@@ -64,7 +96,7 @@ jobs:
6496
if: always()
6597
uses: actions/upload-artifact@v7
6698
with:
67-
name: pr7616-planning-qualification
99+
name: pr7616-${{ matrix.provider }}-${{ matrix.history }}-${{ matrix.mode }}
68100
if-no-files-found: warn
69101
retention-days: 7
70102
path: |

0 commit comments

Comments
 (0)