Skip to content

Commit dfc7683

Browse files
committed
Merge remote-tracking branch 'upstream/master' into serve-test
2 parents 01bf215 + 108a4b9 commit dfc7683

File tree

251 files changed

+5008
-4495
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+5008
-4495
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Code formatting with black and isort
2+
4d8fc5a87a4b9f544a8d099eb2e97dbff505e3db

.github/workflows/ci.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ env:
1313
jobs:
1414
test:
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 90
16+
timeout-minutes: 100
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ['3.6']
20+
python-version: ['3.7']
2121
tox-action:
2222
- lint
2323
- lint_docs
@@ -30,8 +30,8 @@ jobs:
3030
#- unit-diagnostic-servetraining
3131
#- unit-diagnostic-servecmd
3232
#- unit-diagnostic-trainingwfcmd
33-
- unit-nonredundant-noclientbuild-noshed-gx-2005
34-
- unit-nonredundant-noclientbuild-noshed-gx-2009
33+
- unit-nonredundant-noclientbuild-noshed-gx-2105
34+
- unit-nonredundant-noclientbuild-noshed-gx-2109
3535
- unit-nonredundant-noclientbuild-noshed-gx-dev
3636
- unit-nonredundant-noclientbuild-noshed
3737
- unit-diagnostic-serveclientcmd
@@ -47,20 +47,20 @@ jobs:
4747
# needed because the postgres container does not provide a healthcheck
4848
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
4949
steps:
50-
- uses: actions/checkout@v1
50+
- uses: actions/checkout@v3
5151
with:
5252
fetch-depth: 1
5353
submodules: true
54-
- uses: actions/setup-python@v1
54+
- uses: actions/setup-python@v3
5555
with:
5656
python-version: ${{ matrix.python-version }}
5757
- name: Test psql
5858
run: |
5959
psql --tuples-only --username postgres -P pager=off --list
6060
- name: Install dependencies
6161
run: |
62-
python -m pip install --upgrade pip
63-
pip install tox coveralls
62+
python -m pip install --upgrade pip setuptools
63+
python -m pip install tox coveralls
6464
- name: Checkout system space
6565
run: |
6666
df
@@ -72,11 +72,11 @@ jobs:
7272
deploy:
7373
runs-on: ubuntu-latest
7474
steps:
75-
- uses: actions/checkout@v1
75+
- uses: actions/checkout@v3
7676
with:
7777
fetch-depth: 1
7878
submodules: true
79-
- uses: actions/setup-python@v1
79+
- uses: actions/setup-python@v3
8080
with:
8181
python-version: '3.7'
8282
- name: Install dependencies
@@ -88,6 +88,6 @@ jobs:
8888
make dist
8989
- name: Publish to PyPI
9090
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
91-
uses: pypa/gh-action-pypi-publish@v1.0.0a0
91+
uses: pypa/gh-action-pypi-publish@release/v1
9292
with:
9393
password: ${{ secrets.pypi_password }}

