Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/actions/nf-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,27 @@ runs:
version: "${{ env.NFT_VER }}"
install-pdiff: true

- name: Setup apptainer
- name: Detect architecture
id: detect-arch
if: contains(inputs.profile, 'singularity')
shell: bash
run: |
ARCH=$(uname -m)
echo "arch=$ARCH" >> $GITHUB_OUTPUT
echo "Detected architecture: $ARCH"

- name: Setup apptainer (x86_64)
if: contains(inputs.profile, 'singularity') && steps.detect-arch.outputs.arch != 'aarch64'
uses: eWaterCycle/setup-apptainer@main

- name: Setup apptainer (ARM64)
if: contains(inputs.profile, 'singularity') && steps.detect-arch.outputs.arch == 'aarch64'
shell: bash
run: |
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt-get update
sudo apt-get install -y apptainer

- name: Set up Singularity
if: contains(inputs.profile, 'singularity')
shell: bash
Expand Down
149 changes: 149 additions & 0 deletions .github/workflows/nf-test-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
name: Run nf-test on ARM
on:
pull_request:
paths-ignore:
- "docs/**"
- "**/meta.yml"
- "**/*.md"
- "**/*.png"
- "**/*.svg"
release:
types: [published]
workflow_dispatch:

# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NFT_VER: "0.9.3"
NFT_WORKDIR: "~"
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity

jobs:
nf-test-changes-arm:
name: nf-test-changes-arm
runs-on: # use self-hosted runners
- runs-on=${{ github.run_id }}-nf-test-changes-arm
- runner=4cpu-linux-arm64
outputs:
shard: ${{ steps.set-shards.outputs.shard }}
total_shards: ${{ steps.set-shards.outputs.total_shards }}
steps:
- name: Clean Workspace # Purge the workspace in case it's running on a self-hosted runner
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
fetch-depth: 0

- name: get number of shards
id: set-shards
uses: ./.github/actions/get-shards
env:
NFT_VER: ${{ env.NFT_VER }}
# Skip sentieon tests - no ARM containers available
SKIP_SENTIEON: true
with:
max_shards: 14

- name: debug
run: |
echo ${{ steps.set-shards.outputs.shard }}
echo ${{ steps.set-shards.outputs.total_shards }}

nf-test-arm:
name: "${{ matrix.profile }}-${{ matrix.archProfile }} | ${{ matrix.NXF_VER }} | ${{ matrix.shard }}/${{ needs.nf-test-changes-arm.outputs.total_shards }}"
needs: [nf-test-changes-arm]
if: ${{ needs.nf-test-changes-arm.outputs.total_shards != '0' }}
runs-on: # use self-hosted runners
- runs-on=${{ github.run_id }}-nf-test
- runner=4cpu-linux-arm64
strategy:
fail-fast: false
matrix:
shard: ${{ fromJson(needs.nf-test-changes-arm.outputs.shard) }}
archProfile: [arm64]
profile: [docker_arm, conda_arm, singularity_arm]
isMain:
- ${{ github.base_ref == 'master' || github.base_ref == 'main' }}
# Exclude conda and singularity on dev
# exclude:
# - isMain: false
# profile: "conda_arm"
# - isMain: false
# profile: "singularity_arm"
NXF_VER:
- "25.10.0"
- "latest-everything"
env:
NXF_ANSI_LOG: false
TOTAL_SHARDS: ${{ needs.nf-test-changes-arm.outputs.total_shards }}

steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
fetch-depth: 0

- name: Run nf-test
id: run_nf_test
uses: ./.github/actions/nf-test
continue-on-error: ${{ matrix.NXF_VER == 'latest-everything' }}
env:
NFT_WORKDIR: ${{ env.NFT_WORKDIR }}
NXF_VERSION: ${{ matrix.NXF_VER }}
# Skip sentieon tests - no ARM containers available
SKIP_SENTIEON: true
with:
profile: ${{ matrix.profile }},${{ matrix.archProfile }}
shard: ${{ matrix.shard }}
total_shards: ${{ env.TOTAL_SHARDS }}

- name: Report test status
if: ${{ always() }}
run: |
if [[ "${{ steps.run_nf_test.outcome }}" == "failure" ]]; then
echo "::error::Test with ${{ matrix.NXF_VER }} failed"
# Add to workflow summary
echo "## ❌ Test failed: ${{ matrix.profile }},${{ matrix.archProfile }} | ${{ matrix.NXF_VER }} | Shard ${{ matrix.shard }}/${{ env.TOTAL_SHARDS }}" >> $GITHUB_STEP_SUMMARY
if [[ "${{ matrix.NXF_VER }}" == "latest-everything" ]]; then
echo "::warning::Test with latest-everything failed but will not cause workflow failure. Please check if the error is expected or if it needs fixing."
fi
if [[ "${{ matrix.NXF_VER }}" != "latest-everything" ]]; then
exit 1
fi
fi

confirm-pass-arm:
needs: [nf-test-changes-arm, nf-test-arm]
if: always()
runs-on: # use self-hosted runners
- runs-on=${{ github.run_id }}-confirm-pass
- runner=2cpu-linux-x64
steps:
- name: One or more tests failed (excluding latest-everything)
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

- name: One or more tests cancelled
if: ${{ contains(needs.*.result, 'cancelled') }}
run: exit 1

