r-lib / revdepcheck

R package reverse dependency checking
https://revdepcheck.r-lib.org
Other
99 stars 31 forks source link

Default to most recent cloud checks #286

Closed jennybc closed 3 years ago

jennybc commented 3 years ago

Closes #279

jennybc commented 3 years ago

I think this is ready.

It's not particularly easy to add tests just for this, so I didn't.

jennybc commented 3 years ago

BTW I think the GHA failures are some problem on their end.

jennybc commented 3 years ago

I've been able to confirm with usethis that you can start cloud checks now, restart R, and run cloud_status() successfully.

> cloud_check()
✓  checking for file ‘/Users/jenny/rrr/usethis/DESCRIPTION’ ...
─  preparing ‘usethis’: (15.8s)
✓  checking DESCRIPTION meta-information ...
─  installing the package to process help pages
─  checking for LF line-endings in source and make files and shell scripts (7.8s)
─  checking for empty or unneeded directories
   Removed empty directory ‘usethis/vignettes’
─  building ‘usethis_1.9.0.9000.tar.gz’

✓ Creating cloud job `job_name`: '760e5bd6-1ff7-467f-9435-4b5ecf2ccc1f'
ℹ Uploading /Users/jenny/rrr/usethis_1.9.0.9000.tar.gz
✓ Uploaded /Users/jenny/rrr/usethis_1.9.0.9000.tar.gz
ℹ Spawning batch job for cloud job `job_name`: '760e5bd6-1ff7-467f-9435-4b5ecf2ccc1f'
✓ Created batch job `job_id`: '862667c3-83e6-4570-9af0-ce834e549956'
→ Run `cloud_status()` to monitor job status

Restarting R session...

> load_all("~/rrr/revdepcheck/")
ℹ Loading revdepcheck

Attaching package: 'testthat'

The following object is masked from 'package:devtools':

    test_file

> cloud_status()
✓ Most recent cloud job `job_id`: '862667c3-83e6-4570-9af0-ce834e549956'
[87/0/0/0 - 87] 00:01:17 | ETA: ∞