Skip to content

Commit fc23fe5

Browse files
committed
Merge branch 'master' of github.com:DataBiosphere/toil into issues/5114-filesize-sniffing
2 parents 7022a44 + 89d8e53 commit fc23fe5

File tree

6 files changed

+26
-57
lines changed

6 files changed

+26
-57
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki
55

66
## Reviewer Checklist
77

8-
<!-- To be kept in sync with docs/contributing/checklist.rst -->
8+
<!-- To be kept in sync with docs/contributing/checklists.rst -->
99

1010
* [ ] Make sure it is coming from `issues/XXXX-fix-the-thing` in the Toil repo, or from an external repo.
1111
* [ ] If it is coming from an external repo, make sure to pull it in for CI with:
@@ -26,10 +26,10 @@ To be copied to the [draft changelog](https://github.com/DataBiosphere/toil/wiki
2626

2727
## Merger Checklist
2828

29-
<!-- To be kept in sync with docs/contributing/checklist.rst -->
29+
<!-- To be kept in sync with docs/contributing/checklists.rst -->
3030

31-
* [ ] Make sure the PR passes tests.
32-
* [ ] Make sure the PR has been reviewed **since its last modification**. If not, review it.
31+
* [ ] Make sure the PR passed tests, including the Gitlab tests, for the most recent commit in its branch.
32+
* [ ] Make sure the PR has been reviewed. If not, review it. If it has been reviewed and any requested changes seem to have been addressed, proceed.
3333
* [ ] Merge with the Github "Squash and merge" feature.
3434
* [ ] If there are multiple authors' commits, add [Co-authored-by](https://github.blog/2018-01-29-commit-together-with-co-authors/) to give credit to all contributing authors.
3535
* [ ] Copy its recommended changelog entry to the [Draft Changelog](https://github.com/DataBiosphere/toil/wiki/Draft-Changelog).

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@ updates:
44
directory: "/" # Location of package manifests
55
schedule:
66
interval: "daily"
7+
ignore:
8+
# htcondor is not under CI
9+
- dependency-name: "htcondor"
10+
# Google cloud/storage is not under CI
11+
- dependency-name: "apache-libcloud"
12+
- dependency-name: "google-cloud-storage"
13+
- dependency-name: "google-auth"
714
- package-ecosystem: "github-actions"
815
directory: "/"
916
schedule:
1017
interval: "weekly"
18+
# Don't constantly rebase all the dependency bump PRs whenever anything else
19+
# merges; this causes too many CI runs.
20+
rebase-strategy: ignore
21+

.github/workflows/autoupdate.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/contributing/checklists.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ This checklist is to be kept in sync with the checklist in the pull request temp
4343

4444
When merging a PR, do the following:
4545

46-
* |X| Make sure the PR passes tests.
47-
* |X| Make sure the PR has been reviewed **since its last modification**. If not, review it.
46+
* |X| Make sure the PR passed tests, including the Gitlab tests, for the most recent commit in its branch.
47+
* |X| Make sure the PR has been reviewed. If not, review it. If it has been reviewed and any requested changes seem to have been addressed, proceed.
4848
* |X| Merge with the Github "Squash and merge" feature.
4949
* |X| If there are multiple authors' commits, add `Co-authored-by`_ to give credit to all contributing authors.
5050
.. _Co-authored-by: https://github.blog/2018-01-29-commit-together-with-co-authors/

docs/running/cliOptions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ about the performance of jobs.
9090
directory ``toil-<workflowID>`` within workDir. The
9191
workflowID is generated by Toil and will be reported in
9292
the workflow logs. Default is determined by the
93-
variables (TMPDIR, TEMP, TMP) via mkdtemp. This
93+
variables (TMPDIR, TEMP, TMP) via mkdtemp. For CWL,
94+
the temporary output directory is used instead
95+
(see CWL option ``--tmp-outdir-prefix``). This
9496
directory needs to exist on all machines running jobs;
9597
if capturing standard output and error from batch
9698
system jobs is desired, it will generally need to be on

src/toil/cwl/cwltoil.py

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4122,42 +4122,25 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int:
41224122
tmpdir_prefix = options.tmpdir_prefix = (
41234123
options.tmpdir_prefix or DEFAULT_TMPDIR_PREFIX
41244124
)
4125-
4126-
# We need a workdir for the CWL runtime contexts.
4127-
if tmpdir_prefix != DEFAULT_TMPDIR_PREFIX:
4128-
# if tmpdir_prefix is not the default value, move
4129-
# workdir and the default job store under it
4130-
workdir = cwltool.utils.create_tmp_dir(tmpdir_prefix)
4131-
else:
4132-
# Use a directory in the default tmpdir
4133-
workdir = mkdtemp()
4134-
# Make sure workdir doesn't exist so it can be a job store
4135-
os.rmdir(workdir)
4125+
tmp_outdir_prefix = options.tmp_outdir_prefix or tmpdir_prefix
4126+
workdir = options.workDir or tmp_outdir_prefix
41364127

41374128
if options.jobStore is None:
4129+
jobstore = cwltool.utils.create_tmp_dir(tmp_outdir_prefix)
4130+
# Make sure directory doesn't exist so it can be a job store
4131+
os.rmdir(jobstore)
41384132
# Pick a default job store specifier appropriate to our choice of batch
41394133
# system and provisioner and installed modules, given this available
41404134
# local directory name. Fail if no good default can be used.
41414135
options.jobStore = generate_default_job_store(
4142-
options.batchSystem, options.provisioner, workdir
4136+
options.batchSystem, options.provisioner, jobstore
41434137
)
41444138

41454139
options.doc_cache = True
41464140
options.disable_js_validation = False
41474141
options.do_validate = True
41484142
options.pack = False
41494143
options.print_subgraph = False
4150-
if tmpdir_prefix != DEFAULT_TMPDIR_PREFIX and options.workDir is None:
4151-
# We need to override workDir because by default Toil will pick
4152-
# somewhere under the system temp directory if unset, ignoring
4153-
# --tmpdir-prefix.
4154-
#
4155-
# If set, workDir needs to exist, so we directly use the prefix
4156-
options.workDir = cwltool.utils.create_tmp_dir(tmpdir_prefix)
4157-
if tmpdir_prefix != DEFAULT_TMPDIR_PREFIX and options.coordination_dir is None:
4158-
# override coordination_dir as default Toil will pick somewhere else
4159-
# ignoring --tmpdir_prefix
4160-
options.coordination_dir = cwltool.utils.create_tmp_dir(tmpdir_prefix)
41614144

41624145
if options.batchSystem == "kubernetes":
41634146
# Containers under Kubernetes can only run in Singularity
@@ -4175,9 +4158,6 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int:
41754158
logger.debug(f"Final job store {options.jobStore} and workDir {options.workDir}")
41764159

41774160
outdir = os.path.abspath(options.outdir or os.getcwd())
4178-
tmp_outdir_prefix = os.path.abspath(
4179-
options.tmp_outdir_prefix or DEFAULT_TMPDIR_PREFIX
4180-
)
41814161
conf_file = getattr(options, "beta_dependency_resolvers_configuration", None)
41824162
use_conda_dependencies = getattr(options, "beta_conda_dependencies", None)
41834163
job_script_provider = None

0 commit comments

Comments
 (0)