2452513b65
- Pull requests that can change a robustness golden check every seed but the 17 slowest, in the same nextest run as the other tests instead of a second step after it (16-30 minutes on its own). The slow seeds (about four fifths of the goldens' time) still run in the merge queue, on main and nightly. A failed golden still prints how to re-record it, and junit.xml now holds the whole run. - The slowest tests start first (nextest priority), so a shard no longer ends with one of them running alone. - tspline::tests::hostile_tsplines_never_panic joins the heavy tests pull requests skip (up to 12 minutes on a GitHub runner; the same kind of check as hostile_params_never_panic). - The ci profile builds dependencies without line tables: the test archive pull requests' shards download goes from 3.4 GB to 2.2 GB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
3.6 KiB
TOML
71 lines
3.6 KiB
TOML
# cargo-nextest settings for CI (`cargo xtask test` does not use nextest).
|
|
# CI builds the tests once and runs them in shards: 2 for a pull request, 4 for main and the nightly
|
|
# (.github/workflows/ci.yml).
|
|
|
|
[profile.ci]
|
|
# Heavy tests (one to twelve minutes each on a CI runner) that pull requests skip. They run on
|
|
# every push to main and nightly (`--ignore-default-filter`), and in `cargo xtask test`. The
|
|
# boolean_props property tests run only nightly (ci.yml excludes them from pushes to main).
|
|
# Keep this list in sync with docs/book/src/dev/testing.md and CONTRIBUTING.md.
|
|
default-filter = """
|
|
not (
|
|
(package(solidcraft-engine) & (
|
|
test(=tests::hostile_params_never_panic)
|
|
| test(/^tests::robustness::/)
|
|
| test(/^tests::robustness_goldens::seed_/)
|
|
| test(=pattern_suppress_tests::enclosure_arc_extinction_keeps_a_real_sharp_inner_lip_after_resize_and_reopen)
|
|
| test(=pattern_suppress_tests::enclosure_datums_follow_wall_height_and_board_depth_with_material_proofs)
|
|
| test(=cmd::plastic::tests::enclosure_snap_fit_follows_resized_front_wall)
|
|
))
|
|
| (package(solidcraft-kernel) & test(=tests::boolean_identity_on_tangent_primitives))
|
|
| (package(solidcraft-kernel) & test(=tspline::tests::hostile_tsplines_never_panic))
|
|
| (package(solidcraft-kernel) & binary(boolean_props))
|
|
| (package(solidcraft-engine) & binary(atomic_commands))
|
|
| (package(solidcraft-ui-egui) & binary(scenarios) & test(=acceptance_sensor_enclosure))
|
|
)
|
|
"""
|
|
fail-fast = false
|
|
# Every test's time in the log, so the slow ones are easy to find.
|
|
status-level = "pass"
|
|
final-status-level = "slow"
|
|
failure-output = "immediate-final"
|
|
slow-timeout = { period = "60s" }
|
|
|
|
[profile.ci.junit]
|
|
path = "junit.xml"
|
|
|
|
# The action matrix sample runs its designs in parallel worker processes, one per CPU. Run with
|
|
# other tests beside it (the heavy ones on main), a pi-case hole that takes 8 s alone (#952 makes
|
|
# it a real hole) went past the matrix's 90 s action limit. It runs on its own.
|
|
[[profile.ci.overrides]]
|
|
filter = "binary(action_matrix) & test(=action_matrix_sample)"
|
|
threads-required = "num-cpus"
|
|
|
|
|
|
# The slowest tests start first, so a shard does not end with one of them running alone on a
|
|
# core while the others sit idle (seed_81 alone takes about 20 minutes under CI load). Medians
|
|
# from the CI test timings (the junit artifacts), slowest first; a test over ~100 s belongs here.
|
|
[[profile.ci.overrides]]
|
|
filter = """
|
|
(package(solidcraft-engine) & (
|
|
test(/^tests::robustness_goldens::seed_(81|45|20|24|95|02|57|40|18|48|32|46|85|61)$/)
|
|
| test(/^tests::robustness::/)
|
|
| test(=tests::hostile_params_never_panic)
|
|
| test(=cmd::clearance::tests::distances_are_exact_on_edges_and_curved_faces)
|
|
| test(=cmd::clipboard::tests::a_pasted_coil_joins_the_pasted_body)
|
|
| test(=tests::pleat_join::the_pleats_join_at_every_wall_from_2_4_to_2_6_mm)
|
|
| test(=tests::flush_join_loft::a_flange_flush_with_the_end_of_a_bent_tapered_tube_joins)
|
|
| test(=cmd::sheet::tests::perforated_sheet_takes_a_thousand_round_holes)
|
|
| test(=boolean_regression_tests::joined_loft_frames_plan_their_display_at_every_quality)
|
|
))
|
|
| (package(solidcraft-engine) & (binary(atomic_commands) | binary(step_export_regressions)))
|
|
| (package(solidcraft-kernel) & (
|
|
test(=curveblend::tests::rolling_ball_turns_about_a_rounded_corner_of_its_radius)
|
|
| test(=tests::fillet_tabbed_plate_outer_loop_and_partial_selection_after_hole)
|
|
| test(=tspline::tests::hostile_tsplines_never_panic)
|
|
| test(=fill::tests::regular_rims_of_three_to_eight_sides_fill_with_one_face_and_close_the_cup)
|
|
| test(/^issue_788_tests::equal_bores_crossing_/)
|
|
))
|
|
"""
|
|
priority = 100
|