Repository navigation
ci: run the GDAL and DuckDB tests with both installed, and fail them when either is missing (#2644) #2876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: run the GDAL and DuckDB tests with both installed, and fail them when either is missing (#2644) #2876
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -626,7 +626,7 @@ fn hostile_bytes_never_panic() { | |||||||
| /// fields, and a TIN, which GDAL stores as a multipatch (a triangle fan). | ||||||||
| #[test] | ||||||||
| fn reads_what_gdal_writes_when_gdal_is_installed() { | ||||||||
| if !crate::source::gdal::available() { | ||||||||
| if !crate::source::gdal::test_runs().unwrap() { | ||||||||
| return; | ||||||||
| } | ||||||||
| let dir = std::env::temp_dir().join(format!("rustgis-filegdb-{}", std::process::id())); | ||||||||
|
|
@@ -647,7 +647,7 @@ fn reads_what_gdal_writes_when_gdal_is_installed() { | |||||||
| .unwrap(); | ||||||||
| let (gdb_s, points_s, tins_s) = (gdb.display().to_string(), points.display().to_string(), tins.display().to_string()); | ||||||||
| run(&["-f", "OpenFileGDB", "-a_srs", "EPSG:4326", "-nlt", "POINT", "-nln", "places", "-oo", "AUTODETECT_TYPE=YES", &gdb_s, &points_s]); | ||||||||
| run(&["-f", "OpenFileGDB", "-update", "-a_srs", "EPSG:2056", "-nlt", "TINZ", "-nln", "blocks", &gdb_s, &tins_s]); | ||||||||
| run(&["-f", "OpenFileGDB", "-update", "-a_srs", "EPSG:2056", "-nlt", "GEOMETRYCOLLECTIONZ", "-nln", "blocks", &gdb_s, &tins_s]); | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The switch from
Suggested change
Confidence: high that the comment is missing; the fix itself is verified by the author's run. Category: quality
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Left for the release quality pass. A switch back to |
||||||||
| assert!(is_geodatabase(&gdb)); | ||||||||
| assert_eq!(layers(&gdb).unwrap(), ["places", "blocks"]); | ||||||||
| let read = read_dir(&gdb, None).unwrap().layers; | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This job runs the whole of
rustgis-dataandrustgis-engineagain on every run that tests either package, so those crates are compiled and their roughly 4,500 tests run a second time besidetest. The rust-cache key is per job, soprogramsalso gets its own cache and no compile is shared. The PR body's timings (22 min here, 21 fortest) show the cost. Consider running only the tests that need the programs, for example with a nextest filterset on the names of the skip-gated tests, or put the install andRUSTGIS_REQUIRE_*on the ubuntu leg oftestand accept the trade-off thattestthen stops covering a machine without the programs. If keeping the full run is deliberate, say so in the job comment.Category: performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept whole on purpose; 705db13 says why in the job comment. A filter on test names would miss a new GDAL or DuckDB test named otherwise, and with the programs installed other tests also take the paths a user with them gets, such as a geodatabase read through GDAL when the built-in reader can't. The job runs beside
test, so it costs runner time, not the run's length.