Commit c67cb69
committed
test(e2e): address PR review — clippy gate, real assertions, CI hardening
Resolves the review findings on PR #69:
Blocking:
- Wire clippy for the e2e harness + step files: the `test = false` e2e target is
skipped by `clippy --all-targets`, leaving ~1.6k lines unlinted. Add a CI step
`cargo clippy -p e2e-cucumber --test e2e -- -D warnings`, and fix the 9 lints it
surfaced (map/unwrap_or_else→let-else, collapsible-if, Duration::from_mins,
operator-precedence, doc-paragraph, items-after-statements).
- Two vacuous scenarios no longer pass while testing nothing:
chat-privacy-notice-accurate now fails (TUI-only, unverifiable black-box) and is
tracked xfail (EAI-7222); serve-vllm-default-on-instinct asserts rc == 0.
Should-fix:
- Unify the report.json pass predicate: the CI gate (scenario_results_by_id) and
the grid (id_pass_map/tally) disagreed on "skipped" status; both now route
through scenario_passed (all-steps-passed), so the same artifact can't fail the
job yet render green.
- Enforce serial GPU serves: cap cucumber concurrency to 1 when a GPU is present
(shared port 11435 / one card); mock keeps default parallelism.
- Mock e2e job runs at job level (not skipped on non-heavy PRs, which stalled the
merge queue for a required check); heavy/build-and-test gating moved to a step.
- Remove the unanchored `pkill -f 'vulkan/llama-server'` (killed manual serves on
the shared runner); the anchored /tmp/rocm-e2e line already covers it.
- scenario_status treats a failed before/after hook as failed (was scored passed).
- Default-engine serve uses a model-aware readiness wait + asserts the reply model
id, so it can't pass against a leaked prior serve on the shared port.
- Update the stale README (abandoned tag model / 3-tier CI → @requires-* +
expectations.toml + one-job-per-platform) and fix the expectations.toml path ref.
Nits: bar_widths skip remainder, e2e-report crate doc (serde_json), duplicate-@id
assertion, stale 15-min comment.
Signed-off-by: fredespi <fredrik.espinoza@gmail.com>1 parent 4f39d2b commit c67cb69
9 files changed
Lines changed: 250 additions & 66 deletions
File tree
- .github/workflows
- crates/e2e-report/src
- tests/e2e-cucumber
- tests
- e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
361 | 369 | | |
362 | 370 | | |
363 | 371 | | |
| |||
585 | 593 | | |
586 | 594 | | |
587 | 595 | | |
588 | | - | |
589 | | - | |
590 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
591 | 602 | | |
592 | 603 | | |
593 | 604 | | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
| 605 | + | |
| 606 | + | |
601 | 607 | | |
602 | 608 | | |
603 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
604 | 626 | | |
| 627 | + | |
605 | 628 | | |
606 | 629 | | |
607 | 630 | | |
| 631 | + | |
608 | 632 | | |
609 | 633 | | |
610 | 634 | | |
611 | 635 | | |
612 | 636 | | |
| 637 | + | |
613 | 638 | | |
614 | 639 | | |
615 | 640 | | |
| 641 | + | |
616 | 642 | | |
617 | 643 | | |
618 | 644 | | |
619 | | - | |
| 645 | + | |
620 | 646 | | |
621 | 647 | | |
622 | 648 | | |
| |||
647 | 673 | | |
648 | 674 | | |
649 | 675 | | |
650 | | - | |
| 676 | + | |
651 | 677 | | |
652 | 678 | | |
653 | | - | |
| 679 | + | |
| 680 | + | |
654 | 681 | | |
655 | 682 | | |
656 | 683 | | |
| |||
665 | 692 | | |
666 | 693 | | |
667 | 694 | | |
668 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
669 | 700 | | |
670 | 701 | | |
671 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
| |||
102 | 117 | | |
103 | 118 | | |
104 | 119 | | |
105 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
106 | 124 | | |
107 | 125 | | |
108 | 126 | | |
| |||
130 | 148 | | |
131 | 149 | | |
132 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
133 | 159 | | |
134 | 160 | | |
135 | 161 | | |
| |||
145 | 171 | | |
146 | 172 | | |
147 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
148 | 186 | | |
149 | 187 | | |
150 | 188 | | |
| |||
247 | 285 | | |
248 | 286 | | |
249 | 287 | | |
250 | | - | |
| 288 | + | |
251 | 289 | | |
252 | 290 | | |
253 | 291 | | |
| |||
699 | 737 | | |
700 | 738 | | |
701 | 739 | | |
702 | | - | |
| 740 | + | |
703 | 741 | | |
704 | 742 | | |
705 | 743 | | |
| |||
1801 | 1839 | | |
1802 | 1840 | | |
1803 | 1841 | | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
1804 | 1871 | | |
1805 | 1872 | | |
1806 | 1873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| |||
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | | - | |
80 | | - | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
91 | 108 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
95 | 117 | | |
96 | 118 | | |
97 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
0 commit comments