instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
Data-Centric-AI-Community__fg-data-profiling__1076
Data-Centric-AI-Community/fg-data-profiling
1,076
defect
38c193ccb9cdf16278f3bf5322022f52b91baeb0
1c065e01ed2f3235ff33a0dacd649910a031b95e
feat: add support for Pandas 1.5
Some imports had to be fixed up. * `make test` passes locally with flying colors with Pandas 1.5. Fixes #1075 Following @sbrugman's review, I also added a new `pandas_version_info()` function, and at the same time got rid of outdated `pandas.__version__` checks (since this library requires Pandas 1.2 since 352...
diff --git a/requirements.txt b/requirements.txt index ffdd5adad..2eedf461e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ joblib~=1.2.0 # 1.1.0 scipy>=1.4.1, <1.10 -pandas>1.1, <1.5, !=1.4.0 +pandas>1.1, <1.6, !=1.4.0 matplotlib>=3.2, <3.6 pydantic>=1.8.1, <1.10 PyYAML>=5.0.0, <6.1 @@ -23,4...
3
3
0
[{"id": "G0", "claim": "The reviewer asks why the newly sorted list of categorical columns is required for pandas 1.5 support, notes sorting by column name may change the correlation matrix's order from the original dataset order, and asks to preserve the inherited arbitrary order of the set instead.", "category": "des...
null
Data-Centric-AI-Community__fg-data-profiling__1095
Data-Centric-AI-Community/fg-data-profiling
1,095
defect
6e09c7cd649910556f5cc31f72c89a4c58ea2229
3928dad587ab8cf9b6e5ad1af0fc4b08df71b97a
feat: introduce auto parameter for correlations
The purpose of this feature is to automatically choose the most suitable 'correlation'/'association' metric for each pair of columns .The auto setting is an easily interpretable pairwise column metric that uses previously implemented metrics of the following mapping: ``` vartype-vartype : method, cate...
diff --git a/docsrc/source/pages/advanced_usage/available_settings.rst b/docsrc/source/pages/advanced_usage/available_settings.rst index 13682666c..a5beb4887 100644 --- a/docsrc/source/pages/advanced_usage/available_settings.rst +++ b/docsrc/source/pages/advanced_usage/available_settings.rst @@ -91,6 +91,7 @@ For insta...
5
3
2
[{"id": "G0", "claim": "The pull request's new `auto` correlation still needs to be added to the documentation, e.g. the correlation API reference page and the correlation-matrix access page it links.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": ...
null
Data-Centric-AI-Community__fg-data-profiling__1137
Data-Centric-AI-Community/fg-data-profiling
1,137
defect
da2654532080fd78147a278a7e3fbcd0c87136da
dd34c45604f0dc56eef17956b45f2d0c8fa6f61c
fix: comparison bugs
Fixed some bugs (most likely caused by refactoring) and added support to time series comparison ![autocorr](https://user-images.githubusercontent.com/9274404/200355122-6c90b00e-0513-4ba1-b0e5-c3fe57f927be.png) ![ts_support](https://user-images.githubusercontent.com/9274404/200355125-628a2ccc-6a20-47ef-a31c-e2705e26ff...
diff --git a/src/pandas_profiling/profile_report.py b/src/pandas_profiling/profile_report.py index 460ad25e2..b78121683 100644 --- a/src/pandas_profiling/profile_report.py +++ b/src/pandas_profiling/profile_report.py @@ -124,6 +124,8 @@ def __init__( if config is not None: report_config = report...
10
6
1
[{"id": "G0", "claim": "The assignment of the protected style labels at the call site looks unnecessary and should be fixed in report_config.update() instead of here.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The HTML templates should not have to ac...
null
Data-Centric-AI-Community__fg-data-profiling__1203
Data-Centric-AI-Community/fg-data-profiling
1,203
defect
0d67c73ba7b194e6a8406ae45ddfc0e6692a9fea
2fbcbbb1e2d1ddc7d5e3d0ecb858eaed8e62b58b
feat: implement imbalanced warning
**Context** Users may want to assess how balanced their Categorical and Boolean columns are and be warned if there are signs of high imbalance. This becomes increasingly difficult for them to manually interpret with a higher number of classes (for Categorical Variables). **Solution** This PR aims to introduce a...
diff --git a/docsrc/source/pages/getting_started/overview.rst b/docsrc/source/pages/getting_started/overview.rst index f6468c676..6f2c10929 100644 --- a/docsrc/source/pages/getting_started/overview.rst +++ b/docsrc/source/pages/getting_started/overview.rst @@ -32,7 +32,7 @@ which automatically generates a standardized ...
1
1
1
[{"id": "G0", "claim": "Imbalance should not be displayed as information in the report (not added to the Essentials overview list and not rendered as a per-variable entry in the boolean/categorical tables); since the value is already computed for the warning it can stay in the summary object, but only the imbalance war...
null
Data-Centric-AI-Community__fg-data-profiling__1282
Data-Centric-AI-Community/fg-data-profiling
1,282
defect
e0ddbbad8b531336ed0522bd0ad4afcc40a9f71e
2fc6bb22716a95882cda8354fd715481cd7ff397
feat: add string type for text variables
It would be nice to have specialt type for plain text variables like name, address etc. I created string type, that represents those types of variables. For now, I took most of the functionality from categorical variable, but I think, that in time description and render can be pretty different. - added new data type ...
diff --git a/src/ydata_profiling/config.py b/src/ydata_profiling/config.py index 0b7e4f8d6..0cd278418 100644 --- a/src/ydata_profiling/config.py +++ b/src/ydata_profiling/config.py @@ -45,12 +45,20 @@ class NumVars(BaseModel): chi_squared_threshold: float = 0.999 +class StrVars(BaseModel): + length: bool = ...
13
8
4
[{"id": "G0", "claim": "The import reordering in summary_algorithms.py is unexplained churn and the reviewer asks why the import order was changed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The signature change of string_is_bool from k: Set...
null
Data-Centric-AI-Community__fg-data-profiling__875
Data-Centric-AI-Community/fg-data-profiling
875
defect
8521edc912f67fd9b678e9a1ccdd074e8e0f04e9
8ff9012dac8511741815082afe8279ac7bf45c18
initial tests for describe
This commit adds the initial batch of tests for the describe function so that describe is tested by default
diff --git a/tests/backends/spark_backend/test_descriptions_spark.py b/tests/backends/spark_backend/test_descriptions_spark.py new file mode 100644 index 000000000..ca064efa6 --- /dev/null +++ b/tests/backends/spark_backend/test_descriptions_spark.py @@ -0,0 +1,439 @@ +import datetime + +import numpy as np +import pand...
2
1
0
[{"id": "G0", "claim": "The test's config preprocessing (disabling correlations, interactions, missing diagrams and dtype inference) should not be in the test; either the profiler supports these on spark or it should raise errors.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}...
null
Data-Centric-AI-Community__fg-data-profiling__877
Data-Centric-AI-Community/fg-data-profiling
877
defect
181e6cdda72e526d8b1b22a42afe35ac6efe8948
e71a6b0264d0c21d3c2276b065c2aff41ce9f9f2
ENH: issue #863 If defined, stop words to be ignored in word count table
Stop words can be defined by changing the config of the ProfileReport: -> profile.config.vars.cat.stop_words = [the, to] The stop words are then ignored in the word count and frequency table : ![image](https://user-images.githubusercontent.com/18192364/141181132-921ea00d-f8d5-4b0a-a91f-c2b815c9b56c.png) My c...
diff --git a/src/pandas_profiling/config.py b/src/pandas_profiling/config.py index 92b36334b..743de42d7 100644 --- a/src/pandas_profiling/config.py +++ b/src/pandas_profiling/config.py @@ -57,6 +57,7 @@ class CatVars(BaseModel): coerce_str_to_date: bool = False redact: bool = False histogram_largest: int...
2
2
1
[{"id": "G0", "claim": "The stop-word filter in word_summary_vc should only run when len(stop_words) > 0.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please add a unit test for word_summary_vc.", "category": "testing", "verdict": "supported", "pr...
null
Data-Centric-AI-Community__fg-data-profiling__891
Data-Centric-AI-Community/fg-data-profiling
891
defect
8b17e2cb0c4662145890f772ca3814d0eddcd8ed
13dafbf7d7084855680c7b41525a45e64483d8e1
feat(spark): enable default spark settings
Create default settings for spark and enable automatic switching in ProfileReport based on input df type
diff --git a/src/pandas_profiling/config.py b/src/pandas_profiling/config.py index 92b36334b..045ccab55 100644 --- a/src/pandas_profiling/config.py +++ b/src/pandas_profiling/config.py @@ -303,6 +303,46 @@ def update(self, updates: dict) -> "Settings": return self.parse_obj(self.copy(update=update)) +class...
1
1
0
[{"id": "G0", "claim": "The isinstance check in get_default_settings should pass a tuple as its second argument: isinstance(df, (pd.DataFrame, pd.Series)) instead of two chained isinstance calls.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Data-Centric-AI-Community__fg-data-profiling__930
Data-Centric-AI-Community/fg-data-profiling
930
defect
f8bad5dde27e3f87f11ac74fb8966c034bc22db8
47181ba484f261ae3ca23dae2643568f2a2d856e
feat: show cat freq with stacked barh not pie - fixes #679
Replaces the pie plot by a **horizontal stacked bar chart** to represent category frequency. It is used for boolean and categorical features (which have less than _n_max_ unique values. Example of the new **horizontal stacked bar chart** representation: <kbd> <img src="https://user-images.githubusercontent.com/181...
diff --git a/src/pandas_profiling/config.py b/src/pandas_profiling/config.py index 4c387ab94..a7000e6d8 100644 --- a/src/pandas_profiling/config.py +++ b/src/pandas_profiling/config.py @@ -129,11 +129,15 @@ class Histogram(BaseModel): x_axis_labels: bool = True -class Pie(BaseModel): - # display a pie chart...
2
1
1
[{"id": "G0", "claim": "The new YAML config key `cat_frequency` in config_default.yaml and config_minimal.yaml should be named `cat_freq`.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new category frequency plot always displays the data in...
null
Data-Centric-AI-Community__ydata-profiling__1076
Data-Centric-AI-Community/ydata-profiling
1,076
defect
38c193ccb9cdf16278f3bf5322022f52b91baeb0
1c065e01ed2f3235ff33a0dacd649910a031b95e
feat: add support for Pandas 1.5
Some imports had to be fixed up. * `make test` passes locally with flying colors with Pandas 1.5. Fixes #1075 Following @sbrugman's review, I also added a new `pandas_version_info()` function, and at the same time got rid of outdated `pandas.__version__` checks (since this library requires Pandas 1.2 since 352...
diff --git a/requirements.txt b/requirements.txt index ffdd5adad..2eedf461e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ joblib~=1.2.0 # 1.1.0 scipy>=1.4.1, <1.10 -pandas>1.1, <1.5, !=1.4.0 +pandas>1.1, <1.6, !=1.4.0 matplotlib>=3.2, <3.6 pydantic>=1.8.1, <1.10 PyYAML>=5.0.0, <6.1 @@ -23,4...
5
4
0
[{"id": "G0", "claim": "Sorting the categorical set may change the correlation matrix's column order away from the original dataset order, and the reviewer would prefer to preserve the previously inherited arbitrary order (e.g. by using list instead of sorted).", "category": "design", "verdict": "supported", "priority"...
null
Data-Centric-AI-Community__ydata-profiling__737
Data-Centric-AI-Community/ydata-profiling
737
defect
29ff64b4ef5c724404c743967512101c820ec014
6f3bb910823ea10442c004238ceb26fe92c5c042
build: Upgrade to Visions 0.7.1
Closes #732
diff --git a/requirements-test.txt b/requirements-test.txt index 89c4b5df1..24f0649da 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -3,6 +3,7 @@ coverage<5 codecov pytest-mypy pytest-cov +git+https://github.com/sbrugman/pluggy.git@patch-1 nbval pyarrow flake8 diff --git a/requirements.txt b/re...
3
1
0
[{"id": "G0", "claim": "Wait until the pluggy patch lands in the upstream pluggy repository instead of depending on the sbrugman/pluggy fork in requirements-test.txt.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider using a `>=` range for...
null
DataBiosphere__toil__1052
DataBiosphere/toil
1,052
defect
13e407d37364034dd53208bb55e8085fef9cf49e
5d4d5b4e2be25c842a20a1d18aad6b8f74f1daec
Add singleMachine disk tracking (resolves #770)
resolves #770
diff --git a/src/toil/__init__.py b/src/toil/__init__.py index 6ab7255902..630b230438 100644 --- a/src/toil/__init__.py +++ b/src/toil/__init__.py @@ -77,3 +77,12 @@ def physicalMemory(): return os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') except ValueError: return int(check_output(['...
8
8
0
[{"id": "G0", "claim": "In the new InsufficientSystemResources.__str__ message the second formatted value should be the capitalized resource name (the capitalize() is applied to the wrong argument).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
DataBiosphere__toil__1107
DataBiosphere/toil
1,107
defect
0ef649d7b2946ddbfa0c07c5eb0c1e0deb857583
35f9acbe2c54b5c20d991f6e6a6de1a63ff4c371
Support CWL workflow restarts (resolves #1241, resolves #1100)
Continues #1025 Support restarting a cwltoil workflow with the `--restart` flag, updates work by @tetron in #1025 and fixes #1100. Adds a test to demonstrate restart capability by manipulating paths to cause the initial run of the revsort workflow to fail. Still a work in progress as the test fails consistentl...
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index 46d3c1e923..2a02650be7 100755 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -646,20 +646,23 @@ def importDefault(tool): adjustFiles(tool, functools.partial(writeFile, toil.importFile, {})) t.visit(importDefault) ...
5
4
2
[{"id": "G0", "claim": "The new --restart support appears to misbehave: when restarting, a failed job seems to be issued again although it is not a successor of any finished job, so the new test_restart test fails with 'rev' not found.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
DataBiosphere__toil__1176
DataBiosphere/toil
1,176
defect
b1d81400cd75d29ef12d757e7400aca1cb595909
089ed1a8275b9aa0ab7c3854614122aa31b3307e
Eliminate double autoscaling by fixing issued job code (resolves #1086)
Resolves #1086 Continues #1112
diff --git a/run_tests.py b/run_tests.py index ef44bea1e4..48e46a04a6 100644 --- a/run_tests.py +++ b/run_tests.py @@ -28,7 +28,8 @@ 'GoogleJobStoreCacheTest', None], 'integration-test': [ - 'CGCloudRNASeqTest' + 'CGCloudRNASeqTest', + 'PremptableDeficitCompensationTest' ...
3
3
0
[{"id": "G0", "claim": "removeJobID should assert that self._preemptableJobsIssued does not go negative when decrementing it for a preemptable job.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blank line after the deficit comment block carries...
null
DataBiosphere__toil__1190
DataBiosphere/toil
1,190
defect
b1d81400cd75d29ef12d757e7400aca1cb595909
0db44a619d6cd3507c4e473752e3c81017e65e87
Add disk-usage logging to filestores (resolves #1188)
resolves #1188 Added a simple check at the end of each job of how much disk space is used by the job at the end of its lifespan. Log the results to INFO and then add a message to WARNING if the job used more space than it requested. Added a function to recursively get the size of a directory (including subdirectories)...
diff --git a/src/toil/common.py b/src/toil/common.py index 9f0034a45d..88fe88e538 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -31,6 +31,10 @@ logger = logging.getLogger(__name__) +# This constant is set to the default value used on unix for block size (in bytes) when +# os.stat(<file>).st_blocks is...
12
11
1
[{"id": "G0", "claim": "The `linkedFileInodes` set should be renamed to something like `seenInodes` or `visitedInodes`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `_getDirSize` docstring's `:return:` line should say the size is in bytes....
null
DataBiosphere__toil__1264
DataBiosphere/toil
1,264
defect
2da06aa1ca5da03d6dfd29eea1d7b870f8748543
d97638e71edfc6ba7c1776d24b4aa40b4b496881
Add tests for stranded successors in DAGs (resolves #1122, resolves #1289, resolves #1294)
@benedictpaten this adds a couple simple test cases for #1122
diff --git a/Makefile b/Makefile index 7ff3f5ef3d..5393f9f942 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ clean_sdist: - rm -rf dist -test: check_venv check_build_reqs docker +test: check_venv check_build_reqs TOIL_APPLIANCE_SELF=$(docker_registry)/$(docker_base_name):$(docker_tag) \ $(python) ...
4
1
1
[{"id": "G0", "claim": "Switching off the asserts is not a general solution because it would allow deadlocks to occur, so a general solution is needed instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The pull request's CI shows failing tests (ho...
null
DataBiosphere__toil__1478
DataBiosphere/toil
1,478
defect
ee149ac07834124364f3ef1e2dac79898f187323
bd0bf5803b0f6c0aa1be15c00c031f3b35ac1c97
Issues/1465 1466 Fix verification that new checkpoint jobs are leaf vertices
Fix verification that new checkpoint jobs are leaf vertices (resolves #1465, resolves #1466) Changed to 1) correctly identify a leaf vertex and 2) to include checking of the workflow root job. Note: This pull request is also listing a merge-related commit from updating my fork. However, this merge-related commit...
diff --git a/src/toil/job.py b/src/toil/job.py index 1a48449d49..8897e796e1 100644 --- a/src/toil/job.py +++ b/src/toil/job.py @@ -646,7 +646,7 @@ def checkNewCheckpointsAreLeafVertices(self): # Check for each job for which checkpoint is true that it is a cut vertex or leaf for y in filter(lambda x : ...
1
1
0
[{"id": "G0", "claim": "The new checkpoint test should use log statements (the project-preferred convention) instead of print statements for informational output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataBiosphere__toil__1572
DataBiosphere/toil
1,572
defect
4f34c0825b1a69a7e8b8b93d684510a108231cc1
e06a6c30167d0042e4982cb48a58dd73a45028cc
Allow users to specify root volume size for leader and worker nodes (resolves #1483)
`toil launch-cluster` now has the new option `--leaderStorage` which specifies the size of the root volume for the leader node. This defaults to 50 GB. Also toil now has the option `--nodeStorage` which specifies the size of the root volume for any worker nodes. This also defaults to 50 GB. EDIT: changed option n...
diff --git a/src/toil/common.py b/src/toil/common.py index da5c2d9e9d..33549a368f 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -89,6 +89,7 @@ def __init__(self): self.betaInertia = 1.2 self.scaleInterval = 30 self.preemptableCompensation = 0.0 + self.workerRootVolSize = ...
7
6
2
[{"id": "G0", "claim": "Set the default worker root volume size directly in the addOptionFn call for clarity, instead of deferring it to _getBlockDeviceMapping via a note.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename --workerDiskSize to...
null
DataBiosphere__toil__1760
DataBiosphere/toil
1,760
defect
7b1f22ecd3f8aea6d0a86ab56344d7d80bade4ab
b06e2ec1cdcea0f418e5e72a4bc6f3601f0469a4
Add option to link files when importing into fileJobStore (resolves #1755)
Previously when using importFile function hard-links were made if possible in the fileJobStore. Caching code changes permissions of the imported file to read-only which can have unexpected results. This PR changes importFile to copy by default instead. It also add a command line option `--linkImports` which will ca...
diff --git a/src/toil/batchSystems/options.py b/src/toil/batchSystems/options.py index 0c960e2793..ad70731fb3 100644 --- a/src/toil/batchSystems/options.py +++ b/src/toil/batchSystems/options.py @@ -24,14 +24,20 @@ def _parasolOptions(addOptionFn): "batch is created for jobs with a a unique set of...
3
3
2
[{"id": "G0", "claim": "The pull request's new --linkImports behaviour ships without any test; a test should be added for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The imported file should be explicitly made read-only at import time, to prevent...
null
DataBiosphere__toil__1820
DataBiosphere/toil
1,820
defect
1df3b99b7f4a24f4f58e3e601dc765a98a3efd3c
4927e4ea1719d3be586e9bed2cdf057f84460261
Fix flaky JobService tests (resolves #1819)
Hopefully this gives us some relief from the flaky tests. This arose because of the recent checkpoint fixes. Unfortunately updating the state of the jobGraphs from the leader caused issues in some cases: for a job that launches services, the leader sets `jobGraph.services` to an empty list as a leader-specific signa...
diff --git a/src/toil/jobGraph.py b/src/toil/jobGraph.py index 0c47d6048d..e7405ad5ec 100644 --- a/src/toil/jobGraph.py +++ b/src/toil/jobGraph.py @@ -112,6 +112,56 @@ def setupJobAfterFailure(self, config): logger.warn("We have increased the default memory of the failed job %s to %s bytes", ...
2
2
0
[{"id": "G0", "claim": "The function should be cleaned up so that it does not use getJobs() to load all jobs into memory at once unless caching is enabled — raised as a note, explicitly not to be solved in this PR.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
DataBiosphere__toil__1960
DataBiosphere/toil
1,960
defect
226abc7da5345299dee66a73f08c581ecbbe133b
cf7dff9ad27352c7a17bd0877caacfe4f72ab474
Modify subprocessDockerCall to address 1959.
Just allow "job" to be accepted as an *arg. Addresses an issue with the subprocessDockerCall() that toil-vg uses.
diff --git a/src/toil/lib/docker.py b/src/toil/lib/docker.py index 0362c54a57..fbe91d4b96 100644 --- a/src/toil/lib/docker.py +++ b/src/toil/lib/docker.py @@ -30,7 +30,7 @@ logger = logging.getLogger(__name__) -def dockerCheckOutput(job, *args, **kwargs): +def dockerCheckOutput(*args, **kwargs): """ Depr...
3
3
2
[{"id": "G0", "claim": "The outfile option as implemented for apiDockerCall buffers the whole output in memory and writes it afterwards, which will not work for large data sizes; it needs a way to pipe the output directly to file (equivalent to subprocess.check_call(stdout=X)).", "category": "performance", "verdict": "...
null
DataBiosphere__toil__2142
DataBiosphere/toil
2,142
defect
43588156c2f23c8f88bce938ca88da65536eaed9
6ea0e71cfb6d6dedebbe7078dfd428f4cf7067e6
Check if docker image exists before sallying forth. Addresses #2126.
Addresses #2126, but also apparently #1707, #1697, #1688 and #1831 after digging a bit.
diff --git a/Makefile b/Makefile index e46b8f2a6b..18ec8df428 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 2015 UCSC Computational Genomics Lab +# Copyright (C) 2015-2018 UCSC Computational Genomics Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
9
5
1
[{"id": "G0", "claim": "Checking the appliance by pulling the docker image can take a long time on a slow connection, messes with the user's existing docker images and assumes Docker is installed; the check should instead use the Docker registry HTTP API (e.g. HEAD on /v2/<repo>/manifests/<tag>) via the already-include...
null
DataBiosphere__toil__2329
DataBiosphere/toil
2,329
defect
e0400121eb38109ca33aa7de447d4c03d385dd9c
91ea258192485671334f9f787e7b81f223392ca0
Issues/2319 env vals override
Reopening of previous fix. Specifies zone options explicitly in AWS tests.
diff --git a/src/toil/provisioners/azure/__init__.py b/src/toil/provisioners/azure/__init__.py index b2f0dbccd5..f7d9550f46 100644 --- a/src/toil/provisioners/azure/__init__.py +++ b/src/toil/provisioners/azure/__init__.py @@ -11,17 +11,3 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #...
2
2
1
[{"id": "G0", "claim": "The getZoneFromEnv docstring misspells \"leiu\" for \"lieu\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The AWS integration tests are failing because launch-cluster no longer finds a default zone when --zone is not giv...
null
DataBiosphere__toil__2339
DataBiosphere/toil
2,339
defect
024e08525e13fb01aa5d077ef3b1b5def4479503
5ed9c3f109954c0a038e8eeb4222d5c2ac7b7a40
Issues/2335 add get status func
This PR will add getStatus and getPIDStatus methods to the ToilStatus class, as well as corresponding unit tests.
diff --git a/.travis.yml b/.travis.yml index dcc9270ab5..9d25e0631c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ install: - make prepare - make develop extras=[aws,google] # adding extras to avoid import errors script: - - TOIL_TEST_QUICK=True make test_offline + - TOIL_TEST_QUICK=True make test_...
22
22
1
[{"id": "G0", "claim": "The methods added in this PR should document their expected inputs, outputs and their types in their docstrings (Sphinx info-field style) where appropriate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The service-job inv...
null
DataBiosphere__toil__2983
DataBiosphere/toil
2,983
defect
6d3dae3205e9d7b563923081fd81a6f17d4e02d9
df600a76ead56ebf62f1f2aa04f371ec7ad94e80
Add moveExports option.
Toil currently has a "linkImports" parameter, used by fileJobStores only, to prevent copying of files present in the input into the job store and replacing the copy by a link. This pull request introduces a "moveExports" parameter, also used in fileJobStores only, allowing to move the file from the job_store to the ...
diff --git a/src/toil/batchSystems/options.py b/src/toil/batchSystems/options.py index f479bf0a4b..cc1cb635fc 100644 --- a/src/toil/batchSystems/options.py +++ b/src/toil/batchSystems/options.py @@ -66,6 +66,13 @@ def _singleMachineOptions(addOptionFn, config): "When not specified and as long as caching is...
6
6
2
[{"id": "G0", "claim": "The help text of the new --noMoveExports option implies the move-on-export behavior affects only CWL, and the descriptions should be updated to cover all workflow engines (e.g. native Python and WDL).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
DataBiosphere__toil__3236
DataBiosphere/toil
3,236
defect
94b4f2025b304b117ae15a222ad533d5845d744c
f4b7a43ea9f78a7ba598b7017c8b1e21089c3d20
Add WDL write functions and builtin tests
WDL functions added: - write_lines(), - write_tsv(), - write_json(), and - write_map() This completes #3162, #3163, #3164, and #3165.
diff --git a/src/toil/test/wdl/builtinTest.py b/src/toil/test/wdl/builtinTest.py index d4a57816a4..569a7d3c3c 100644 --- a/src/toil/test/wdl/builtinTest.py +++ b/src/toil/test/wdl/builtinTest.py @@ -5,6 +5,10 @@ import uuid from toil.wdl.wdl_functions import ceil from toil.wdl.wdl_functions import floor +from toil.w...
3
2
0
[{"id": "G0", "claim": "Add typing to the write functions' input arguments, which would be useful for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `assert isinstance(x, xtype)` checks should be done away with, since the added ...
null
DataBiosphere__toil__3280
DataBiosphere/toil
3,280
defect
8081a3ead3314c8add5d99df4ec5e88fa2c344ce
42050f04e591bdca2e1652a807007465460b66cc
CWL Test #236: Inplace update has side effect on directory content.
This PR adds full support for CWL1.1 and allows us to pass conformance test 236. This test has three jobs and toil trips at two points: **First job**: `mkdir stepDir1` which is then sym-linked into the staging dir of the next job as `inp -> stepDir1` **Second job**: `touch inp/blurb` So, problem on...
diff --git a/.travis.yml b/.travis.yml index 55199664a4..8cb3e84209 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: install: - make prepare - make develop extras=[aws,google] # adding extras to avoid import errors + - pip uninstall -y cwltool # temporary and to be removed before merging scr...
4
4
3
[{"id": "G0", "claim": "The conformance test passes without caching but still fails with caching enabled, which is currently allowed to fail via xfail; the author suspects caching may not handle symlinks well and asks for input on getting caching working.", "category": "correctness", "verdict": "supported", "priority":...
null
DataBiosphere__toil__3307
DataBiosphere/toil
3,307
defect
a11ae486971a51618da9abbc6cb46ef1e9f17874
85c5e4c58528eafe2baee7c56c697cec9434bd1a
Add length() WDL function
Closes #3204. \- `length()` was supported but I'm making it part of `wdl_functions` for completeness, and to validate input.
diff --git a/src/toil/test/wdl/builtinTest.py b/src/toil/test/wdl/builtinTest.py index 958111a4c5..2887f4fe16 100644 --- a/src/toil/test/wdl/builtinTest.py +++ b/src/toil/test/wdl/builtinTest.py @@ -22,6 +22,7 @@ from toil.wdl.wdl_functions import write_json from toil.wdl.wdl_functions import write_map from toil.wdl...
2
2
1
[{"id": "G0", "claim": "The testFn_Length docstring should say the test covers the WDL 'length()' built-in rather than calling it a 'functional equivalent' of something else.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If WDL has a dict-like ty...
null
DataBiosphere__toil__3309
DataBiosphere/toil
3,309
defect
44a1047741c8db01c82f16b6bad2c2e9d4703d53
5ec967df15a1432d422bb2357927aa732dbadf1f
Add reporting for accessed files of failed jobs
This should fix #2649. When a job fails, its log will now include reporting of all global files downloaded/streamed via the FileStore: ``` [2020-10-28T15:07:50-0700] [MainThread] [W] [toil.fileStores.accessReportingWrapper] Failed job accessed files: [2020-10-28T15:07:50-0700] [MainThread] [W] [toil.fileStores....
diff --git a/src/toil/fileStores/abstractFileStore.py b/src/toil/fileStores/abstractFileStore.py index 2c1ea2a647..1595698471 100644 --- a/src/toil/fileStores/abstractFileStore.py +++ b/src/toil/fileStores/abstractFileStore.py @@ -99,8 +99,9 @@ def createFileStore(jobStore, jobGraph, localTempDir, waitForPreviousCommit...
1
1
0
[{"id": "G0", "claim": "AccessReportingWrapper should be made a subclass of AbstractFileStore rather than a __getattr__-delegating wrapper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataBiosphere__toil__3326
DataBiosphere/toil
3,326
defect
d84cb7c6d63cba47b70d6ec3ca411d96da4f9d01
c01986e585adde32ead39afdb0c917315bd990b0
CWL test script refactor.
Takes all of the extra minor refactors out of https://github.com/DataBiosphere/toil/pull/3323 to be added separately until the CWL conformance tests in kubernetes are running. Changes: - Refactored the 1/1.1/1.2 CWL conformance tests so that they share the same function. - Corrected batch system names (i.e. `gri...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67a5dc065a..476953793f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,7 +37,7 @@ py36_appliance_build: stage: basic_tests script: - pwd - - apt update && DEBIAN_FRONTEND=noninteractive apt install -y tzdata && apt install -y jq + - apt update ...
1
1
0
[{"id": "G0", "claim": "The '--enable-dev' flag should no longer be added to the CWL conformance test invocation (the 'if yml != conformance_test_v1.0.yaml' block appending it should be removed).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataBiosphere__toil__3360
DataBiosphere/toil
3,360
defect
3df0204c8b57d275d347470d226ec4b08a5e907f
b1806a41f0403e9f8543aa846d3124b59a2b92f0
Add WDL cross() function + tests.
Closes #3199. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Add cross() WDL function.
diff --git a/src/toil/test/wdl/builtinTest.py b/src/toil/test/wdl/builtinTest.py index d8510b6947..3791e2e19d 100644 --- a/src/toil/test/wdl/builtinTest.py +++ b/src/toil/test/wdl/builtinTest.py @@ -27,6 +27,7 @@ write_map, write_tsv, wdl_zip, + cross, WDLPair, WDLRuntimeError) @@ -263,6 +...
3
2
0
[{"id": "G0", "claim": "The cross() runtime error message should say `Array[]` instead of `lists`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asked whether the type check should use `WDLArrayType` rather than an isinstance check a...
null
DataBiosphere__toil__3362
DataBiosphere/toil
3,362
defect
56164509a7f6c3e910ac6d5bdae1ebefee778725
093edce266ff7201f18f83f65f4d16e323e75003
Add a better error message for insufficient disk.
Resolves #3359 . Also refactored a little, somewhat due to making it easier to pass the `dir` name needed for the error message. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Better error message for insufficient disk.
diff --git a/src/toil/__init__.py b/src/toil/__init__.py index cddce5ab6a..0c93688629 100644 --- a/src/toil/__init__.py +++ b/src/toil/__init__.py @@ -144,7 +144,7 @@ def resolveEntryPoint(entryPoint): @memoize -def physicalMemory(): +def physicalMemory() -> int: """ >>> n = physicalMemory() >>> n >...
1
1
0
[{"id": "G0", "claim": "Since the pull request adds type annotations, consider expanding the mypy CI checks to cover them.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataBiosphere__toil__3395
DataBiosphere/toil
3,395
defect
4567864a37cfcbc8b034907e57b9fbfb93710c6a
fd58596ecad1ee0ae81c940e2565f80312748442
Add better handling for potentially mis-ordered CWL args.
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Add better handling for potentially mis-ordered CWL args.
diff --git a/src/toil/common.py b/src/toil/common.py index aa1724c964..9ef46ca69d 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -410,14 +410,14 @@ def addGroupFn(group_title, group_description): # # Auto scaling options # - addOptionFn = addGroupFn("toil options for autoscaling the clust...
3
3
1
[{"id": "G0", "claim": "Reword the argparse hint to say 'If both a CWL file and an input object (YAML/JSON) file were provided, this may be the argument order.' instead of 'If both a cwl file and a yml file were provided, this may be the argument order.'", "category": "documentation", "verdict": "supported", "priority"...
null
DataBiosphere__toil__3412
DataBiosphere/toil
3,412
defect
d6c171e77edf3b6bde3daa7385b5ea8efd01f073
2f2651ea1dce5dd23cd4df1b24d1241f0d874e3f
Update Google job store
Should fix #3388.
diff --git a/src/toil/jobStores/googleJobStore.py b/src/toil/jobStores/googleJobStore.py index f46aa6f032..dc56f0c779 100644 --- a/src/toil/jobStores/googleJobStore.py +++ b/src/toil/jobStores/googleJobStore.py @@ -18,7 +18,7 @@ import uuid from contextlib import contextmanager from functools import wraps -from io i...
6
6
2
[{"id": "G0", "claim": "Running a workflow on this PR raises a TypeError at the end (\"a bytes-like object is required, not 'str'\") because statsAndLogging still calls writeStatsAndLogging with a str after the Google job store was switched to bytes.", "category": "correctness", "verdict": "supported", "priority": "P1"...
null
DataBiosphere__toil__3417
DataBiosphere/toil
3,417
defect
60c7c723e52125d4a5de6b5337a7a99ecf94f942
bcb4fd043c0f5667b5641e3c7d6748f500b1dc5b
Additional check for predecessors.
I don't think that `not promises[s].hasFollowOn(wfjob)` was doing what it was supposed to do. Resolves #3408. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Additional check for predecessors.
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index 3496edf75f..a2d60246f6 100755 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -92,7 +92,7 @@ from toil.common import Config, Toil, addOptions from toil.fileStores import FileID from toil.fileStores.abstractFileStore import AbstractFi...
3
3
1
[{"id": "G0", "claim": "The pull request silently ignores ConflictingPredecessorError when adding a follow-on, and it is unexplained whether that error is safe to ignore there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new ConflictingPredec...
null
DataBiosphere__toil__3437
DataBiosphere/toil
3,437
defect
8f9c457ce9aebed6c2b143296dba9bc9a544760a
aa585212b27c12fab2c2abc828279fa0b3fe0606
Only determine execute permissions on files we copy/move.
Resolves #3433 . @ionox0 Could you please test this to see if it fixes your problem? I had trouble reproducing the original issue, so if you had a reproducible test workflow that would be appropriate here, I'd be grateful. I moved setting the execute bit from the filestores to the jobstores. This allows the file...
diff --git a/src/toil/fileStores/abstractFileStore.py b/src/toil/fileStores/abstractFileStore.py index b7d970b707..2fa65fdb55 100644 --- a/src/toil/fileStores/abstractFileStore.py +++ b/src/toil/fileStores/abstractFileStore.py @@ -23,7 +23,7 @@ from toil.common import cacheDirName from toil.fileStores import FileID...
4
4
1
[{"id": "G0", "claim": "The new executable-bit handling on linked imports is wrong: Toil should not chmod files it did not create (chmod via symlink reaches someone else's file and needs no metadata change on the link), and the try/except fallback to hardlinking and copying will try and fail to chmod, or copy, every li...
null
DataBiosphere__toil__3475
DataBiosphere/toil
3,475
defect
50688a79d86a37981f8faca80e87105d6ad0a351
4afb84177e925652cd847f561b9cdb120e6edd0e
Lsf command parser
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: When the word "Command" is trucked, it cannot be parsed. As a result, `logger.info` reports the entire (unnecessary for `INFO` level) content of `bjobs` to the file. ## Reviewer Checkl...
diff --git a/src/toil/batchSystems/lsf.py b/src/toil/batchSystems/lsf.py index 39ba0478f8..5b85c13d57 100644 --- a/src/toil/batchSystems/lsf.py +++ b/src/toil/batchSystems/lsf.py @@ -294,7 +294,7 @@ def parseMaxMem(self, jobID): bjobs = subprocess.check_output(memargs, universal_newlines=True) ...
2
2
2
[{"id": "G0", "claim": "The parsing change should be justified with a real `bjobs` output showing the issue it handles and covered by a unit test, which would require refactoring the bjobs output parsing into its own function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
DataBiosphere__toil__3513
DataBiosphere/toil
3,513
defect
93f24570c023c2516539e4070366f9e0fd4afd4d
f5a432e71b90998c6170f01f12523b08147d317e
Use back-up flatcar AMI if not found.
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Use back-up flatcar AMI if not found. ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [x] Make sure it is coming from `issues/XXXX-fix...
diff --git a/src/toil/lib/ec2.py b/src/toil/lib/ec2.py index 5f6aabd5eb..55453e1a9e 100644 --- a/src/toil/lib/ec2.py +++ b/src/toil/lib/ec2.py @@ -1,4 +1,7 @@ import boto3 +import os +import urllib.request +import json import logging import re import time @@ -24,7 +27,8 @@ a_short_time = 5 a_long_time = 60 * 60...
3
3
1
[{"id": "G0", "claim": "The word 'klist' in the comment '# Scan the klist of regions' is misspelled (should be 'list') and the reviewer asks that it be fixed.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The reviewer is unsure whether the 'Fla...
null
DataBiosphere__toil__3577
DataBiosphere/toil
3,577
defect
fb191554f5bf003f6a429c849da2382a3d901b31
afd0b52d3362091414f3e48ea2e7c4880529d85a
Add Owner tags to our AWS buckets when testing.
We have a new coworker, Murder Bot, who is going to kill all AWS buckets without this tag and this PR will save them. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Add Owner tags to our AWS buckets when testing. ## Reviewer C...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a525b5338c..72670f5e56 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ image: quay.io/vgteam/vg_ci_prebake:latest variables: PYTHONIOENCODING: "utf-8" DEBIAN_FRONTEND: "noninteractive" + SET_OWNER_TAG: "toil-shared-ci@ucsc.edu" before_script...
4
4
3
[{"id": "G0", "claim": "The owner tag value 'toil-shared-ci@ucsc.edu' is an e-mail that isn't a real IAM user, so it should not be used; a shared bucket should be tagged with an Owner of 'shared' (and test buckets owned by a real person).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
DataBiosphere__toil__3629
DataBiosphere/toil
3,629
defect
2b45148ff07556044d5daf99d7e3057d13c60694
083cf0230d3a98d4facdda93c5f52b237ba50a0c
Clean up docker containers by default
Make sure Toil removes the docker containers after they are finished running, so we don't have a bunch of "Exited" Docker containers. Closes #3505. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Clean up docker containers by ...
diff --git a/src/toil/lib/docker.py b/src/toil/lib/docker.py index 2f5f565f4c..c58ff95139 100644 --- a/src/toil/lib/docker.py +++ b/src/toil/lib/docker.py @@ -59,8 +59,8 @@ def apiDockerCall(job, entrypoint=None, detach=False, log_config=None, - ...
12
9
3
[{"id": "G0", "claim": "Decoding the streamed container output to text will raise an error when a container sends non-UTF8 data; the bytes should be passed along in binary mode instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new removal ...
null
DataBiosphere__toil__3720
DataBiosphere/toil
3,720
defect
88db778b3917de4c92e5749c1072ae4ea3da1eea
3270abd63576eb45973bc44da736e7cab2cef40f
Turn on all Kubernetes CWL tests that are expected to work on Singularity
This is an alternative to #3719 and will fix #3542 through #3564 if it passes the CWL 1.2 Kubernetes conformance tests consistently. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Kubernetes batch system now tested for as much c...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8afe998ae1..2fa0e02550 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -174,7 +174,8 @@ cwl_v1.2_kubernetes: - export TOIL_WORKDIR=/var/lib/toil - export SINGULARITY_CACHEDIR=/var/lib/toil/singularity-cache - mkdir -p ${TOIL_WORKDIR} - - make test...
3
2
1
[{"id": "G0", "claim": "Test 175 (Docker ENTRYPOINT usage) fails on the Kubernetes CWL conformance run under Singularity because cwltool is not invoking Singularity correctly, and the author asks whether cwltool is expected to pass this test with --singularity.", "category": "correctness", "verdict": "supported", "prio...
null
DataBiosphere__toil__3727
DataBiosphere/toil
3,727
defect
4f973e4e13a9758eb77633f7730cec9a4b372537
a320971cea62fdc1d774bb44070e9f171efc79c0
Add AWS provisioner storage system
Closes #3714. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Add storage system to the AWS provisioner ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [x] Make sure it is coming...
diff --git a/src/toil/provisioners/__init__.py b/src/toil/provisioners/__init__.py index 6862cd63c8..5835bc3d69 100644 --- a/src/toil/provisioners/__init__.py +++ b/src/toil/provisioners/__init__.py @@ -123,6 +123,7 @@ def parse_node_types(node_type_specs: Optional[str]) -> List[Tuple[Set[str], Opt return parsed...
7
6
1
[{"id": "G0", "claim": "The GCE provisioner lacks an implementation of the new cloud-storage system (its override just raises NotImplementedError), which the author says is not needed for Ignition configs but the reviewer argues should exist since the GCE provisioner ought to support Kubernetes clusters.", "category": ...
null
DataBiosphere__toil__3739
DataBiosphere/toil
3,739
defect
18ae10bf2743c04646e828b44aab97d18c925a97
b729e9989f3fa775a0be4e1c1bc4d93b58392cbc
Set number of cores based on job.cores for OpenMP applications
Attempts to fix #3573. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Add per-job environment variables to batch systems & set number of cores based on `job.cores` for OpenMP applications ## Reviewer Checklist <!-- To be ke...
diff --git a/src/toil/batchSystems/abstractBatchSystem.py b/src/toil/batchSystems/abstractBatchSystem.py index a97f4f8220..478adbede9 100644 --- a/src/toil/batchSystems/abstractBatchSystem.py +++ b/src/toil/batchSystems/abstractBatchSystem.py @@ -110,11 +110,13 @@ def setUserScript(self, userScript): raise Not...
5
4
2
[{"id": "G0", "claim": "Eventually the items in waitingJobs should be upgraded to a NamedTuple or something similar instead of a growing plain tuple unpacked into six fields.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OMP_NUM_THREADS var...
null
DataBiosphere__toil__3822
DataBiosphere/toil
3,822
defect
e9cfc6b0fa631b233afe1b26cc30763c1150ee58
cec9e5ccb837a77e11a56f2c0e9706c19a1d143f
Issues/3775 coalesce status calls slurm
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * The `SlurmBatchSystem.Worker` now knows how to coalesce status calls (issue #3775). This significantly reduces the load on the Slurm accounting and control system. ## Reviewer Checkl...
diff --git a/src/toil/batchSystems/slurm.py b/src/toil/batchSystems/slurm.py index a0e4bfaa62..d198cefdad 100644 --- a/src/toil/batchSystems/slurm.py +++ b/src/toil/batchSystems/slurm.py @@ -72,98 +72,187 @@ def submitJob(self, subLine): logger.error("sbatch command failed") raise e ...
2
2
2
[{"id": "G0", "claim": "The sacct parser maps every output record onto the main job ID (job steps are no longer skipped), so a later job-step or extern record with a success state (e.g. 785040.exte+ COMPLETED) clobbers the main job's earlier FAILED state, and should-fail jobs are never reported as failed but keep being...
null
DataBiosphere__toil__3936
DataBiosphere/toil
3,936
defect
c299a06fbbe67e4729a3bfcb33f66b9a5b324e69
7932c534c6f1c6abb7e1c66324f61701398d6344
Assign Kubernetes jobs an explicit TTL to save them from cluster cleanup scripts until we can get to them
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * ~Kubernetes batch system logs running pods periodically when nothing is finished.~ * `--statusWait` option now exists to control frequency of the running/issued jobs message. * Non-...
diff --git a/docs/running/cliOptions.rst b/docs/running/cliOptions.rst index 60e1633691..9b9e5bbbc2 100644 --- a/docs/running/cliOptions.rst +++ b/docs/running/cliOptions.rst @@ -331,6 +331,8 @@ the logging module: --debugWorker Experimental no forking mode for local debugging. Speci...
3
1
0
[{"id": "G0", "claim": "The reviewer asks where the newly added --statusWait option is actually used, its usage not being evident from the change.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The finished_job_ttl assignment should carry a commen...
null
DataBiosphere__toil__4038
DataBiosphere/toil
4,038
defect
5e9363df75e59f7c7d9b0e786b0a0f0089a23521
18205f0fa35cdc44fe6b9157a7a5660ed43b715c
Add CWL tests under ARM
Should fix #3890. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * PR submitter writes their recommendation for a changelog entry here ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> ...
diff --git a/src/toil/test/cwl/cwlTest.py b/src/toil/test/cwl/cwlTest.py index 209949876e..363b38e2c9 100644 --- a/src/toil/test/cwl/cwlTest.py +++ b/src/toil/test/cwl/cwlTest.py @@ -12,6 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language go...
7
6
2
[{"id": "G0", "claim": "Several fields copied into the new CWLOnARMTest class (dataDir, for example) are unused there and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test class duplicates sshUtil and the surrounding...
null
DataBiosphere__toil__4059
DataBiosphere/toil
4,059
defect
e830610e08ebf43ff4268ea30c53493fcd297b9c
caf1f3b6e571057af1bdf67e03587c1eb7853266
Reorganize Locking
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Toil now has a "coordination" directory, under /var/run if possible, for keeping lock files away from NFS. ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/ch...
diff --git a/docs/running/cliOptions.rst b/docs/running/cliOptions.rst index a2fd731c80..ff7ddbea12 100644 --- a/docs/running/cliOptions.rst +++ b/docs/running/cliOptions.rst @@ -182,7 +182,8 @@ the logging module: As long as caching is enabled Toil will protect the fil...
4
4
0
[{"id": "G0", "claim": "The docstring of get_local_workflow_coordination_dir misspells 'located' as 'locared'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring of get_local_workflow_coordination_dir misspells 'These' as 'THese'.", "cat...
null
DataBiosphere__toil__4084
DataBiosphere/toil
4,084
defect
a98acdb5cbe0f850b2c11403d147577d9971f4e1
360a46ab681f77053eb7aa60b558f37ca5f2da2d
Make `toil kill` work when the leader is on another machine
Closes #3917. We decided that it is not worth it to have every worker constantly poll the job store and self-terminate, since that could create too many requests to S3 or google storage (if using a cloud job store) and most of the time the leader is able to clean up all its jobs. ## Changelog Entry To be copied to...
diff --git a/docs/running/cliOptions.rst b/docs/running/cliOptions.rst index ff7ddbea12..2908f01cc6 100644 --- a/docs/running/cliOptions.rst +++ b/docs/running/cliOptions.rst @@ -364,6 +364,10 @@ the logging module: (default=3600) --disableProgress Disables the progress bar shown when st...
5
4
0
[{"id": "G0", "claim": "The kill flag should be encapsulated as reusable write/read functions (with a kill=True/False parameter) rather than typing the flag-writing code inline, placed on the job store (public, without leading underscores) since `toil kill` has no Leader instance.", "category": "maintainability", "verd...
null
DataBiosphere__toil__4085
DataBiosphere/toil
4,085
defect
8260051080bacd941202c1b4168b0aa3e19c851b
130fe6378f1407201e5457470bc4781f3bdd973d
Issues/3514 missing permission warning aws
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: Add code for warning check to be used when launching cluster with AWS. ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make sure it i...
diff --git a/.gitignore b/.gitignore index e4e2b1abb9..5be2e55dd4 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ __pycache__ .idea/ /test-report.xml /test-report-*.xml -venv/ +venv* v3nv/ tmp/ /src/toil/test/cwl/spec* diff --git a/contrib/admin/mypy-with-ignore.py b/contrib/admin/mypy-with-ignore.py i...
45
42
11
[{"id": "G0", "claim": "The commented-out 'src/toil/lib/aws/iam.py' entry in the mypy ignore list should not be added.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The permission helper should simply 'return flag' instead of the if/else that r...
null
DataBiosphere__toil__4198
DataBiosphere/toil
4,198
defect
79bb5964951d202464b00c5a6c42e00575b143b0
5a1df2818499841c7355ede4df94c8d2ab5593b0
Handle not actions, update tests to ensure this
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: Update aws permission check to handle "NotActions" included in policy documents. ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make...
diff --git a/src/toil/lib/aws/iam.py b/src/toil/lib/aws/iam.py index 456aa5d476..365f002342 100644 --- a/src/toil/lib/aws/iam.py +++ b/src/toil/lib/aws/iam.py @@ -10,14 +10,14 @@ from mypy_boto3_iam import IAMClient from mypy_boto3_sts import STSClient -from mypy_boto3_iam.type_defs import GetRolePolicyResponseType...
5
5
0
[{"id": "G0", "claim": "The docstrings should be rewritten to explain the concept of Actions and NotActions (what an action collection is, that the collection describes the permissions granted across all attached policy documents, and what a NotAction matches) instead of the current thin one-liners.", "category": "docu...
null
DataBiosphere__toil__4299
DataBiosphere/toil
4,299
defect
a1e4a4c44507ebe0af5523b215a90949b1e089e9
d91f254cd69a83b5e8ff62673005dfba06151179
Issues/4218 non cache default
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: Add a --caching option which explicitly states whether to use caching with a workflow, sets a default value depending on whether or not we are using the file job store if not specified. ...
diff --git a/docs/running/cliOptions.rst b/docs/running/cliOptions.rst index 8ebc67c2e4..a2ce605608 100644 --- a/docs/running/cliOptions.rst +++ b/docs/running/cliOptions.rst @@ -433,6 +433,9 @@ systems have issues!). **Miscellaneous Options** + --caching BOOL Set caching options. This must be set to FALSE...
3
2
1
[{"id": "G0", "claim": "The new --caching flag uses type=bool, which cannot turn caching off because bool('FALSE') is True, so parsing should use a strtobool-based converter as in the suggested block.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "I...
null
DataBiosphere__toil__4396
DataBiosphere/toil
4,396
defect
bda18c597a3e234ac819af290d0d7f9ddd08fdb6
19145bd2f2cd1cdaeb970edae63f3de50ad49a94
Robustify HTCondor
This fixes #4363 and adds proper job environment support to HTCondorBatchSystem, so it will work again. It also adds retry support and some locking around connecting to `schedd`, so only one Toil thread will try to do it at a time, and they can cope with other concurrent users of the scheduler. There's still no HTCo...
diff --git a/src/toil/batchSystems/abstractGridEngineBatchSystem.py b/src/toil/batchSystems/abstractGridEngineBatchSystem.py index 24be33ba69..158bec9b22 100644 --- a/src/toil/batchSystems/abstractGridEngineBatchSystem.py +++ b/src/toil/batchSystems/abstractGridEngineBatchSystem.py @@ -17,23 +17,34 @@ from datetime im...
5
1
1
[{"id": "G0", "claim": "Reviewing the pull request is hampered by missing and unchecked type annotations on its changed worker methods, which left the reviewer confused enough to start fixing the types outside the pull request.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introdu...
null
DataBiosphere__toil__4409
DataBiosphere/toil
4,409
defect
dc7d7da1e5279c6aa27c19c16da86730b294f8ad
61307c223d6a72e6d515068e11148960be6552b3
Start running some WDL conformance tests
This will sort of fix #4351 by adding some WDL conformance tests to Toil's test suite. Right now I am pulling from https://github.com/adamnovak/wdl-conformance-tests which is forked from Lon's version. I can't fork it into `DataBiosphere` next to Toil unfortunately. The conformance test set only has a few tests i...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ff1d995ba..d19c812227 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -271,6 +271,12 @@ wdl: - make test tests=src/toil/test/wdl/wdltoil_test.py - which java &> /dev/null || { echo >&2 "Java is not installed. Install java to run these tests."; exit 1; }...
8
5
1
[{"id": "G0", "claim": "The AWSJobStoreTest.testMultiThreadImportFile failure suggests the test may be making unsupported multi-threaded calls into a single Boto3 client.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new CI WDL conformance-te...
null
DataBiosphere__toil__4413
DataBiosphere/toil
4,413
defect
36b54c45e8554ded5093bcdd03edb2f6b0d93887
4bdc1a95aeeb08077a9893a847af77550e06292c
Update docs to hide Mesos
Closes #4354. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Update docs to hide Mesos ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make sure it is coming from `issues/...
diff --git a/docs/running/cloud/cloud.rst b/docs/running/cloud/cloud.rst index 65cd6cc617..645cc1bcf8 100644 --- a/docs/running/cloud/cloud.rst +++ b/docs/running/cloud/cloud.rst @@ -7,9 +7,11 @@ Running in the Cloud Toil supports Amazon Web Services (AWS) and Google Compute Engine (GCE) in the cloud and has autoscali...
5
5
1
[{"id": "G0", "claim": "The readthedocs build is failing after #4361: the build steps need to include the new autoapi dependency, and the actual build still uses an old Sphinx while requirements-dev.txt pins sphinx>=4,<6.", "category": "build", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": ...
null
DataBiosphere__toil__4487
DataBiosphere/toil
4,487
defect
17fa1890050960461c1102b56465fb46a8eed34a
abf65be8b80f1e895cd23d0932b2f6358e185ce1
Fix cwl runner not grabbing --linkImports from config
Also added unit test for testing --linkImports ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * PR submitter writes their recommendation for a changelog entry here ## Reviewer Checklist <!-- To be kept in sync with docs/contr...
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index c8ff70202b..95386c626c 100644 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -1473,7 +1473,7 @@ def write_to_pipe( pipe_threads_real.append((th, os.open(src_path, os.O_RDONLY))) else: src_path = file_...
3
3
2
[{"id": "G0", "claim": "--linkImports should not control whether files read out of the job store in write_to_pipe get symlinked (symlink=file_store.jobStore.config.linkImports); the flag is meant for initially-imported files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
DataBiosphere__toil__4505
DataBiosphere/toil
4,505
defect
919a7dcac11cbbe632fd395ea475776a8ebfe2c4
fda87f50910324de2e0f55f2c5fbef83ab42339c
Grab AWS group policies on top of user
Resolves possible AWS group permissions issue from #4485 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Grab AWS group policies associated with a user and add a unit test for collecting AWS permissions ## Reviewer Checklist ...
diff --git a/src/toil/lib/aws/iam.py b/src/toil/lib/aws/iam.py index f8a3b5dd5f..d314176fad 100644 --- a/src/toil/lib/aws/iam.py +++ b/src/toil/lib/aws/iam.py @@ -232,6 +232,16 @@ def get_policy_permissions(region: str) -> AllowedActionCollection: user_inline_policies = allowed_actions_users(iam, list_policies...
1
1
1
[{"id": "G0", "claim": "The group policy fetching in get_policy_permissions should be generalized into a new allowed_actions_groups helper that reads inline group policies from the group (instead of calling allowed_actions_users with the user name), and tests should be added for it with Moto.", "category": "correctness...
null
DataBiosphere__toil__4604
DataBiosphere/toil
4,604
defect
15763af711b2b5d652c0fd9a46dad9dcb7e98feb
7eb57829e9827027be8616faa4b67104f15b39d5
Reenable some Kubernetes CI tests
#4601 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Reenable Cactus on Kubernetes test on CI ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make sure it is coming from `is...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 975063a995..13d29a851f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -382,31 +382,31 @@ mesos: - make test threads="${TEST_THREADS}" src/toil/test/src/promisedRequirementTest.py::MesosPromisedRequirementsTest # Cactus-on-Kubernetes integration (as a scrip...
1
1
1
[{"id": "G0", "claim": "The cactus_integration job assumes it is running somewhere with access to a Kubernetes cluster via ~/.kube/config or other credentials, and needs to be rewritten to launch its own cluster with toil launch-cluster and run the cactus installation and execution on that cluster (as the CWL on ARM te...
null
DataBiosphere__toil__4618
DataBiosphere/toil
4,618
defect
b73b9ef53eb914dbd7dbf86c8666c8a572e2eb28
33cc57a7b22207259ed779e660fb3c3624a0a74b
Fix configargparse in CWL
This resolves #4615. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Fix config file support for CWL ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make sure it is coming from ...
diff --git a/contrib/mypy-stubs/configargparse/configargparse.pyi b/contrib/mypy-stubs/configargparse/configargparse.pyi index 1094e9e30a..47cea93032 100644 --- a/contrib/mypy-stubs/configargparse/configargparse.pyi +++ b/contrib/mypy-stubs/configargparse/configargparse.pyi @@ -21,10 +21,14 @@ class YAMLConfigFileParse...
5
4
2
[{"id": "G0", "claim": "Instead of allowing unknown options in the config file and having completely separate config files for normal, WDL, and CWL, the PR should use one config file with all the base options plus CWL-only and WDL-only config files loaded together in CWL/WDL mode, making the parser accept all and only ...
null
DataBiosphere__toil__4682
DataBiosphere/toil
4,682
defect
dbba7bad6d05a35e83ab28a34279578dcd6e9c04
6ae4546d315484174938f662c4b3fdae0720acd4
Support CWL 1.2.1
This resolves #4570 and should let the new CWL tests to pass on CI. It doesn't deal with 2 of the tests though as they rely on InplaceUpdateRequirement, and cwltoil [doesn't seem to support](https://github.com/DataBiosphere/toil/blob/dbba7bad6d05a35e83ab28a34279578dcd6e9c04/src/toil/cwl/cwltoil.py#L3134-L3139) that as ...
diff --git a/src/toil/common.py b/src/toil/common.py index 9653e02f89..6b718b0a74 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -50,7 +50,7 @@ Union, cast, overload) -from urllib.parse import urlparse +from urllib.parse import urlparse, unquot...
4
4
2
[{"id": "G0", "claim": "The format_output function munges the output object to match cwltool and make particular conformance tests pass instead of fixing the root issue; the output only needs to pass the comparison functions in cwltest, and operations like removing nameroot/nameext are unexplained.", "category": "desig...
null
DataBiosphere__toil__4824
DataBiosphere/toil
4,824
defect
78fe93db1f10fb7ba77db90694549fecc0f6470d
ddb4f2c10a58274bc3e0471f41b8800d1ec266cb
Enable FUSE for privileged Toil clusters
This should close #4806 This is also related to #4807 The Dockerfile pulls from Github releases for now, but I will change it to a Debian mirror once the package managers get around to updating Singularity. I think the namespace rules might not be needed now from my basic testing. My guess is the new version of ...
diff --git a/Makefile b/Makefile index f519203032..424c48acb9 100644 --- a/Makefile +++ b/Makefile @@ -169,7 +169,7 @@ define tag_docker @printf "$(green)Tagged appliance image $1 as $2.$(normal)\n" endef -docker: toil_docker prometheus_docker grafana_docker mtail_docker +docker: toil_docker toil_docker: docker...
10
8
2
[{"id": "G0", "claim": "The `docker` make target should still build the prometheus, grafana and mtail images instead of only toil_docker.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The per-version python_packages dict could be simplified to f'{p...
null
DataBiosphere__toil__4828
DataBiosphere/toil
4,828
defect
0446fe285fe57a3d920d4b5a30d00f2a5aa8589c
f84613270ae532d0761c36d51331b2b9dc31c581
Add colored logging
This will close #4827 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Add colored logging to Toil * Added a new option `--no-color` to disable colored logging ## Reviewer Checklist <!-- To be kept in sync with docs/cont...
diff --git a/docs/running/cliOptions.rst b/docs/running/cliOptions.rst index 50295da99c..7267f7b2d4 100644 --- a/docs/running/cliOptions.rst +++ b/docs/running/cliOptions.rst @@ -172,6 +172,8 @@ levels in toil are based on priority from the logging module: Sets the maximum log file size in byte...
5
5
4
[{"id": "G0", "claim": "The format string drops the level name and relies on colors alone to convey log level, which fails for color-blind users, copied logs, CI raw log views, and text search.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The --no-colo...
null
DataBiosphere__toil__4839
DataBiosphere/toil
4,839
defect
f1abdfc7b855031aed2917a531df9e8e8217cb9f
0de941d985b2f6556da8bb14eedd1ec8220d515e
Improve exception handling to not output tracebacks
This should close #1704 Some of the things in the github issue no longer are applicable or were fixed later: `Jobs "end successfully" even when they fail:` This message has since been changed to be "Job has ended," rather than "Job ended successfully". There is existing logic to test whether the job has failed or...
diff --git a/src/toil/common.py b/src/toil/common.py index 85d3842c04..70e278710d 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -885,6 +885,16 @@ def start(self, rootJob: "Job") -> Any: """ self._assertContextManagerUsed() + from toil.job import Job + + # Check that the r...
5
5
1
[{"id": "G0", "claim": "The test in src/toil/test/cwl/cwlTest.py expects exceptions to propagate out of cwltool.main to make sure failing things fail, and may need to be replaced with subprocess calls.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It i...
null
DataBiosphere__toil__4873
DataBiosphere/toil
4,873
defect
068717e616824720d99e7f223dfb326cfd4dfb11
f66d62414a02de9357f0ed08805178187cdeb735
Detect if the GridEngine worker thread has crashed to prevent hanging the workflow
Resolves #4856 A failed `sbatch` command would cause the background thread (used to be called worker) to crash and die, hanging the entire workflow as there was no logic to detect that the thread is now gone, and python's `Threads` doesn't carry through exceptions. The `squeue` commands being reported is due to ...
diff --git a/src/toil/batchSystems/abstractGridEngineBatchSystem.py b/src/toil/batchSystems/abstractGridEngineBatchSystem.py index a0cd5e6bb0..ff0f4fa8a8 100644 --- a/src/toil/batchSystems/abstractGridEngineBatchSystem.py +++ b/src/toil/batchSystems/abstractGridEngineBatchSystem.py @@ -12,6 +12,7 @@ # See the License ...
5
4
1
[{"id": "G0", "claim": "The new except clause in killBatchJobs should probably use the shorter already-imported name `Empty` instead of `queue.Empty`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added `import queue` is redundant bec...
null
DataBiosphere__toil__4908
DataBiosphere/toil
4,908
defect
9444abb61e3462e17b9659a1f3727cf721d87eda
746193f4ca4ac99416e14ea4bf8c9c6d17b848a4
Fix 3.8 backport.timezone import
CI is breaking since #4890 had a backport for timezone that miscompared the python version. This also removes a dead comment from `requirements.txt`. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: Just a small fix ## Reviewer Check...
diff --git a/requirements.txt b/requirements.txt index 4508b8ef1a..8f5029dc67 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ dill>=0.3.2, <0.4 requests>=2, <3 docker>=6.1.0, <8 -# Work around https://github.com/docker/docker-py/issues/3113 urllib3>=1.26.0,<3 python-dateutil psutil >= 3.0.1, ...
1
1
0
[{"id": "G0", "claim": "`Literal` is available in Python 3.8, the minimum supported version, so its import can be pulled out of the sys.version_info check and the matching import from typing_extensions removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
DataBiosphere__toil__5001
DataBiosphere/toil
5,001
defect
7a675a56107c7f7122acee3ecddddda457b04f85
0c131e0add48b3b1e1a42c93650f66d806c54cc2
Support more methods of WDL task disk specification
Closes #4995 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Support WDL disk specification as per 1.1 spec ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make sure it is comi...
diff --git a/src/toil/wdl/wdltoil.py b/src/toil/wdl/wdltoil.py index 7649c6ad82..dae90c6dc1 100755 --- a/src/toil/wdl/wdltoil.py +++ b/src/toil/wdl/wdltoil.py @@ -1747,40 +1747,71 @@ def run(self, file_store: AbstractFileStore) -> Promised[WDLBindings]: memory_spec = human2bytes(memory_spec) ...
7
4
3
[{"id": "G0", "claim": "The mount-point feature (including the new host-path existence check and mounting specific host paths into the container) does not match the WDL spec's intent for persistent volumes, and clarification from the WDL spec authors and MiniWDL support should be obtained before implementing it this wa...
null
DataBiosphere__toil__5019
DataBiosphere/toil
5,019
defect
ee4ea557c91f56d8966cc087f5b47d6769d04f02
0adf0e9fbc9c56460c974de0c55097fd4cab84f0
Separate out create/delete iam role functions into lib.
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Separate out create/delete iam role functions into lib. ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist.rst --> * [ ] Make sure it is coming fro...
diff --git a/contrib/admin/cleanup_aws_resources.py b/contrib/admin/cleanup_aws_resources.py index e626d0e4f4..1fb63c8f87 100755 --- a/contrib/admin/cleanup_aws_resources.py +++ b/contrib/admin/cleanup_aws_resources.py @@ -22,7 +22,8 @@ from src.toil.lib import aws from src.toil.lib.aws import session -from src.toi...
3
3
0
[{"id": "G0", "claim": "delete_iam_role should have a docstring (replacing the misplaced TODO comment about Boto3 type hints).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "create_iam_role should also have a docstring.", "category": "documentatio...
null
DataBiosphere__toil__5046
DataBiosphere/toil
5,046
defect
7d4d0749e9f5ffcc2a4507e13e940e46400a020d
8063eb0f2565219326d18c88e944c43fc2ed5e86
Name WDL output files in a human-readable way
This fixes #5008 by cramming WDL task names into the encoded Toil file URIs, along with the UUIDs that identify source directories. When we make a directory to hold the files from a given UUID, we will name it after the task (or workflow) that uploaded the files. If I run: ``` toil-wdl-runner src/toil/test/wdl/min...
diff --git a/src/toil/test/wdl/wdltoil_test.py b/src/toil/test/wdl/wdltoil_test.py index f92b405d60..b0e749d3c0 100644 --- a/src/toil/test/wdl/wdltoil_test.py +++ b/src/toil/test/wdl/wdltoil_test.py @@ -2,6 +2,7 @@ import os import re import shutil +import string import subprocess import unittest from uuid import...
4
3
0
[{"id": "G0", "claim": "The new task_path docstring misspells \"workflow\" as \"wrokflow\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The share_files_with docstring reads as if the parameter were a bool and should be more descriptive.", "cate...
null
DataBiosphere__toil__5052
DataBiosphere/toil
5,052
defect
4f120ac752f24d7ffe9df4bdcc5c28a1824ca7ae
e6f42cf18a2298f613f3d69c9e8aebd7fbbbdad6
Allow CWL workflows to have jobs use all of a Slurm node's memory
This should fix #4971. Instead of `--defaultMemory 0`, to run CWL jobs that lack their own `ramMin` with a full Slurm node's memory, you would now pass `--no-cwl-default-ram --slurmDefaultAllMem=True`. This might cause some new problems: - Other internal CWL runner jobs that expected to use the default memory would...
diff --git a/docs/appendices/environment_vars.rst b/docs/appendices/environment_vars.rst index e214d3125b..5e388e2eb5 100644 --- a/docs/appendices/environment_vars.rst +++ b/docs/appendices/environment_vars.rst @@ -131,6 +131,9 @@ There are several environment variables that affect the way Toil runs. | TOIL_GOOGLE_PRO...
7
7
0
[{"id": "G0", "claim": "The TOIL_SLURM_ALLOCATE_MEM docs row misspells \"allocate\" as \"akllocate\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TOIL_SLURM_TIME docs give no example value and no link to the Slurm docs, so the format is har...
null
DataBiosphere__toil__5103
DataBiosphere/toil
5,103
defect
716eb1bd4131c8e817d54d4097532c75a34eff07
9a6612a5391fbf9b8e4d153b80508ac6df3a5491
Support importing on workers in WDL
Mirrors #5025 to the WDL side too ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Added support to import files on workers for toil-wdl-runner ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklist...
diff --git a/src/toil/options/wdl.py b/src/toil/options/wdl.py index 09d6a9ecfe..b4b4baf13b 100644 --- a/src/toil/options/wdl.py +++ b/src/toil/options/wdl.py @@ -1,6 +1,7 @@ from argparse import ArgumentParser from configargparse import SUPPRESS +from toil.lib.conversions import human2bytes def add_wdl_option...
6
5
1
[{"id": "G0", "claim": "The changelog entry should name `toil-wdl-runner` instead of whatever runner it currently names.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The new WDL options should not have the `--kebab-case` forms (no other WDL-side op...
null
DataBiosphere__toil__5105
DataBiosphere/toil
5,105
defect
4f120ac752f24d7ffe9df4bdcc5c28a1824ca7ae
76c572387586ee2ed1e44486cc583c9a950d4de8
Support WDL call caching
This adds support for WDL call caching compatible with MiniWDL, controlled by the same MiniWDL config/environment variables as MiniWDL uses. This should fix #4797. It only caches task calls, and the `write_*` WDL function results necessary to have calls that depend on workflow-generated files. It copies all outpu...
diff --git a/src/toil/batchSystems/abstractGridEngineBatchSystem.py b/src/toil/batchSystems/abstractGridEngineBatchSystem.py index 24bd4bb4fb..da6a9a790a 100644 --- a/src/toil/batchSystems/abstractGridEngineBatchSystem.py +++ b/src/toil/batchSystems/abstractGridEngineBatchSystem.py @@ -25,6 +25,7 @@ from toil.batchSys...
6
4
3
[{"id": "G0", "claim": "The change also needs to support caching calls to whole workflows, because building a cached result from the output tasks' files yields different paths (that symlink to the same files) and prevents re-using MiniWDL cached calls that depend on files from the called workflow.", "category": "correc...
null
DataBiosphere__toil__5187
DataBiosphere/toil
5,187
defect
fe9a811254dab31b1f5e562d992127e1c71c9554
7d52d00580e8797c043d3533d865b832be9a2bde
Add caching support for CWL
Resolves #4298 Adds support for the cwltool equivalent `--cachedir`. This should make toil-cwl-runner be cache aware and use previous steps when possible and properly restart when there are new. This is different than the `--restart` flag. Jobs *previously* ran with `--cachedir` can rerun with `--cachedir` and not ...
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index 176aa5e50b..53f04778cc 100644 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -4177,8 +4177,12 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int: runtime_context.move_outputs = "leave" runtime_c...
7
4
1
[{"id": "G0", "claim": "With --cachedir, 134 of the CWL v1.2 conformance tests fail (still 127-128 after the first fixes) although they pass without --cachedir.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Two CWL v1.2 conformance tests fail with ...
null
DataBiosphere__toil__5188
DataBiosphere/toil
5,188
defect
26b6b3ac9e917c963eefec9f60acbfbff5e670b3
e886b66ae4e6c095a35ae107072519660500dd05
CWL: Fix --no-container & prepull
I hit this bug while testing #5187 on a system that had podman but not docker. ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * - CWL container prepull: no reason to if extensions are enabled, they are now supported by cwl-util...
diff --git a/requirements-cwl.txt b/requirements-cwl.txt index a12220702e..e506d444a7 100644 --- a/requirements-cwl.txt +++ b/requirements-cwl.txt @@ -6,4 +6,4 @@ ruamel.yaml>=0.15,<=0.19 ruamel.yaml.clib>=0.2.6 networkx!=2.8.1,<4 CacheControl[filecache] -cwl-utils>=0.32 +cwl-utils>=0.36 diff --git a/src/toil/cwl/cw...
1
1
1
[{"id": "G0", "claim": "test_run_revsort_no_container should call self.revsort instead of self.revsort_no_checksum, because the test does not tell the workflow not to compute checksums, so it needs to run with checksumming.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataBiosphere__toil__5219
DataBiosphere/toil
5,219
defect
ff61d6c94bfce9f41ac55db1b32ebf7ace06a728
d2ea65a70d40bc5ec6879cce9fb5a80460c09d0a
Add CWL badges
I think this may cause issues when making releases of Toil, as those docs will point to the same badges on master. I've been playing around with sphinx extensions like sphinx.ext.extlinks, but extlinks are only supported for replacing "raw" text, and not target urls for images: https://stackoverflow.com/questions/6616...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d03164a4b8..1a5d1982aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -282,6 +282,37 @@ cwl_v1.2: when: always expire_in: 14 day +cwl_badge: + rules: + - if: $CI_PIPELINE_SOURCE == "schedule" + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH =...
5
5
2
[{"id": "G0", "claim": "Setting expire_in: 365 day on the badge artifacts would make the badge JSONs for old releases expire a year after the release, so maybe the PR should not try to serve badges for old releases that way.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
DataBiosphere__toil__5227
DataBiosphere/toil
5,227
defect
47f3a3337ceaf7b393ded2ac4fe49bb84d74aff3
17b9042a9b7e22e0748484daca01d4ddcc123406
Add MiniWDL's lint checking to toil-wdl-runner
Closes #4630 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Added lint checking to toil-wdl-runner * Use `--strict=True` to error on lint warnings ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/ch...
diff --git a/src/toil/common.py b/src/toil/common.py index 4cc37fb2d3..5e4b86d9da 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -781,7 +781,7 @@ def check_arguments(typ: str) -> None: :param typ: string of either "cwl" or "wdl" to specify which runner to check against :return: None, rais...
8
7
1
[{"id": "G0", "claim": "The new test_check inconsistently handles subprocess output — decoding one run's stderr to str while checking the other's output in binary — and should handle both the same way.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
DataBiosphere__toil__5228
DataBiosphere/toil
5,228
defect
ec324a7c180b7d0efd0cc55ba58ce4725d0f31bb
65efcd9c4bf0ace3cda9df4c6390ad2730d71b05
Delete files that will longer be accessible at the end of workflows and tasks
This will fix part of #4872 by allowing the WLD interpreter to detect some types of files that can no longer be used, and delete them: 1. Files created in the `inputs` section or body of a workflow that are not output will be deleted when the workflow ends. 2. Files created in the `input:` block of a call (which the ...
diff --git a/src/toil/test/wdl/testfiles/drop_files.wdl b/src/toil/test/wdl/testfiles/drop_files.wdl new file mode 100644 index 0000000000..4ca39e9e25 --- /dev/null +++ b/src/toil/test/wdl/testfiles/drop_files.wdl @@ -0,0 +1,62 @@ +version 1.0 + +import "drop_files_subworkflow.wdl" as subwf + +# Workflow for testing di...
2
2
1
[{"id": "G0", "claim": "The comment in drop_files.wdl misspells 'a tthe end' where it should read 'at the end'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assertion 'assert \"This file is collected as a task output twice\"' is always True ...
null
DataBiosphere__toil__5233
DataBiosphere/toil
5,233
defect
e77425acd7ca93f0f1507fd31c36ebc14d8a0e6b
b3778cdf38d00a26fb78f9641df79b11645c15e5
Add `--slurmPartition` and `--slurmGPUPartition` and support `--time` in `TOIL_SLURM_ARGS`
This fixes #5230 and fixes #5231 by adding the requested options and adding back `--time` as an allowed argument in `TOIL_SLURM_ARGS`. I'm adding some actual parsing of `TOIL_SLURM_ARGS` and some tests for the new functionality (though not all the way through to Toil option parsing) and for the other Slurm option th...
diff --git a/docs/appendices/environment_vars.rst b/docs/appendices/environment_vars.rst index 1e7831c28d..cddcc59bc5 100644 --- a/docs/appendices/environment_vars.rst +++ b/docs/appendices/environment_vars.rst @@ -142,6 +142,11 @@ There are several environment variables that affect the way Toil runs. | ...
2
1
0
[{"id": "G0", "claim": "When a partition override is supplied through TOIL_SLURM_ARGS (e.g. \"--partition high_priority\" with cactus-pangenome), the override does not take effect and jobs are left pending in the default partition.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduce...
null
DataBiosphere__toil__5266
DataBiosphere/toil
5,266
defect
2e65ee910ae732aefc930cde54128914c1eb15e4
48334e0739feaf2b2489d3e3538ccac1b7207f4c
Handle coercing file: URIs to files
This should fix #5265. Broad likes to write workflows that coerce Files to Strings and back again. Apparently when we go File to String we always include a file: URI prefix, and the String-to-FIle coercion was thinking that was a nonexistent bare path, and also the caching code was not dealing with a file: URI that ...
diff --git a/setup.py b/setup.py index ad0f716e69..ca82aa697a 100755 --- a/setup.py +++ b/setup.py @@ -139,6 +139,13 @@ def import_version(): cwltool_version = req[len("cwltool==") :] break # Use the template to generate src/toil/version.py + + # First make sure we can ...
3
2
0
[{"id": "G0", "claim": "Import sys at the top of setup.py alongside os instead of inside import_version().", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the nvidia-smi check suppresses its stdout and stderr, questioning wh...
null
DataBiosphere__toil__5305
DataBiosphere/toil
5,305
defect
a20dc7e59b722a2282a3f8cb8b811488e0e56edb
d7d584f6e752d7c76e58a7feb44499e6e50933cd
tests: fix a tutorial script to work from any location
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * PR submitter writes their recommendation for a changelog entry here ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklists.rst --> * [ ] Make sure it is coming...
diff --git a/src/toil/test/__init__.py b/src/toil/test/__init__.py index 5a62708027..abe96da3ca 100644 --- a/src/toil/test/__init__.py +++ b/src/toil/test/__init__.py @@ -395,6 +395,8 @@ def _aws_s3_avail() -> bool: boto3_credentials = session.get_credentials() except ImportError: return False + ...
1
1
1
[{"id": "G0", "claim": "The tutorial script should not show toil.test.get_data() in user-facing documentation code; move the get_data() lookup into the corresponding test in src/toil/test/docs/scripts/scriptsTest.py (via checkExitCode extra_args or by building the script a working directory) so the example script can r...
null
DataBiosphere__toil__5312
DataBiosphere/toil
5,312
defect
a20dc7e59b722a2282a3f8cb8b811488e0e56edb
d127dd75699012547c44b23658baa11425cbf220
Don't check tmpdir_prefix existence
Resolves #5310 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Fixed a regression with `tmpdir_prefix` ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklists.rst --> * [ ] Make sure it is coming fr...
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index 4b7ddcb306..0fcd8ec01e 100644 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -4272,11 +4272,11 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int: # of filestore files and caches those. ...
1
1
1
[{"id": "G0", "claim": "Since this regression has had to be fixed twice already, merging a third fix without any test coverage is unacceptable: either the pull request should not close the issue, or a new issue should be made for the test it needs.", "category": "testing", "verdict": "supported", "priority": "P1", "sco...
null
DataBiosphere__toil__5313
DataBiosphere/toil
5,313
defect
a20dc7e59b722a2282a3f8cb8b811488e0e56edb
526d92256cf042226d8c849a4aaa735a851eb87e
Refactor URL access function
## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * Refactor URL access function ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklists.rst --> * [ ] Make sure it is coming from `issues/XXXX-fix-the-thi...
diff --git a/src/toil/common.py b/src/toil/common.py index 10dd8742e0..ef30730579 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -86,6 +86,7 @@ from toil.realtimeLogger import RealtimeLogger from toil.statsAndLogging import add_logging_options, set_logging_from_options from toil.version import dockerReg...
7
6
1
[{"id": "G0", "claim": "The docstrings documenting the `otherCls` parameter of _import_file/_export_file/_default_export_file are no longer accurate after the refactor to URLAccess and need updating.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
DataBiosphere__toil__5325
DataBiosphere/toil
5,325
defect
8a67d507dfe8b09ef136f40e36ed32e93cc95667
cc11356a27c884791424023f3d8f2beff4cff7ca
Update real world example in quick start documentation
Closes #3534 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * toil-wdl-runner will bump container memory if below 4MiB * Updated real world example in quick start * `--importWorkersThreshold` has been renamed to `--importWorker...
diff --git a/docs/gettingStarted/quickStart.rst b/docs/gettingStarted/quickStart.rst index 7a4dcf2b1d..fceae4990f 100644 --- a/docs/gettingStarted/quickStart.rst +++ b/docs/gettingStarted/quickStart.rst @@ -150,6 +150,71 @@ For something beyond a "Hello, world!" example, refer to :ref:`runningDetail`. Toil's customi...
7
5
2
[{"id": "G0", "claim": "The 4 MiB memory threshold in wdltoil.py should be written as human2bytes(\"4MiB\") instead of the raw literal 4_194_304.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The quick start example would be better run from Doc...
null
DataBiosphere__toil__5465
DataBiosphere/toil
5,465
defect
e02bf01190eef6d73c120a1a5bff116612d88312
ac516a691a5205d5657a78209ee6e05659ea83c0
Warn but proceed if we are not able to retrieve Slurm partition information
Closes #5461 ## Changelog Entry To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog) by merger: * PR submitter writes their recommendation for a changelog entry here ## Reviewer Checklist <!-- To be kept in sync with docs/contributing/checklists.rst --> * ...
diff --git a/src/toil/batchSystems/mesos/batchSystem.py b/src/toil/batchSystems/mesos/batchSystem.py index a040ca1883..dc88165b29 100644 --- a/src/toil/batchSystems/mesos/batchSystem.py +++ b/src/toil/batchSystems/mesos/batchSystem.py @@ -969,7 +969,7 @@ def _handleFailedExecutor(self, agentID, executorID=None): ...
5
4
2
[{"id": "G0", "claim": "Do not call `_get_gpu_partitions()` when `_get_partition_info()` has failed — move it inside the try block, since there is no reason to run it if sinfo died.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new broad `excep...
null
DataDog__KubeHound__108
DataDog/KubeHound
108
defect
508662e9e521abed539df7b1e6519ba70c2e2373
97e9c4b1301ca596a1701261600847875f5c3506
Add /var/log edge
Add /var/log edge based on https://github.com/DataDog/KubeHound/blob/main/docs/reference/attacks/TOKEN_VAR_LOG_SYMLINK.md
diff --git a/deployments/kubehound/kubegraph/kubehound-db-init.groovy b/deployments/kubehound/kubegraph/kubehound-db-init.groovy index 682fe96f6..bc0d893aa 100644 --- a/deployments/kubehound/kubegraph/kubehound-db-init.groovy +++ b/deployments/kubehound/kubegraph/kubehound-db-init.groovy @@ -81,9 +81,6 @@ mgmt.addConne...
10
10
2
[{"id": "G0", "claim": "The edge's Dependencies list omits VOLUME_ACCESS even though the traversal traverses InE(\"VOLUME_ACCESS\").", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The processor logic should not live in a separate permissionSetProces...
null
DataDog__KubeHound__172
DataDog/KubeHound
172
defect
358e1d0161df8297d936ac3a250c2eb7d70cdaaf
994ffe63cadf53d754f81a10d813ddd7d771f13a
Refactor writers (multi-thread + enveloped k8s type_
Refactor the writer to be compatible with the collector. The collector needs to have an abstract layer k8sTypeList, so it means we can no longer dump raw files directly, we need to consolidate all the entries for each files first. For the file writer, we build a buffer for each file, then write it to the filesystem ...
diff --git a/pkg/dump/writer/file_writer.go b/pkg/dump/writer/file_writer.go index 4fe7bb256..8342dd671 100644 --- a/pkg/dump/writer/file_writer.go +++ b/pkg/dump/writer/file_writer.go @@ -7,6 +7,7 @@ import ( "os" "path" "path/filepath" + "sync" "github.com/DataDog/KubeHound/pkg/telemetry/log" "github.com/...
7
6
1
[{"id": "G0", "claim": "The marshalK8sObj helper adds little value over calling json.Marshal directly, and error context could be added in the caller instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DumperWriter.Write signature should use a co...
null
DataDog__KubeHound__175
DataDog/KubeHound
175
defect
f86337436a9cf7000b251e08b0dea0d02b42ef56
4cbcd96ea91e55f9a61ad14117cb4f514ba69901
[Dumper] Refactor pipeline ingestor
Refactor the pipeline ingestor to include more unit tests.
diff --git a/pkg/collector/k8s_api_faker.go b/pkg/collector/k8s_api_faker.go index 7c5de1398..a2f6f29bd 100644 --- a/pkg/collector/k8s_api_faker.go +++ b/pkg/collector/k8s_api_faker.go @@ -15,15 +15,16 @@ import ( "k8s.io/client-go/kubernetes/fake" ) -func FakePod(namespace string, image string, status string) *co...
3
2
0
[{"id": "G0", "claim": "Asks whether it is intended that genK8sObjects in pipeline_test.go is the only one of these helpers that is exported.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Questions whether the worker pool actually runs in multiple threa...
null
DataDog__KubeHound__205
DataDog/KubeHound
205
defect
61570bc0cf4d7144235e3f419fc8be2324ef2466
5bd3035218f44aa32f71cfb9c73e392694a744c6
Adding new ingest local command to process offline dump
Refactoring the ingest command: * `kubehound ingest local`: to ingest a local dump (tar.gz or directory) * `kubehound ingest remote`: former ingest command Changes: * Bumping the default size for MaxArchive to 2gigs * Setting Large Cluster optimization as default to speed up the ingestion * Renaming all command...
diff --git a/cmd/kubehound/dumper.go b/cmd/kubehound/dumper.go index 9eb3e8640..c3d4e473e 100644 --- a/cmd/kubehound/dumper.go +++ b/cmd/kubehound/dumper.go @@ -22,8 +22,8 @@ var ( }, } - cloudCmd = &cobra.Command{ - Use: "cloud", + dumpRemoteCmd = &cobra.Command{ + Use: "remote", Short: "Push collected...
2
2
0
[{"id": "G0", "claim": "The trailing comment on DefaultMaxArchiveSize still says 1GB although the value was raised to 2GB, so the comment should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bare true/false passed as the new first...
null
DataDog__KubeHound__209
DataDog/KubeHound
209
defect
8b7951bf6312a5770ce3c69a6f2e80d0838d8899
b91517379f4dbd3d1a5906409465628cf62d4eef
Add CE_UMH_CORE_PATTERN edge
This PR adds the edge calculation for the `CE_UMH_CORE_PATTERN` technique. <img width="992" alt="core_pattern_edge_screenshot" src="https://github.com/DataDog/KubeHound/assets/104835031/0e2b6b2b-78a2-466f-955f-0eed3ee11630">
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2ec8aedad..d2b92461c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,10 +35,10 @@ If a PR sits open for more than a month awaiting work or replies by the author, To add a new attack to KubeHound, please do the following: + Document the attack in the [ed...
4
4
1
[{"id": "G0", "claim": "Keep both /etc/mtab and /proc/mounts in the documentation command, since which one works depends on the system, ideally with a comment noting the output of uname -a.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OVERLA...
null
DataDog__KubeHound__232
DataDog/KubeHound
232
defect
e31957fe5ffeddc0428606390eb38dc2446ddcab
5ed563cfff03c814e3af40fb10d3705c4f68162d
Use positionnal argument for directory/file input/output path
Removing the flags for the input/output for `ingest local` and `dump local`. Now it will get passed through the first argument: * `kubehound dump local [directory to dump the data]` * `kubehound ingest local [directory or tar.gz path] --cluster <cluster_name>` Also now the default behavior is to create a compressed fi...
diff --git a/cmd/kubehound/dumper.go b/cmd/kubehound/dumper.go index c3d4e473e..732abbd12 100644 --- a/cmd/kubehound/dumper.go +++ b/cmd/kubehound/dumper.go @@ -34,7 +34,7 @@ var ( }, RunE: func(cobraCmd *cobra.Command, args []string) error { // using compress feature - viper.Set(config.CollectorFileArchive...
2
2
0
[{"id": "G0", "claim": "The comment on the NoCompress field says 'Enable compression' when the inverted flag now means compression is disabled by default, so it should say 'Disable compression'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The f...
null
DataDog__KubeHound__248
DataDog/KubeHound
248
defect
fdafcbecd5a927c199ea01045e9e0b63478485fb
88087789517413fb51623bf0cf068cb94a68109f
[NOJIRA] Use the ParsePath function to gather the cluster name and run ID
This PR has been created to resolve https://github.com/DataDog/KubeHound/issues/246 I believe some deeper work would be needed to refactor the config loading: it's difficult to know what's the source of truth for some value, and what's populated when. For example the clustername is set: - As a flag - As a viper...
diff --git a/cmd/kubehound/ingest.go b/cmd/kubehound/ingest.go index 042a93b55..8605a9ed2 100644 --- a/cmd/kubehound/ingest.go +++ b/cmd/kubehound/ingest.go @@ -10,6 +10,10 @@ import ( "github.com/spf13/viper" ) +var ( + runID string +) + var ( ingestCmd = &cobra.Command{ Use: "ingest", @@ -23,6 +27,8 @@ v...
1
1
0
[{"id": "G0", "claim": "The flagCluster deprecation message added in InitLocalIngestCmd should be reworded to \"Since v1.4.1, KubeHound dump archive contains a metadata file holding the clustername\" (also fixing the \"constains\" typo).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ...
null
DataDog__KubeHound__264
DataDog/KubeHound
264
defect
c532f89ae66d835aa1dd61acc49647ba83f9ab21
8e9c1de891922801b6672c84595e3684edcf6ee1
add env variable for ingestor/grpc image
Adding the following env variable for easier setup of the ingestor image: ```yaml # Custom config for docker compose environment - KH_MONGODB_URL=mongodb://mongodb:27017 - KH_JANUSGRAPH_URL=ws://kubegraph:8182/gremlin # Default config - KH_INGESTOR_API_ENDPOINT=0.0.0.0:9000 - KH_ING...
diff --git a/pkg/config/collector.go b/pkg/config/collector.go index 1f0a1bb73..574944be9 100644 --- a/pkg/config/collector.go +++ b/pkg/config/collector.go @@ -50,6 +50,6 @@ type FileArchiveConfig struct { } type BlobConfig struct { - Bucket string `mapstructure:"bucket"` // Bucket to use to push k8s resources (e....
1
1
0
[{"id": "G0", "claim": "The blob storage variable `bucket_name` should be renamed to `bucket_url` (with the rename propagated everywhere) because the value is required to be an `s3://` URL.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DataDog__KubeHound__27
DataDog/KubeHound
27
defect
3368b7783b82440cb3bc8a8278dbd5f95d65c585
b491d849709df5747787a19786510d7264bf11ad
Add metrics (statsd) package
This adds the statsd package and its related config files. Nothing calls it yet, this will come in following PRs (probably when a few more pieces of the app are written!)
diff --git a/configs/etc/kubehound.yaml b/configs/etc/kubehound.yaml index 4f69bb485..74ad6849d 100644 --- a/configs/etc/kubehound.yaml +++ b/configs/etc/kubehound.yaml @@ -3,4 +3,6 @@ collector: file: directory: cluster-data/ mongodb: - url: "mongodb://localhost:27017" \ No newline at end of file + url: "mo...
4
4
2
[{"id": "G0", "claim": "The README should be updated to say that the DD_API_KEY environment variable needs to be supplied for the datadog agent added to docker-compose.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The statsd configuration should...
null
DataDog__KubeHound__295
DataDog/KubeHound
295
defect
ed23204922746d344912c6ea59acb0c84b98f65d
3cfe99b4e0ed80b8bcc32967cf0dd68b1e818503
graphdb batch writer resiliency
# Context The graphdb entity writers can be subject to unexpected behaviours from the JanusGraph backend (eg. backend not responding due to runtine errors). The writers have been modified to add resilience to unexpected situation: - The lock-free microbatcher pattern has been externalised to a dedicated instan...
diff --git a/pkg/kubehound/storage/graphdb/errors.go b/pkg/kubehound/storage/graphdb/errors.go new file mode 100644 index 000000000..6ccb21860 --- /dev/null +++ b/pkg/kubehound/storage/graphdb/errors.go @@ -0,0 +1,22 @@ +package graphdb + +import "fmt" + +// errBatchWriter is an error type that wraps an error and indic...
8
4
1
[{"id": "G0", "claim": "Every send into the edge writer's consumerChan, including the retry-split requeues, should also increment writingInFlight and increment the QueueSize metric, ideally via a dedicated helper function.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"...
null
DataDog__KubeHound__306
DataDog/KubeHound
306
defect
af445737f46675389fc235374b489aefda20d0e0
92ee53ec0ad6b2118373dc3f8bfaaaa31ed0a057
Feat graph investigate query time explosion
# Context * Update JanusGraph to 1.1.0 * Various performance-related fixes * Register commonly used composite indices used for querying the graph * Improve Jupyter Notebook queries to use newly registered indices * Enable the `force-index` flag to prevent `g.V().count()` like queries that could take down...
diff --git a/deployments/kubehound/graph/Dockerfile b/deployments/kubehound/graph/Dockerfile index f3e0a879f..15acf3aec 100644 --- a/deployments/kubehound/graph/Dockerfile +++ b/deployments/kubehound/graph/Dockerfile @@ -7,7 +7,7 @@ COPY dsl/kubehound/pom.xml /home/app RUN mvn -f /home/app/pom.xml clean install # N...
3
3
1
[{"id": "G0", "claim": "The 180000 value of janusgraph.cache.db-cache-time is in milliseconds and thus caches data for only 3 minutes, so it should be enabled for much longer given the low ingest frequency.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
DataDog__datadog-agent__43389
DataDog/datadog-agent
43,389
defect
4862c809541337b2577154ad3c0d8a7cb0c61e69
b2230900869a5b962b94e4895d9f371ac4cdf635
[workloadmeta/collectors/kubeapiserver] Use minimal pod representation
### What does this PR do? This PR optimizes the memory usage of the `kubeapiserver` workloadmeta collector. The collector now uses a minimal pod struct with only the fields we actually need. This avoids unmarshalling the full pod. The saved memory is noticeable in clusters with many pods. It's specially important...
diff --git a/comp/core/workloadmeta/collectors/internal/kubeapiserver/kubeapiserver_test.go b/comp/core/workloadmeta/collectors/internal/kubeapiserver/kubeapiserver_test.go index 29c83ab64733..ca8242efafc0 100644 --- a/comp/core/workloadmeta/collectors/internal/kubeapiserver/kubeapiserver_test.go +++ b/comp/core/worklo...
2
2
2
[{"id": "G0", "claim": "If `kubernetes_apiserver_use_protobuf` is enabled, deserialization of the REST-client pod response will fail because the new minimal-pod decoding path does not support protobuf.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
DataDog__datadog-agent__47048
DataDog/datadog-agent
47,048
defect
554c7b5077542e9b3d49c7f5ade715f103c24f53
ee07cd450a8bab3d26f4425d0aee400fb7eee7e2
Fix nil panic in aggregator when context key is missing from resolver
### What does this PR do? `newSketchSeries` discarded the `bool` returned by `cs.contextResolver.get(ck)`, using the `*Context` result directly even when the key was absent (which returns nil). This caused a nil pointer dereference when accessing `ctx.Name`, `ctx.Tags()`, and `ctx.Host`. This PR adds the missing `ok`...
diff --git a/pkg/aggregator/check_sampler.go b/pkg/aggregator/check_sampler.go index bbac8c0858f5..dfad4238f59b 100644 --- a/pkg/aggregator/check_sampler.go +++ b/pkg/aggregator/check_sampler.go @@ -76,7 +76,11 @@ func (cs *CheckSampler) addSample(metricSample *metrics.MetricSample, tagFilterL } func (cs *CheckSamp...
1
1
1
[{"id": "G0", "claim": "The nil-context guard added to newSketchSeries has no test; please add a test covering it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__datadog-agent__47063
DataDog/datadog-agent
47,063
defect
dafa3b74a1c467bddc56e79850cc763a1a2c6ce1
409be51ac6c1aeed46ede0f0635199ea27ce4cd1
[ AGNTLOG-560 ] Add COAT telemetry for auto multiline default-on impact analysis
### What does this PR do? Adds three COAT (Cost of Agent Telemetry) counters to the logs agent's detecting aggregator that measure what would change if `auto_multi_line_detection` were enabled by default: - `auto_multi_line_default_total_lines` -- total lines processed (denominator for both percentage metrics) -...
diff --git a/comp/logs/agent/config/integration_config.go b/comp/logs/agent/config/integration_config.go index a951aba8420a..400e56f572bb 100644 --- a/comp/logs/agent/config/integration_config.go +++ b/comp/logs/agent/config/integration_config.go @@ -414,18 +414,29 @@ func (c *LogsConfig) LegacyAutoMultiLineEnabled(cor...
4
1
1
[{"id": "G0", "claim": "isDefault is forced to false whenever logs_config.experimental_auto_multi_line_detection is configured, even when explicitly set to false, so COAT telemetry is suppressed for sources whose behavior a future default flip of logs_config.auto_multi_line_detection would still change, undercounting t...
null
DataDog__datadog-agent__47080
DataDog/datadog-agent
47,080
defect
dafa3b74a1c467bddc56e79850cc763a1a2c6ce1
3cf650b3dec8fa6944fac87b79391843fe1d7e7e
[DCA] Generic pod evictor
### What does this PR do? Implements a shared interface for eviction within the cluster agent. ### Motivation In-place vertical pod resizing will require [eviction](https://datadoghq.atlassian.net/wiki/spaces/CONT/pages/6246498427/In-Place+Vertical+Pod+Resizing+for+Workload+Autoscaling#Eviction-Strategy), which is...
diff --git a/pkg/clusteragent/evictor/evictor.go b/pkg/clusteragent/evictor/evictor.go new file mode 100644 index 000000000000..33cc7a1d3aa8 --- /dev/null +++ b/pkg/clusteragent/evictor/evictor.go @@ -0,0 +1,96 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache Lice...
2
2
0
[{"id": "G0", "claim": "The evictor should use the typed k8s policy/v1 client instead of dynamic.Interface, for better type safety, unless the flexibility of the dynamic client is needed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Treating every IsTo...
null
DataDog__datadog-agent__47351
DataDog/datadog-agent
47,351
defect
1b94034f1879604b1b447a4458bc68389f9586ee
bbdcda079b9c7dbb958c4ba4ff0f92c74495097d
fix forwarder diverging on refreshed api key
### What does this PR do? Addresses: https://datadoghq.atlassian.net/browse/AGENT-15723 - Forwarder health check fails after successful API key rotation in Kubernetes This was caused by the health 'cache' not recieving the new api key during rotation due to a trailing dot from FQDN. ### Motivation ### Descri...
diff --git a/comp/forwarder/defaultforwarder/forwarder_health.go b/comp/forwarder/defaultforwarder/forwarder_health.go index 5d6e70f035e9..24c0affb5a4b 100644 --- a/comp/forwarder/defaultforwarder/forwarder_health.go +++ b/comp/forwarder/defaultforwarder/forwarder_health.go @@ -11,6 +11,7 @@ import ( "net/http" "re...
1
1
1
[{"id": "G0", "claim": "A test should be added covering the change (the fix for the forwarder diverging on refreshed API key).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DataDog__datadog-agent__47485
DataDog/datadog-agent
47,485
defect
7b2ebb635e49b8e49d70315480bbde489ed12b31
63c439ce17350d9aaebb52ea7ddf8d0c190adcc1
[observer] Unify detector interfaces and rewrite README
## Summary Renames and simplifies the observer's detection interfaces. For metrics detectors, this is purely a rename for clarity: - `MetricsDetector` → `SeriesDetector` (analyzes one series at a time) - `MultiSeriesDetector` → `Detector` (pulls from storage, supports multivariate) - `MetricsDetectionResult` / `Multi...
diff --git a/comp/observer/README.md b/comp/observer/README.md index fcb6d1f3fce0..e2cddfa45c6b 100644 --- a/comp/observer/README.md +++ b/comp/observer/README.md @@ -1,81 +1,245 @@ # Observer Component -Observes data flowing through the agent for sampling and analysis. +The observer watches data flowing through the...
8
5
0
[{"id": "G0", "claim": "The testbench consumes detectors in non-deterministic Go map iteration order while writing each detector's telemetry back into storage immediately after Detect, so anomaly results can change between runs for the same scenario; it should use a stable order (e.g. registry order) or defer telemetry...
null
DataDog__datadog-agent__47584
DataDog/datadog-agent
47,584
defect
9c4f1e8254ef6d95246f06b9f255f11d8d7e4f56
723ba335dbcf222327183708f8146774b15d3a3f
Podman multi-users support
### What does this PR do? Extends Podman container monitoring to support multiple users simultaneously. * Multi-user explicit configuration: podman_db_path now accepts a comma-separated list of paths, one per user's Podman database. For example: `podman_db_path: "/var/lib/containers/storage/db.sql,/home/datadog2/...
diff --git a/comp/core/workloadmeta/collectors/internal/podman/podman.go b/comp/core/workloadmeta/collectors/internal/podman/podman.go index 18f0beafbdbc..dfa3790c6e06 100644 --- a/comp/core/workloadmeta/collectors/internal/podman/podman.go +++ b/comp/core/workloadmeta/collectors/internal/podman/podman.go @@ -11,6 +11,...
2
1
0
[{"id": "G0", "claim": "When GetAllContainers fails for any configured Podman DB, the Pull loop continues and the stale-entity cleanup then emits EventTypeUnset for containers from the failed DB, so a transient DB read error can incorrectly remove live containers from workloadmeta and cause flapping until the next succ...
null