Skip to content
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

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

r-ash
Copy link
Collaborator

@r-ash r-ash commented Sep 22, 2023

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

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.49%. Comparing base (7e3ef21) to head (62997ad).
Report is 6 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

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), "",
Copy link
Contributor

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

@r-ash r-ash requested a review from richfitz April 5, 2024 15:14
@r-ash r-ash merged commit 4d5281e into master Apr 18, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants