Skip to content

Commit 4e5783c

Browse files
committed
Merge branch 'master' into transfer-retries-fix
2 parents cfcc70a + cf9bd87 commit 4e5783c

File tree

137 files changed

+6714
-1080
lines changed

Some content is hidden

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

137 files changed

+6714
-1080
lines changed

.github/workflows/pulsar.yaml

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ on: [push, pull_request]
33
jobs:
44
lint:
55
name: Lint
6-
runs-on: ubuntu-latest
6+
runs-on: ubuntu-20.04
77
strategy:
88
matrix:
99
tox-env: [py37-lint, py37-dist, py37-docs]
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v2
12+
- uses: actions/setup-python@v3
1313
with:
1414
python-version: 3.7
1515
- name: Install tox
@@ -18,7 +18,7 @@ jobs:
1818
run: tox -e ${{ matrix.tox-env }}
1919
mypy:
2020
name: MyPy
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-20.04
2222
strategy:
2323
matrix:
2424
include:
@@ -30,7 +30,7 @@ jobs:
3030
python: 3.8
3131
steps:
3232
- uses: actions/checkout@v2
33-
- uses: actions/setup-python@v2
33+
- uses: actions/setup-python@v3
3434
with:
3535
python-version: ${{ matrix.python }}
3636
- name: Install tox
@@ -41,52 +41,77 @@ jobs:
4141
run: tox -e ${{ matrix.tox-env }}
4242
test:
4343
name: Run Tests
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-20.04
4545
strategy:
4646
matrix:
4747
include:
48-
- tox-env: py36-test
48+
- tox-env: py36-test-ci
4949
python: 3.6
5050
- tox-env: py36-test-unit
5151
python: 3.6
52-
- tox-env: py37-test
52+
- tox-env: py37-test-ci
5353
python: 3.7
5454
- tox-env: py37-test-unit
5555
python: 3.7
56-
- tox-env: py38-test
56+
- tox-env: py38-test-ci
5757
python: 3.8
5858
- tox-env: py38-test-unit
5959
python: 3.8
60-
- tox-env: py39-test
60+
- tox-env: py39-test-ci
6161
python: 3.9
6262
- tox-env: py39-test-unit
6363
python: 3.9
64+
- tox-env: py39-install-wheel-no-conda
65+
python: 3.9
6466
- tox-env: py37-install-wheel
6567
python: 3.7
68+
services:
69+
job-files:
70+
image: galaxy/simple-job-files:latest
71+
env:
72+
JOB_FILES_ROOT_DIRECTORY: /tmp
73+
ports:
74+
- '8000:8000'
75+
volumes:
76+
- '/tmp:/tmp:rw'
6677
steps:
6778
- uses: actions/checkout@v2
68-
- uses: actions/setup-python@v2
79+
- uses: actions/setup-python@v3
6980
with:
7081
python-version: ${{ matrix.python }}
7182
- name: Install tox
7283
run: pip install tox
7384
- name: Run setup
7485
run: .ci/setup_tests.sh
7586
- name: Run tests
76-
run: export PULSAR_TEST_KEY=test_data/testkey; export TEST_WEBAPP_POST_SHUTDOWN_SLEEP=1; . local_env.sh; tox -e ${{ matrix.tox-env }}
77-
# https://github.com/coverallsapp/github-action/issues/30
78-
# - name: Coveralls Parallel
79-
# uses: coverallsapp/github-action@master
80-
# with:
81-
# github-token: ${{ secrets.github_token }}
82-
# flag-name: run-${{ matrix.tox-env }}
83-
# parallel: true
84-
#finish:
85-
# needs: test
86-
# runs-on: ubuntu-latest
87-
# steps:
88-
# - name: Coveralls Finished
89-
# uses: coverallsapp/github-action@master
90-
# with:
91-
# github-token: ${{ secrets.github_token }}
92-
# parallel-finished: true
87+
run: . local_env.sh; tox -e ${{ matrix.tox-env }}
88+
env:
89+
PULSAR_TEST_KEY: "test_data/testkey"
90+
PULSAR_TEST_EXTERNAL_JOB_FILES_URL: "http://localhost:8000"
91+
PULSAR_TEST_EXTERNAL_JOB_FILES_DIRECTORY: "/tmp"
92+
TEST_WEBAPP_POST_SHUTDOWN_SLEEP: 1
93+
## Can't get the following tests to work - they fall over on the containerized job not being able to
94+
## connect to the host running the Pulsar server for file transfers in stage out/in.
95+
# tes-test:
96+
# name: Run Tests
97+
# runs-on: ubuntu-20.04
98+
# strategy:
99+
# matrix:
100+
# include:
101+
# - tox-env: py37-test-funnel
102+
# python: 3.7
103+
# steps:
104+
# - uses: actions/checkout@v2
105+
# - uses: actions/setup-python@v3
106+
# with:
107+
# python-version: ${{ matrix.python }}
108+
# - name: Set up Go 1.x
109+
# uses: actions/setup-go@v2
110+
# with:
111+
# go-version: ^1.13
112+
# - name: Pre-fetch required docker containers
113+
# run: docker pull 'galaxy/pulsar-pod-staging:0.15.0.0' && docker pull 'conda/miniconda3'
114+
# - name: Install tox
115+
# run: pip install tox
116+
# - name: Run tests
117+
# run: PULSAR_TEST_INFRASTRUCTURE_HOST="_PLATFORM_AUTO_" FUNNEL_SERVER_TARGET=DEPLOY PULSAR_TES_SERVER_TARGET=http://localhost:8000/ tox -e ${{ matrix.tox-env }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dist
66
*.egg
77
*.egg-info
88
docs/_build
9+
docs/plantuml.jar
910
cache
1011
*.pyc
1112
*~

