1010 description : " Fail jobs on assertion mismatch"
1111 type : boolean
1212 default : false
13+ run_baseline :
14+ description : " Run scenario: Baseline — zero calls"
15+ type : boolean
16+ default : true
17+ run_core_5 :
18+ description : " Run scenario: 5 core GET calls"
19+ type : boolean
20+ default : true
21+ run_core_10 :
22+ description : " Run scenario: 10 core GET calls"
23+ type : boolean
24+ default : true
25+ run_search_2 :
26+ description : " Run scenario: 2 search calls"
27+ type : boolean
28+ default : true
29+ run_code_search_2 :
30+ description : " Run scenario: 2 code_search calls"
31+ type : boolean
32+ default : true
33+ run_graphql_2 :
34+ description : " Run scenario: 2 GraphQL calls"
35+ type : boolean
36+ default : true
37+ run_mixed_small :
38+ description : " Run scenario: Mixed — 2 core + 2 search + 2 graphql"
39+ type : boolean
40+ default : true
41+ run_core_burst :
42+ description : " Run scenario: 5 core GET calls — burst (no sleep)"
43+ type : boolean
44+ default : true
45+ run_search_window_cross :
46+ description : " Run scenario: 2 search calls — 65s apart (window crossing)"
47+ type : boolean
48+ default : true
49+ run_idle_check :
50+ description : " Run scenario: Idle check — no calls, 120s observation"
51+ type : boolean
52+ default : true
53+ run_core_then_search :
54+ description : " Run scenario: 3 core + 2 search (sequential)"
55+ type : boolean
56+ default : true
57+ run_graphql_5 :
58+ description : " Run scenario: 5 GraphQL calls"
59+ type : boolean
60+ default : true
1361
1462concurrency :
1563 group : self-test
@@ -18,6 +66,7 @@ concurrency:
1866jobs :
1967 baseline :
2068 runs-on : ubuntu-latest
69+ if : ${{ inputs.run_baseline }}
2170 steps :
2271 - uses : actions/checkout@v4
2372
53102 core-5 :
54103 runs-on : ubuntu-latest
55104 needs : [baseline-diag, baseline]
56- if : ${{ always() }}
105+ if : ${{ always() && inputs.run_core_5 }}
57106 steps :
58107 - uses : actions/checkout@v4
59108
@@ -180,7 +229,7 @@ jobs:
180229 core-10 :
181230 runs-on : ubuntu-latest
182231 needs : [core-5-diag, core-5]
183- if : ${{ always() }}
232+ if : ${{ always() && inputs.run_core_10 }}
184233 steps :
185234 - uses : actions/checkout@v4
186235
@@ -307,7 +356,7 @@ jobs:
307356 search-2 :
308357 runs-on : ubuntu-latest
309358 needs : [core-10-diag, core-10]
310- if : ${{ always() }}
359+ if : ${{ always() && inputs.run_search_2 }}
311360 steps :
312361 - uses : actions/checkout@v4
313362
@@ -434,7 +483,7 @@ jobs:
434483 code-search-2 :
435484 runs-on : ubuntu-latest
436485 needs : [search-2-diag, search-2]
437- if : ${{ always() }}
486+ if : ${{ always() && inputs.run_code_search_2 }}
438487 steps :
439488 - uses : actions/checkout@v4
440489
@@ -501,7 +550,7 @@ jobs:
501550 state = json.load(f)
502551 buckets = state.get('buckets', {})
503552 expectations = {
504- 'code_search': {'delta': 2, 'max_windows ': 0 }
553+ 'code_search': {'delta': 2, 'min_windows ': 1 }
505554 }
506555 results = [] # list of (bucket, check_name, passed, detail)
507556 for bucket_name, expect in expectations.items():
@@ -561,7 +610,7 @@ jobs:
561610 graphql-2 :
562611 runs-on : ubuntu-latest
563612 needs : [code-search-2-diag, code-search-2]
564- if : ${{ always() }}
613+ if : ${{ always() && inputs.run_graphql_2 }}
565614 steps :
566615 - uses : actions/checkout@v4
567616
@@ -690,7 +739,7 @@ jobs:
690739 mixed-small :
691740 runs-on : ubuntu-latest
692741 needs : [graphql-2-diag, graphql-2]
693- if : ${{ always() }}
742+ if : ${{ always() && inputs.run_mixed_small }}
694743 steps :
695744 - uses : actions/checkout@v4
696745
@@ -843,7 +892,7 @@ jobs:
843892 core-burst :
844893 runs-on : ubuntu-latest
845894 needs : [mixed-small-diag, mixed-small]
846- if : ${{ always() }}
895+ if : ${{ always() && inputs.run_core_burst }}
847896 steps :
848897 - uses : actions/checkout@v4
849898
@@ -969,7 +1018,7 @@ jobs:
9691018 search-window-cross :
9701019 runs-on : ubuntu-latest
9711020 needs : [core-burst-diag, core-burst]
972- if : ${{ always() }}
1021+ if : ${{ always() && inputs.run_search_window_cross }}
9731022 steps :
9741023 - uses : actions/checkout@v4
9751024
@@ -1096,7 +1145,7 @@ jobs:
10961145 idle-check :
10971146 runs-on : ubuntu-latest
10981147 needs : [search-window-cross-diag, search-window-cross]
1099- if : ${{ always() }}
1148+ if : ${{ always() && inputs.run_idle_check }}
11001149 steps :
11011150 - uses : actions/checkout@v4
11021151
@@ -1132,7 +1181,7 @@ jobs:
11321181 core-then-search :
11331182 runs-on : ubuntu-latest
11341183 needs : [idle-check-diag, idle-check]
1135- if : ${{ always() }}
1184+ if : ${{ always() && inputs.run_core_then_search }}
11361185 steps :
11371186 - uses : actions/checkout@v4
11381187
@@ -1271,7 +1320,7 @@ jobs:
12711320 graphql-5 :
12721321 runs-on : ubuntu-latest
12731322 needs : [core-then-search-diag, core-then-search]
1274- if : ${{ always() }}
1323+ if : ${{ always() && inputs.run_graphql_5 }}
12751324 steps :
12761325 - uses : actions/checkout@v4
12771326
0 commit comments