Commit 7021be0
committed
ci: add runtime-examples job for the smol and async-std examples
Bring back the e2e smoke test for the alternative runtime examples
that test_suite.sh used to run. Putting it in its own job, with a
service-container broker, instead of re-entangling it with the
integration suite:
- the integration test job uses testcontainers and a random host
port, so it can't host examples that hardcode localhost:9092;
- the examples are runtime-correctness checks for smol and async-std,
not broker-compatibility checks, so a single pinned Kafka version is
enough and matrixing across 3.7-4.0 would be wasted CI time.
The service container is apache/kafka:4.0.2 in KRaft mode with the
same single-broker overrides we set in tests/utils/containers.rs
(transaction-state-log RF/ISR = 1), exposed on localhost:9092 with a
kafka-topics.sh-based healthcheck so the runner waits for the broker
before launching cargo. The examples produce / consume one message
each and exit non-zero on failure.
Verified locally that both examples compile with
`--no-default-features --features cmake-build`. The check job's
cargo build --all-targets continues to catch pure compile breakage;
this job catches anything that only manifests at runtime.1 parent 0866fbc commit 7021be0
1 file changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
0 commit comments