Closed mitchellmanware closed 9 months ago
Pull request checks continue to fail as a result of MODIS download function unit tests. I am very confused how previously passing tests are now failing without editing any of the unit tests or MODIS functions. I thought that the failures may be related to limits on GitHub runner API request or CRAN 60 second limit on HTTP requests, but utilizing a faster HTTP method with httr2
package increased the running time and still resulted in failures. Local R CMD build with devtools::check()
, and running tests individually with testthat::test_file()
, also fail due to the three MODIS unit tests.
@sigmafelix @eva0marques @Spatiotemporal-Exposures-and-Toxicology Any thoughts on causes or solutions?
Related #20; I found that manual download using links from download_modis_data
gives timeout error. NASA server might have issues or just blocked our office IPs at the moment. We might just remove url checks for MODIS data.
Implementing URL status skips for MODIS download tests after discussion https://github.com/Spatiotemporal-Exposures-and-Toxicology/amadeus/issues/20
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.76%. Comparing base (
37ba1fe
) to head (3cf2384
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
beethoven
process.R
andcalculate_covariates.R
filesdownload_noaa_hms_smoke_data
>download_hms_data
(reflected inman/
and all tests)strsplit()
in theextract_urls()
download support function.stringr
dependency withstringi
forstringi::stri_pad()
inprocess_narr()
geos/
test datatestthat::test_path()
in unit testsmethod = "SKIP"
tocheck_urls()
to skip HTTP status check in the MODIS download unit tests