Skip to content

Commit e6497bc

Browse files
authored
Merge pull request #3546 from mirpedrol/patch-3.2.1
merge to main for patch 3.2.1
2 parents 52e8109 + 31b4d43 commit e6497bc

File tree

7 files changed

+25
-37
lines changed

7 files changed

+25
-37
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# nf-core/tools: Changelog
22

3+
## [v3.2.1 - Pewter Pangolin Patch](https://github.com/nf-core/tools/releases/tag/3.2.1) - [2025-04-29]
4+
5+
### Template
6+
7+
- Run awsfulltest after release, and with dev revision on PRs to master/main ([#3485](https://github.com/nf-core/tools/pull/3485))
8+
- Downgrade nf-schema to fix CI tests ([#3544](https://github.com/nf-core/tools/pull/3544))
9+
- Fail nextflow run test gracefully for `latest everything` ([#3543](https://github.com/nf-core/tools/pull/3543))
10+
311
## [v3.2.0 - Pewter Pangolin](https://github.com/nf-core/tools/releases/tag/3.2.0) - [2025-01-27]
412

513
### Template

nf_core/pipeline-template/.github/workflows/awsfulltest.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,39 @@ name: nf-core AWS full size tests
44
# It runs the -profile 'test_full' on AWS batch
55

66
on:
7-
pull_request:
8-
branches:
9-
- main
10-
- master
117
workflow_dispatch:
128
pull_request_review:
139
types: [submitted]
10+
release:
11+
types: [published]
1412

1513
jobs:
1614
run-platform:
1715
name: Run AWS full tests
18-
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered
19-
if: github.repository == '{{ name }}' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
16+
# run only if the PR is approved by at least 2 reviewers and against the master/main branch or manually triggered
17+
if: github.repository == '{{ name }}' && github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main') || github.event_name == 'workflow_dispatch'
2018
runs-on: ubuntu-latest
2119
steps:
22-
- name: Get PR reviews
23-
uses: octokit/[email protected]
24-
if: github.event_name != 'workflow_dispatch'
25-
id: check_approvals
26-
continue-on-error: true
27-
with:
28-
route: GET /repos/{%- raw -%}${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
32-
- name: Check for approvals
33-
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
34-
run: |
35-
echo "No review approvals found. At least 2 approvals are required to run this action automatically."
36-
exit 1
37-
38-
- name: Check for enough approvals (>=2)
39-
id: test_variables
40-
if: github.event_name != 'workflow_dispatch'
20+
- name: Set revision variable
21+
id: revision
4122
run: |
42-
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'{% endraw %}
43-
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
44-
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required
23+
echo "revision={%- raw -%}${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'release') && github.sha || 'dev' }}" >> "$GITHUB_OUTPUT"
4524
4625
- name: Launch workflow via Seqera Platform
4726
uses: seqeralabs/action-tower-launch@v2
4827
# TODO nf-core: You can customise AWS full pipeline tests as required
4928
# Add full size test data (but still relatively small datasets for few samples)
50-
# on the `test_full.config` test runs with only one set of parameters {%- raw %}
29+
# on the `test_full.config` test runs with only one set of parameters
5130
with:
5231
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
5332
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
5433
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
55-
revision: ${{ github.sha }}
56-
workdir: s3://${{ secrets.AWS_S3_BUCKET }}{% endraw %}/work/{{ short_name }}/{% raw %}work-${{ github.sha }}{% endraw %}
34+
revision: ${{ steps.revision.outputs.revision }}
35+
workdir: s3://${{ secrets.AWS_S3_BUCKET }}{% endraw %}/work/{{ short_name }}/{% raw %}work-${{ steps.revision.outputs.revision }}{% endraw %}
5736
parameters: |
5837
{
5938
"hook_url": "{% raw %}${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}{% endraw %}",
60-
"outdir": "s3://{% raw %}${{ secrets.AWS_S3_BUCKET }}{% endraw %}/{{ short_name }}/{% raw %}results-${{ github.sha }}{% endraw %}"
39+
"outdir": "s3://{% raw %}${{ secrets.AWS_S3_BUCKET }}{% endraw %}/{{ short_name }}/{% raw %}results-${{ steps.revision.outputs.revision }}{% endraw %}"
6140
}
6241
profiles: test_full
6342

nf_core/pipeline-template/.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ jobs:
8383
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
8484

8585
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
86+
continue-on-error: ${{ matrix.NXF_VER == 'latest-everything' }}
8687
run: |
8788
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results{% endraw %}

nf_core/pipeline-template/nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ manifest {
295295
{% if nf_schema -%}
296296
// Nextflow plugins
297297
plugins {
298-
id 'nf-schema@2.3.0' // Validation of pipeline parameters and creation of an input channel from a sample sheet
298+
id 'nf-schema@2.2.0' // Validation of pipeline parameters and creation of an input channel from a sample sheet
299299
}
300300

301301
validation {

nf_core/pipelines/lint/actions_awsfulltest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def actions_awsfulltest(self) -> Dict[str, List[str]]:
4242

4343
# Check that the action is only turned on for published releases
4444
try:
45-
if wf[True]["pull_request"]["branches"] != ["main", "master"]:
46-
raise AssertionError()
4745
if wf[True]["pull_request_review"]["types"] != ["submitted"]:
4846
raise AssertionError()
4947
if "workflow_dispatch" not in wf[True]:
5048
raise AssertionError()
49+
if wf[True]["release"]["types"] != ["published"]:
50+
raise AssertionError()
5151
except (AssertionError, KeyError, TypeError):
5252
failed.append("`.github/workflows/awsfulltest.yml` is not triggered correctly")
5353
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import find_packages, setup
44

5-
version = "3.2.0"
5+
version = "3.2.1"
66

77
with open("README.md") as f:
88
readme = f.read()

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
GITLAB_BRANCH_ORG_PATH_BRANCH = "org-path"
3131
GITLAB_BRANCH_TEST_OLD_SHA = "e772abc22c1ff26afdf377845c323172fb3c19ca"
3232
GITLAB_BRANCH_TEST_NEW_SHA = "7d73e21f30041297ea44367f2b4fd4e045c0b991"
33-
GITLAB_NFTEST_BRANCH = "nf-test-tests-self-hosted-runners"
33+
GITLAB_NFTEST_BRANCH = "nf-test-tests-old"
3434

3535

3636
def with_temporary_folder(func: Callable[..., Any]) -> Callable[..., Any]:

0 commit comments

Comments
 (0)