Skip to content

Commit

Permalink
balance chunks in CI workflow
Browse files Browse the repository at this point in the history
fixes: galaxyproject/tools-iuc#2959

Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
2 people authored and TomHarrop committed Nov 8, 2022
1 parent 1151339 commit 931d032
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,24 @@ jobs:
- name: Install Planemo
run: pip install planemo
- name: Planemo ci_find_tools
run: planemo ci_find_repos --chunk_count 40 --chunk ${{ matrix.chunk }} --exclude test_repositories --exclude packages --exclude deprecated --exclude_from .tt_skip --exclude_from .tt_biocontainer_skip --output tool.list
run: planemo ci_find_tools --chunk_count 40 --chunk ${{ matrix.chunk }} --exclude test_repositories --exclude packages --exclude deprecated --exclude_from .tt_skip --exclude_from .tt_biocontainer_skip --group_tools --output tool.list
- name: Show repo list
run: cat tool.list
- name: Planemo test tools
run: |
while read -r DIR; do
if [[ "$DIR" =~ ^data_managers.* ]]; then
TESTPATH=$(planemo ci_find_tools "$DIR")
else
TESTPATH="$DIR"
fi
mkdir json_output/
while read -r TOOLS; do
if grep -lqf .tt_biocontainer_skip <(echo $DIR); then
PLANEMO_OPTIONS=""
else
PLANEMO_OPTIONS="--biocontainers --no_dependency_resolution --no_conda_auto_init"
fi
PIP_QUIET=1 planemo test --database_connection postgresql://postgres:postgres@localhost:5432/galaxy --no_conda_auto_init --galaxy_branch $GALAXY_RELEASE --biocontainers --no_dependency_resolution --galaxy_python_version ${{ matrix.python-version }} --test_output_json "$DIR"/tool_test_output.json "$TESTPATH" || true
json=$(mktemp -u -p json_output --suff .json)
PIP_QUIET=1 planemo test --database_connection postgresql://postgres:postgres@localhost:5432/galaxy --no_conda_auto_init --galaxy_branch $GALAXY_RELEASE --biocontainers --no_dependency_resolution --galaxy_python_version ${{ matrix.python-version }} --test_output_json $json $TOOLS || true
docker system prune --all --force --volumes || true
done < tool.list
- name: Merge tool_test_output.json files
run: find . -name tool_test_output.json -exec sh -c 'planemo merge_test_reports "$@" tool_test_output.json' sh {} +
run: planemo merge_test_reports json_output/*.json tool_test_output.json
- name: Create tool_test_output.html
run: planemo test_reports tool_test_output.json --test_output tool_test_output.html
- name: Copy artifacts into place
Expand Down

0 comments on commit 931d032

Please sign in to comment.