.isort.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[settings]
2+
force_alphabetical_sort_within_sections=true
3+
# Override force_grid_wrap value from profile=black, but black is still happy
4+
force_grid_wrap=2
5+
# Same line length as for black
6+
line_length=120
7+
no_lines_before=LOCALFOLDER
8+
profile=black
9+
reverse_relative=true
10+
skip_gitignore=true
11+
skip_glob=docs/standards/*

HISTORY.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ History
1111

1212

1313

14+
---------------------
15+
0.74.9 (2021-11-03)
16+
---------------------
17+
* Fix rendering of subworkflow steps for workflow testing report (thanks to
18+
`@simonbray`_). `Pull Request 1200`_
19+
* Replace Galaxy interactor galaxy_requests_post with make_post_request from
20+
BioBlend (thanks to `@simonbray`_). `Pull Request 1201`_
21+
1422
---------------------
1523
0.74.8 (2021-10-10)
1624
---------------------
@@ -27,7 +35,7 @@ History
2735
0.74.7 (2021-09-21)
2836
---------------------
2937

30-
* Fix documentation to include `--download_outputs` flag (thanks to
38+
* Fix documentation to include ``--download_outputs`` flag (thanks to
3139
`@simonbray`_). `Pull Request 1184`_
3240
* Select refgenie config based on Galaxy version `Pull Request 1187`_
3341
* Extend autoupdate subcommand to workflows (thanks to `@simonbray`_). `Pull
@@ -1761,6 +1769,8 @@ History
17611769
tools - and more experimental features involving Docker and Homebrew. 7d07782_
17621770

17631771
.. github_links
1772+
.. _Pull Request 1200: https://github.com/galaxyproject/planemo/pull/1200
1773+
.. _Pull Request 1201: https://github.com/galaxyproject/planemo/pull/1201
17641774
.. _Pull Request 1188: https://github.com/galaxyproject/planemo/pull/1188
17651775
.. _Pull Request 1193: https://github.com/galaxyproject/planemo/pull/1193
17661776
.. _Pull Request 1195: https://github.com/galaxyproject/planemo/pull/1195

cwl-runner/setup.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55
from setuptools import setup
66

77
SETUP_DIR = os.path.dirname(__file__)
8-
README = os.path.join(SETUP_DIR, 'README')
8+
README = os.path.join(SETUP_DIR, "README")
99

1010
scripts = ["cwl-runner"]
1111

1212
with open(README) as fh:
1313
readme_content = fh.read()
1414

15-
setup(name='cwl_runner',
16-
version='1.0',
17-
description='Common workflow language interpreter implementation (for Galaxy + Planemo)',
18-
long_description=readme_content,
19-
author='John Chilton',
20-
author_email='[email protected]',
21-
url="https://github.com/galaxyproject/planemo",
22-
download_url="https://github.com/galaxyproject/planemo",
23-
license="MIT",
24-
install_requires=[
25-
'planemo'
26-
],
27-
scripts=scripts,
28-
zip_safe=True)
15+
setup(
16+
name="cwl_runner",
17+
version="1.0",
18+
description="Common workflow language interpreter implementation (for Galaxy + Planemo)",
19+
long_description=readme_content,
20+
author="John Chilton",
21+
author_email="jmchilton@gmail.com",
22+
url="https://github.com/galaxyproject/planemo",
23+
download_url="https://github.com/galaxyproject/planemo",
24+
license="MIT",
25+
install_requires=["planemo"],
26+
scripts=scripts,
27+
zip_safe=True,
28+
)

dev-requirements.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ pytest
1111
coverage
1212

1313
#Building Docs
14+
docutils
1415
sphinx
1516
sphinx_rtd_theme
1617
recommonmark
1718

18-
# Used to check readme.
19-
readme
20-
2119
# Used for code checking.
22-
pyflakes
20+
black
2321
flake8
24-
flake8-import-order
22+
isort
2523

2624
# For release
2725
wheel

docs/_running_external.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,3 +300,26 @@ You can also delete unwanted profiles or aliases with these commands:
300300

301301
$ planemo delete_alias --alias my_favorite_workflow --profile tutorial_profile
302302
$ planemo profile_delete tutorial_profile
303+
304+
305+
Rerunning failed jobs
306+
===============================================
307+
308+
A frequent issue that arises when running a complex workflow is that component
309+
jobs can fail, resulting in failure of the entire workflow. These jobs can be
310+
rerun in the graphical interface, selecting the ``Resume dependencies from this
311+
job ?`` option, which restarts the paused workflow (so-called 'remapping' of the
312+
failed job over the previously created output dataset(s)). However, if there are
313+
a large number of failures, and you believe the errors are transitory, e.g. due
314+
to some temporary server issue, you can rerun several failed jobs simultaneously
315+
using the ``planemo rerun`` command:
316+
317+
::
318+
319+
$ planemo rerun --history 68008488b4fb94de
320+
$ planemo rerun --invocation 27267240b7d1f22a a9b086729787c907c
321+
$ planemo rerun --job a2b39deaa34509bb 3318707f2f0ff1fd
322+
323+
In the first two cases, all failed, remappable jobs which are associated with
324+
the specified history(s) or invocation(s) will be rerun. In the third case,
325+
the specified jobs will simply be rerun.

docs/_writing_dependencies_conda.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ demonstrating using this tool.
164164
2017-02-22 10:13:29,064 INFO [galaxy.jobs.handler] (2) Job dispatched
165165
2017-02-22 10:13:29,281 DEBUG [galaxy.tools.deps] Using dependency seqtk version 1.2 of type conda
166166
2017-02-22 10:13:29,282 DEBUG [galaxy.tools.deps] Using dependency seqtk version 1.2 of type conda
167-
2017-02-22 10:13:29,317 INFO [galaxy.jobs.command_factory] Built script [/tmp/tmpLvKwta/job_working_directory/000/2/tool_script.sh] for tool command [[ "$CONDA_DEFAULT_ENV" = "/Users/john/miniconda2/envs/[email protected]" ] || . /Users/john/miniconda2/bin/activate '/Users/john/miniconda2/envs/[email protected]' >conda_activate.log 2>&1 ; seqtk seq -a '/tmp/tmpLvKwta/files/000/dataset_1.dat' > '/tmp/tmpLvKwta/files/000/dataset_2.dat']
167+
2017-02-22 10:13:29,317 INFO [galaxy.jobs.command_factory] Built script [/tmp/tmpLvKwta/job_working_directory/000/2/tool_script.sh] for tool command [[ "$CONDA_DEFAULT_ENV" = "/Users/john/miniconda2/envs/[email protected]" ] || . /Users/john/miniconda2/bin/activate '/Users/john/miniconda2/envs/[email protected]' >conda_activate.log 2>&1 ; seqtk seq -A '/tmp/tmpLvKwta/files/000/dataset_1.dat' > '/tmp/tmpLvKwta/files/000/dataset_2.dat']
168168
2017-02-22 10:13:29,516 DEBUG [galaxy.tools.deps] Using dependency samtools version None of type conda
169169
2017-02-22 10:13:29,516 DEBUG [galaxy.tools.deps] Using dependency samtools version None of type conda
170170
ok

docs/_writing_dependencies_containers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ tool from the introductory tutorial.
102102
2017-03-01 08:18:20,325 INFO [galaxy.tools.deps.containers] Checking with container resolver [ExplicitDockerContainerResolver[]] found description [None]
103103
2017-03-01 08:18:20,468 INFO [galaxy.tools.deps.containers] Checking with container resolver [CachedMulledDockerContainerResolver[namespace=None]] found description [None]
104104
2017-03-01 08:18:20,881 INFO [galaxy.tools.deps.containers] Checking with container resolver [MulledDockerContainerResolver[namespace=biocontainers]] found description [ContainerDescription[identifier=quay.io/biocontainers/seqtk:1.2--0,type=docker]]
105-
2017-03-01 08:18:20,904 INFO [galaxy.jobs.command_factory] Built script [/tmp/tmpw8_UQm/job_working_directory/000/2/tool_script.sh] for tool command [seqtk seq -a '/tmp/tmpw8_UQm/files/000/dataset_1.dat' > '/tmp/tmpw8_UQm/files/000/dataset_2.dat']
105+
2017-03-01 08:18:20,904 INFO [galaxy.jobs.command_factory] Built script [/tmp/tmpw8_UQm/job_working_directory/000/2/tool_script.sh] for tool command [seqtk seq -A '/tmp/tmpw8_UQm/files/000/dataset_1.dat' > '/tmp/tmpw8_UQm/files/000/dataset_2.dat']
106106
2017-03-01 08:18:21,060 DEBUG [galaxy.tools.deps] Using dependency samtools version None of type conda
107107
2017-03-01 08:18:21,061 DEBUG [galaxy.tools.deps] Using dependency samtools version None of type conda
108108
ok

docs/_writing_intro.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ still need to open up the editor and fill out the command template, describe
3434
input parameters, tool outputs, write a help section, etc.
3535

3636
The ``tool_init`` command can do a little bit better than this as well. We can
37-
use the test command we tried above ``seqtk seq -a 2.fastq > 2.fasta`` as
37+
use the test command we tried above ``seqtk seq -A 2.fastq > 2.fasta`` as
3838
an example to generate a command block by specifing the inputs and the outputs
3939
as follows.
4040

@@ -44,7 +44,7 @@ as follows.
4444
--id 'seqtk_seq' \
4545
--name 'Convert to FASTA (seqtk)' \
4646
--requirement [email protected] \
47-
--example_command 'seqtk seq -a 2.fastq > 2.fasta' \
47+
--example_command 'seqtk seq -A 2.fastq > 2.fasta' \
4848
--example_input 2.fastq \
4949
--example_output 2.fasta
5050

@@ -63,7 +63,7 @@ definitions for the input and output as well as an actual command template.
6363
--id 'seqtk_seq' \
6464
--name 'Convert to FASTA (seqtk)' \
6565
--requirement [email protected] \
66-
--example_command 'seqtk seq -a 2.fastq > 2.fasta' \
66+
--example_command 'seqtk seq -A 2.fastq > 2.fasta' \
6767
--example_input 2.fastq \
6868
--example_output 2.fasta \
6969
--test_case \

0 commit comments

Comments
 (0)