This repository was archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Fix/add task perf #195
Merged
Merged
Fix/add task perf #195
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
214b50d
Added task id range
brnleehng c90e748
Removed upload blob methods
brnleehng 974df99
Removed upload blob
brnleehng f76fddf
Fixed trailing whitespace
brnleehng 4c0d281
Discarded job id on merge task id name
brnleehng 8ecf4c5
Adding chunk logic for argsList
brnleehng c18a06c
Added check for args containing data sets
brnleehng 3ce9781
Removed container name for docker run command for all tasks
brnleehng 0684088
Added test for hasDataSet
brnleehng fe3a5ef
Fix travis yml
brnleehng 2089bd9
Adding before_install for R
brnleehng e857c9a
Removed before install, added github package of nycflights13
brnleehng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ warnings_are_errors: false | |
| r_github_packages: | ||
| - Azure/rAzureBatch | ||
| - jimhester/lintr | ||
| - hadley/nycflights13 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| if (requireNamespace("nycflights13", quietly = TRUE)) { | ||
| context("hasDataSet function") | ||
|
|
||
| test_that("Arguments contains data set", { | ||
| byCarrierList <- split(nycflights13::flights, nycflights13::flights$carrier) | ||
| it <- iterators::iter(byCarrierList) | ||
| argsList <- as.list(it) | ||
|
|
||
| hasDataSet <- hasDataSet(argsList) | ||
|
|
||
| expect_equal(hasDataSet, TRUE) | ||
| }) | ||
|
|
||
| test_that("Arguments does not contain data set", { | ||
| args <- seq(1:10) | ||
| it <- iterators::iter(args) | ||
| argsList <- as.list(it) | ||
|
|
||
| hasDataSet <- hasDataSet(argsList) | ||
|
|
||
| expect_equal(hasDataSet, FALSE) | ||
| }) | ||
|
|
||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think I might be missing something here, but don't we still need to upload a single argument blob to storage? Is that what was indended with the azbatchenv environment in the job prep? Are there any cases where this object gets too big will not work? Would we ever need to chunk it up?