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

mrc-4177 include dependencies #113

Merged
merged 15 commits into from
Jun 7, 2023
Merged

mrc-4177 include dependencies #113

merged 15 commits into from
Jun 7, 2023

Conversation

hillalex
Copy link
Contributor

@hillalex hillalex commented Apr 24, 2023

Pass task dependencies to the web client. Depends on mrc-ide/queuer#31.

@hillalex hillalex changed the base branch from master to mrc-4088 May 4, 2023 20:16
@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Patch coverage: 90.90% and project coverage change: -0.07 ⚠️

Comparison is base (7696d3b) 96.88% compared to head (5a980a0) 96.82%.

❗ Current head 5a980a0 differs from pull request most recent head e8ba81c. Consider uploading reports for the commit e8ba81c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   96.88%   96.82%   -0.07%     
==========================================
  Files          14       14              
  Lines        1221     1227       +6     
==========================================
+ Hits         1183     1188       +5     
- Misses         38       39       +1     
Impacted Files Coverage Δ
R/queue_didehpc.R 97.79% <85.71%> (-0.68%) ⬇️
R/client.R 100.00% <100.00%> (ø)
R/paths.R 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hillalex hillalex changed the title include dependencies mrc-4177 include dependencies May 15, 2023
@hillalex hillalex changed the base branch from mrc-4088 to master May 15, 2023 14:48
@hillalex hillalex marked this pull request as ready for review May 15, 2023 22:47
@hillalex hillalex requested a review from richfitz May 16, 2023 10:26
DESCRIPTION Outdated
Comment on lines 44 to 45
mrc-ide/context@mrc-4177,
mrc-ide/queuer@mrc-4177,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mrc-ide/context@mrc-4177,
mrc-ide/queuer@mrc-4177,
mrc-ide/context,
mrc-ide/queuer,

once mrc-ide/context#21 and mrc-ide/queuer#31 are merged (both approved but unmerged at present)

R/client.R Outdated
##' @param resource_count The number of resources to request
submit = function(path, name, template, cluster = NULL,
resource_type = "Cores", resource_count = 1) {
resource_type = "Cores", resource_count = 1, deps = "") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to deal with this at some point, but why at the outside of this function? If you took NULL or a character vector then paste(deps, collapse = ",") would return the expected format for the endpoint, and would be possibly nicer to work with - that might even be better in client_body_submit as it's not totally different in spirit to the base64 encoding that happens there

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also consider depends_on for consistency with below

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah fair, ok have moved close as possible to usage

R/queue_didehpc.R Outdated Show resolved Hide resolved
} else {
deps <- obj$dide_id(depends_on[[id]])
}
deps <- ifelse(length(deps) > 0, paste0(deps, collapse = ","), "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditional is not needed (also ifelse is generally worth avoiding over an in-line if / else
)

hillalex and others added 3 commits May 25, 2023 14:31
Co-authored-by: Rich FitzJohn <rich.fitzjohn@gmail.com>
@hillalex hillalex requested a review from richfitz May 25, 2023 16:15
@@ -15,13 +15,13 @@ Depends:
Imports:
conan (>= 0.1.1),
crayon,
context (>= 0.3.0),
context (>= 0.5.0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above on line 3 - bump version no to 0.3.21

@hillalex hillalex requested a review from weshinsley June 7, 2023 08:13
@hillalex hillalex merged commit 7559c24 into master Jun 7, 2023
7 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.

None yet

3 participants