.isort.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[settings]
2+
combine_as_imports=true
3+
extend_skip=doc/*,scripts/*
4+
force_alphabetical_sort_within_sections=true
5+
# Override force_grid_wrap value from profile=black, but black is still happy
6+
force_grid_wrap=2
7+
line_length=140
8+
no_lines_before=LOCALFOLDER
9+
profile=black
10+
reverse_relative=true
11+
skip_gitignore=true
12+
# Make isort run faster by skipping database
13+
skip_glob=database/*
14+
src_paths=pulsar,test

CONTRIBUTING.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,4 @@ Before you submit a pull request, check that it meets these guidelines:
117117
1. If the pull request adds functionality, the docs should ideally be updated.
118118
Put your new functionality into a function with a docstring. (Until the
119119
@jmchilton learns to do this consistently this is only a suggestion though.)
120-
2. The pull request should work for Python 2.6, 2.7, and 3.4. Check
121-
https://travis-ci.org/galaxyproject/planemo/pull_requests
122-
and make sure that the tests pass for all supported Python versions. The
123-
tests are imperfect and Travis sometimes fails in a transient fashion so
124-
this also isn't strictly required to pass.
120+
2. The pull request should work for Python 3.6 and later.

HISTORY.rst

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,43 @@ History
66
.. to_doc
77
88
---------------------
9-
0.15.0.dev0
9+
0.15.0.dev1
1010
---------------------
1111

12-
12+
* Updated Galaxy+Pulsar container.
13+
* Rework container execution - generalize Kubernetes execution to allow it to work without a
14+
message queue and to allow TES execution based on pydantic-tes (https://github.com/jmchilton/pydantic-tes).
15+
* Add documentation and diagrams for container execution scenarios.
16+
* Rework integration tests to use pytest more aggressively.
17+
* Fixes to CI to run more tests that weren't being executed because Tox was not sending
18+
environment variables through to pytest.
19+
* Add option ``amqp_key_prefix`` to direct task queue naming while retaining simple
20+
default manager names and such in container scheduling deployments.
21+
* Various typing and CI fixes.
22+
23+
---------------------
24+
0.14.16 (2022-10-04)
25+
---------------------
26+
27+
* Fix small regression related to building URLs for client action mapping.
28+
29+
---------------------
30+
0.14.15 (2022-10-03)
31+
---------------------
32+
33+
* Fix small regressions bugs in 0.14.14 - updating runner util code was bigger swap over
34+
than it seemed.
35+
36+
---------------------
37+
0.14.14 (2022-10-30)
38+
---------------------
39+
40+
* Bring in updated Galaxy runner util code. `Pull Request 303`_
41+
* Fix recovering "lost" jobs where the job directory does not exist at
42+
startup/recovery time (thanks to `@natefoo`_). `Pull Request 301`_
43+
* Use urlencode to encode path (thanks to `@mvdbeek`_). `Pull Request 299`_
44+
* Support the k8s_job_ttl_secs_after_finished option as in the Galaxy
45+
Kubernetes runner (thanks to `@natefoo`_). `Pull Request 287`_
1346

1447
---------------------
1548
0.14.13 (2021-12-06)
@@ -418,8 +451,12 @@ History
418451

419452

420453
.. github_links
454+
.. _Pull Request 303: https://github.com/galaxyproject/pulsar/pull/303
455+
.. _Pull Request 301: https://github.com/galaxyproject/pulsar/pull/301
456+
.. _Pull Request 299: https://github.com/galaxyproject/pulsar/pull/299
421457
.. _Pull Request 295: https://github.com/galaxyproject/pulsar/pull/295
422458
.. _Pull Request 294: https://github.com/galaxyproject/pulsar/pull/294
459+
.. _Pull Request 287: https://github.com/galaxyproject/pulsar/pull/287
423460
.. _Pull Request 271: https://github.com/galaxyproject/pulsar/pull/271
424461
.. _Pull Request 274: https://github.com/galaxyproject/pulsar/pull/274
425462
.. _Pull Request 270: https://github.com/galaxyproject/pulsar/pull/270
@@ -548,4 +585,4 @@ History
548585
.. _@mvdbeek: https://github.com/mvdbeek
549586
.. _@tirkarthi: https://github.com/tirkarthi
550587
.. _@natefoo: https://github.com/natefoo
551-
.. _@nsoranzo: https://github.com/nsoranzo
588+
.. _@nsoranzo: https://github.com/nsoranzo

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ open-rtd: docs
128128
open-project:
129129
open $(PROJECT_URL) || xdg-open $(PROJECT_URL)
130130

131+
format: ## Format Python code base
132+
$(IN_VENV) isort .
133+
131134
dist: clean-build clean-pyc
132135
$(IN_VENV) python setup.py sdist bdist_wheel
133136
ls -l dist

dev-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
pycurl
33
kombu
44
pykube
5+
boto3
56

67
# For testing
8+
simple-job-files
79
pytest
810
webtest
911
coverage

docker/coexecutor/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ RUN apt-get update \
3434

3535
ADD pulsar_app-*-py2.py3-none-any.whl /pulsar_app-*-py2.py3-none-any.whl
3636

37-
RUN pip install --no-cache-dir /pulsar_app-*-py2.py3-none-any.whl[galaxy_extended_metadata]
37+
RUN pip install --upgrade setuptools && pip install pyOpenSSL --upgrade && pip install cryptography --upgrade
38+
RUN pip install --no-cache-dir /pulsar_app-*-py2.py3-none-any.whl[galaxy_extended_metadata] && rm /pulsar_app-*-py2.py3-none-any.whl
39+
RUN pip install --upgrade 'importlib-metadata<5.0'
3840
RUN _pulsar-configure-galaxy-cvmfs
3941
RUN _pulsar-conda-init --conda_prefix=/pulsar_dependencies/conda

docker/coexecutor/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ dist:
44
cd ../..; make dist; cp dist/pulsar*whl docker/coexecutor
55

66
docker-image:
7-
docker build -t 'galaxy/pulsar-pod-staging:0.14.1' .
7+
docker build -t 'galaxy/pulsar-pod-staging:0.15.0.2' .
88

99
all: dist docker-image

0 commit comments

Comments
 (0)