-
Notifications
You must be signed in to change notification settings - Fork 2
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
Return calibrate result path relative to the results directory #471
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #471 +/- ##
=======================================
Coverage 98.49% 98.49%
=======================================
Files 29 29
Lines 2389 2391 +2
=======================================
+ Hits 2353 2355 +2
Misses 36 36 ☔ View full report in Codecov by Sentry. |
R/endpoints.R
Outdated
@@ -253,8 +253,10 @@ calibrate_result_path <- function(queue) { | |||
function(id) { | |||
verify_result_available(queue, id) | |||
result <- queue$result(id) | |||
relative_path <- sub(paste0(queue$results_dir, .Platform$file.sep), "", |
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.
strongly suggest you use fs::path_rel for this
This should hopefully, along with hivtools/hint-deploy#76 , simplify some of the test setup in hint, and make it less fragile - we don't have to rely on the results volume being mounted in the same point in hint and hintr anymore