Commit 639941f
committed
fix(ci): repair Quick Checks + Check Types after PROD-5 land
The post-cleanup CI build (b441998) on PR elastic#269019 surfaced four real
breakages introduced by recent commits + the cleanup itself:
1. **TS typo** in validate_rule_tool.ts:515 — concurrencyResult exposes
`inflightScenarioFingerprint`, not `inflightFingerprint`. The route
file already uses the right name; only the tool path had drifted.
2. **TS typing** in run_command_tools.test.ts — the parameterized
`it.each(tools)` table mixes per-family schemas with different
`command` literal unions; destructuring `parameters` failed because
one entry didn't have it, and `getConfirmation`'s `toolParams`
intersected to `never` across the four families. Made `parameters`
a uniform widened type and cast `getConfirmation` through
`unknown` to a single shape — runtime contract unchanged, all
62 tests still pass.
3. **TS-projects linter** rejected validate_rule.spec.ts as a stranded
file (excluded from the security_solution tsconfigs but not part of
any other TS project). The canonical fix — matching every other
eval suite in the repo (kbn-evals-suite-pci-compliance, etc.) — is
to extract the spec + its dataset into a sibling devOnly
`functional-tests` package: `@kbn/evals-suite-detection-emulation`
under `x-pack/solutions/security/packages/`. This keeps the
production plugin clean of the devOnly `@kbn/evals` reference and
gives the spec a real owning tsconfig. CODEOWNERS updated to
point at the new path.
4. **Moon project regen** — running `node scripts/regenerate_moon_projects.js
--update` registered the new package in `package.json`,
`tsconfig.base.json`, and `yarn.lock`. Auto-generated; included.
Verification (local):
- jest: 88/88 pass across run_command_tools.test.ts (62) +
validate_rule_tool.test.ts (6) + concurrency_gate.test.ts (10) +
validate_rule/route.test.ts (10).
- eslint --fix: clean on all touched files.
- type_check: clean on the new evals suite package (~70s) AND on the
full security_solution plugin (~6m).
No behavioural changes; this is purely a CI-repair commit.1 parent 14560c1 commit 639941f
15 files changed
Lines changed: 107 additions & 30 deletions
File tree
- .github
- x-pack/solutions/security
- packages/kbn-evals-suite-detection-emulation
- evals
- plugins/security_solution
- server/agent_builder/skills/detection_emulation
- evals
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3198 | 3198 | | |
3199 | 3199 | | |
3200 | 3200 | | |
3201 | | - | |
| 3201 | + | |
3202 | 3202 | | |
3203 | 3203 | | |
3204 | 3204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
| 1743 | + | |
1743 | 1744 | | |
1744 | 1745 | | |
1745 | 1746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1198 | 1198 | | |
1199 | 1199 | | |
1200 | 1200 | | |
| 1201 | + | |
| 1202 | + | |
1201 | 1203 | | |
1202 | 1204 | | |
1203 | 1205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments