The engine's test run is bound by its four CI cores, so these tests' seconds are a quarter of
their sum in wall time, in both the Linux test job and the GDAL and DuckDB job.
- The command sweeps (`hostile_params_never_panic_*`, `field_floors_hold_for_every_command_*`)
run each command once per set of junk parameters it can tell apart by the keys it names,
keeping the one with the most keys besides. Commands that take few keys and accept anything
ran all ~80, rebuilding three fixtures after each: most of the sweeps' time.
- The PDF layer tests draw a 50 mm page instead of A4: the reader draws each layer at 150 dpi.
- The export fit checks draw views a few points high: the fit follows the long side. One view
turned 1° covers a turned GeoTIFF's box, its rounding at the edge, and a PNG's own size.
Summary
Cuts the work of the engine's heaviest tests, keeping what each one checks. CI's test run keeps all four of its runner's cores busy from start to end, so the wall time is about a quarter of the tests' summed time. These tests run in both the Linux test job and the GDAL and DuckDB job.
hostile_params_never_panic_*,field_floors_hold_for_every_command_*): each command now runs once for each group of junk parameters that agree on every key the command names. The run uses the parameter set with the most other keys, so code that looks at keys a command doesn't name (a check for unexpected keys, a tool's own parameters) still sees them. Timing each command showed that commands taking few keys and accepting anything (map.zoomIn,info.project,map.new, …) ran all ~80 sets and rebuilt three fixtures after each one. That was most of the sweeps' time.params_name_every_key_a_command_readschecks that a command reads only the keys it names.export_map_to_geotiff_places_the_view_on_the_ground: the fit checks draw views a few points high, since the fit follows the long side. They had drawn pictures of up to 8177 × 8177 pixels. One view turned 1° (4095 × 100 points, a box 4096.12 wide) covers three rules: a turned GeoTIFF counts its box, the box is rounded out at the edge (8192.24 pixels becomes 8193, fitted to 191 DPI), and a turned PNG is sized by the view itself (8190 pixels, which fits).hostile_params_never_panic_*(8)field_floors_hold_for_every_command_*(8)export_map_to_geotiff_places_the_view_on_the_groundThat is about 830 test-seconds fewer, roughly 3.5 minutes of wall time in each of the two jobs. The "before" column is a Linux run on
main(job 143827780096). On the box, the oldhostile_params_never_panic_2took 108 s against CI's 110 s, so the columns compare.Reach: tests only. No command, saved file or interface changes.
Testing
params_name_every_key_a_command_readspasses too.UI evidence
No visible UI change.
Related issue
Follows #3573.
Summary by CodeRabbit