Commit b32d66f
committed
Fix CI integration test failures
Two breakages in the integration test steps:
1. `pip install -U pymodbus` pulls pymodbus 3.x, which removed
`pymodbus.server.sync` and `ModbusBinaryFramer`. server.py crashes
on import, leaving the modbus client step to time out against a
port nothing is listening on. Pin to pymodbus<3 so the existing
server.py still imports, and pin Python to 3.11 since pymodbus
2.5.3 has not been validated against newer interpreters.
2. Servers are backgrounded with `&` and the next step runs the
client immediately, racing the listen socket. Add explicit
wait-for-port steps using bash's /dev/tcp before each client
runs, and capture server output to /tmp logs so a failure surfaces
diagnostics instead of just timing out.
Also `nohup` the backgrounded servers and redirect their output so
they survive the step boundary cleanly without printing into the
runner log mid-step.1 parent ef62758 commit b32d66f
1 file changed
Lines changed: 31 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
34 | 47 | | |
35 | 48 | | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
39 | 52 | | |
40 | | - | |
41 | | - | |
| 53 | + | |
| 54 | + | |
42 | 55 | | |
43 | 56 | | |
44 | | - | |
45 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
46 | 72 | | |
47 | 73 | | |
48 | 74 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| |||
0 commit comments