- name: All tests ok
if: ${{ contains(needs.*.result, 'success') }}
run: exit 0

- name: debug-print
if: always()
run: |
echo "::group::DEBUG: needs Contents"
echo "DEBUG: toJSON(needs) = ${{ toJSON(needs) }}"
echo "DEBUG: toJSON(needs.*.result) = ${{ toJSON(needs.*.result) }}"
echo "::endgroup::"
10 changes: 5 additions & 5 deletions .github/workflows/nf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ jobs:
isMain:
- ${{ github.base_ref == 'master' || github.base_ref == 'main' }}
# Exclude conda and singularity on dev
exclude:
- isMain: false
profile: "conda"
- isMain: false
profile: "singularity"
# exclude:
# - isMain: false
# profile: "conda"
# - isMain: false
# profile: "singularity"
NXF_VER:
- "25.10.0"
- "latest-everything"
Expand Down
22 changes: 0 additions & 22 deletions conf/conda_lock_files_amd64.config

This file was deleted.

22 changes: 0 additions & 22 deletions conf/conda_lock_files_arm64.config

This file was deleted.

21 changes: 21 additions & 0 deletions conf/containers_conda_lock_files_amd64.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
process { withName: 'COLLECT_RESULTS' { container = 'modules/local/collect_results/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'CONSOLIDATE_RESULTS' { container = 'modules/local/consolidate_results/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'CV_SPLIT' { container = 'modules/local/cv_split/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'EVALUATE_FINAL' { container = 'modules/local/evaluate_final/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'EVALUATE_FIND_MAX' { container = 'modules/local/evaluate_find_max/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'FINAL_SPLIT' { container = 'modules/local/final_split/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'FIT_CURVES' { container = 'modules/local/fit_curves/.conda-lock/linux-amd64-bd-3b584472647bda92_1.txt' } }
process { withName: 'HPAM_SPLIT' { container = 'modules/local/hpam_split/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'LOAD_RESPONSE' { container = 'modules/local/load_response/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'MAKE_MODEL_CHANNEL' { container = 'modules/local/make_model_channel/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'POSTPROCESS_CURVECURATOR_DATA' { container = 'modules/local/postprocess_curvecurator_output/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'PREDICT_FULL' { container = 'modules/local/predict_full/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'PREPROCESS_RAW_VIABILITY' { container = 'modules/local/preprocess_raw_viability/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'RANDOMIZATION_SPLIT' { container = 'modules/local/randomization_split/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'RANDOMIZATION_TEST' { container = 'modules/local/randomization_test/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'ROBUSTNESS_TEST' { container = 'modules/local/robustness_test/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'TRAIN_AND_PREDICT_CV' { container = 'modules/local/train_and_predict_cv/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'TRAIN_FINAL_MODEL' { container = 'modules/local/train_final_model/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'TUNE_FINAL_MODEL' { container = 'modules/local/tune_final_model/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
process { withName: 'UNZIP' { container = 'modules/nf-core/unzip/.conda-lock/linux-amd64-bd-94efedc6cfea7db9_1.txt' } }
process { withName: 'VISUALIZE_RESULTS' { container = 'modules/local/visualize_results/.conda-lock/linux-amd64-bd-af9bf54ab78b9680_2.txt' } }
21 changes: 21 additions & 0 deletions conf/containers_conda_lock_files_arm64.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
process { withName: 'COLLECT_RESULTS' { container = 'modules/local/collect_results/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'CONSOLIDATE_RESULTS' { container = 'modules/local/consolidate_results/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'CV_SPLIT' { container = 'modules/local/cv_split/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'EVALUATE_FINAL' { container = 'modules/local/evaluate_final/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'EVALUATE_FIND_MAX' { container = 'modules/local/evaluate_find_max/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'FINAL_SPLIT' { container = 'modules/local/final_split/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'FIT_CURVES' { container = 'modules/local/fit_curves/.conda-lock/linux-arm64-bd-97424bed6a7f7435_1.txt' } }
process { withName: 'HPAM_SPLIT' { container = 'modules/local/hpam_split/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'LOAD_RESPONSE' { container = 'modules/local/load_response/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'MAKE_MODEL_CHANNEL' { container = 'modules/local/make_model_channel/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'POSTPROCESS_CURVECURATOR_DATA' { container = 'modules/local/postprocess_curvecurator_output/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'PREDICT_FULL' { container = 'modules/local/predict_full/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'PREPROCESS_RAW_VIABILITY' { container = 'modules/local/preprocess_raw_viability/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'RANDOMIZATION_SPLIT' { container = 'modules/local/randomization_split/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'RANDOMIZATION_TEST' { container = 'modules/local/randomization_test/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'ROBUSTNESS_TEST' { container = 'modules/local/robustness_test/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'TRAIN_AND_PREDICT_CV' { container = 'modules/local/train_and_predict_cv/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'TRAIN_FINAL_MODEL' { container = 'modules/local/train_final_model/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'TUNE_FINAL_MODEL' { container = 'modules/local/tune_final_model/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
process { withName: 'UNZIP' { container = 'modules/nf-core/unzip/.conda-lock/linux-arm64-bd-c5870abfebd19646_1.txt' } }
process { withName: 'VISUALIZE_RESULTS' { container = 'modules/local/visualize_results/.conda-lock/linux-arm64-bd-c833eff049957dc2_1.txt' } }
Loading
Loading