Commit b04809b
authored
ci: replace use of cargo cross for centos7 tests (#1675)
# What does this PR do?
The Centos7 tests we run uses [cargo cross](https://github.com/cross-rs/cross). However, we don't actually do any cross-compilation. The host is `x86_64` and the build target is `x86_64-unknown-linux-gnu`, the same architecture. What this test is doing is running tests for the `x86_64-unknown-linux-gnu` build in a CentOS7 environment with the older 2.17 glibc. Cross makes it easier to leverage the centOS7 docker container to run tests, but isn't really necessary. Using cargo cross means we can can't use nextest as the test runner. Without nextest we don't get process isolation for tests and we can't generate a junit.xml file to upload to CI Viz / test optimization. We can just handle spinning up the docker container ourselves.
# Motivation
What inspired you to submit this pull request?
# Additional Notes
The nextest binary needs to be the musl variant since the regular version requires glibc 2.25+, which isn't available in CentOS7
As a future enhancement we should look into not building the docker image on every run.
# How to test the change?
Observe the CI runs
Co-authored-by: edmund.kump <edmund.kump@datadoghq.com>1 parent 9d2d0bb commit b04809b
2 files changed
+63
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
330 | 385 | | |
331 | 386 | | |
332 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments