Commit 47b84d8
committed
test(e2e): conftest helper + no-skip strategy for SDK entry / path_verification / exec_timeout
Moves the no-skip wiring from chore into #765 where the rest of the
test fixes already live.
- conftest.skip_or_fail_unless_sdk_build_required: helper that flips
pytest.skip into pytest.fail when BOXLITE_E2E_REQUIRE_SDK_BUILDS=1
is set. The e2e-cloud-test workflow sets it; local dev leaves it
unset and the skip path stays usable.
- conftest.collect_ignore (guarded on BOXLITE_E2E_PROFILE != default):
drops scripts/test/e2e/cases/test_path_verification.py from pytest
collection on cloud profiles. Both cases in that file are LOCAL
meta-tests (one asserts credentials.toml url=:3000, the other reads
the host's boxlite-runner systemd journal) and can't run against
the Tokyo ELB profile. collect_ignore drops them from collection
entirely — no SKIP markers in the report.
- test_c_entry / test_cli_entry / test_cli_detach_recovery /
test_go_entry / test_node_entry fixtures: every pytest.skip routed
through skip_or_fail_unless_sdk_build_required.
- test_path_verification.py: module-level pytest.mark.skipif removed
(replaced by the collect_ignore above so the file produces no
collection at all on cloud, instead of being collected-then-skipped).
- test_exec_timeout.py: the _skipif_cloud decorator on both cases is
gone; instead drain(ex) is moved behind a short asyncio.wait_for
and reordered after ex.wait() so the elapsed / exit-code assertions
don't depend on stream content. The REST runner's stream pumps
don't reliably observe stream closure when the workload terminates
via SIGKILL; the workaround lets the test actually run on cloud
(no SKIP entry) while preserving its semantic intent.
- e2e-cloud-test.yml: BOXLITE_E2E_REQUIRE_SDK_BUILDS=1 on the
Run E2E suite step — multi-job prereqs guarantee artifacts on
disk so a fixture-skip path firing here is now a regression signal.1 parent 1463e86 commit 47b84d8
4 files changed
Lines changed: 36 additions & 16 deletions
File tree
- .github/workflows
- scripts/test/e2e/cases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | | - | |
498 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
61 | 89 | | |
62 | 90 | | |
63 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
50 | 42 | | |
51 | 43 | | |
52 | 44 | | |
| |||
0 commit comments