Skip to content

Commit

Permalink
refactor all ymls except snm3c and multisnss2
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Feb 14, 2025
1 parent e488441 commit 9de52fd
Show file tree
Hide file tree
Showing 22 changed files with 266 additions and 7,557 deletions.
431 changes: 13 additions & 418 deletions .github/workflows/test_atac.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_cram_to_unmapped_bams.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_exome_germline_single_sample.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_exome_reprocessing.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/test_illumina_genotyping_array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ on:
default: "master"

jobs:
test_pipeline:
TestIlluminaGenotypingArray:
uses: ./.github/workflows/warp_test_workflow.yml
with:
pipeline_name: TestIlluminaGenotypingArray
Expand Down
432 changes: 13 additions & 419 deletions .github/workflows/test_imputation.yml

Large diffs are not rendered by default.

432 changes: 13 additions & 419 deletions .github/workflows/test_joint_genotyping.yml

Large diffs are not rendered by default.

431 changes: 13 additions & 418 deletions .github/workflows/test_multiome.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
- 'tasks/broad/TerraCopyFilesFromCloudToCloud.wdl'
# this file
- '.github/workflows/test_multisamplesmartseq2singlenucleus.yml'
- '.github/workflows/warp_test_workflow.yml'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
432 changes: 13 additions & 419 deletions .github/workflows/test_optimus.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_pairedtag.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_reblockGVCF.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_rna_with_umis.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_slideseq.yml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .github/workflows/test_snm3c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
- 'verification/test-wdls/Testsnm3C.wdl'
- 'tasks/broad/TerraCopyFilesFromCloudToCloud.wdl'
- '.github/workflows/test_snm3c.yml'
- '.github/workflows/warp_test_workflow.yml'


# Allows you to run this workflow manually from the Actions tab
Expand Down
433 changes: 13 additions & 420 deletions .github/workflows/test_ultima_genomics_joint_genotyping.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_ultima_genomics_whole_genome_cram_only.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_ultima_genomics_whole_genome_germline.yml

Large diffs are not rendered by default.

433 changes: 13 additions & 420 deletions .github/workflows/test_variant_calling.yml

Large diffs are not rendered by default.

434 changes: 13 additions & 421 deletions .github/workflows/test_whole_genome_germline_single_sample.yml

Large diffs are not rendered by default.

434 changes: 13 additions & 421 deletions .github/workflows/test_whole_genome_reprocessing.yml

Large diffs are not rendered by default.

30 changes: 29 additions & 1 deletion .github/workflows/warp_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,28 @@ jobs:
actions: write

steps:
# Step 1: Checkout code
# Purpose: Clones the repository code at the specified reference
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

# Step 2: Setup Python
# Purpose: Installs Python 3.11 for running pipeline scripts
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'

# Step 3: Install Dependencies
# Purpose: Installs required Python packages for the pipeline
- name: Install dependencies
run: |
cd scripts/firecloud_api/
pip install -r requirements.txt
# Step 4: Set Branch Name
# Purpose: Determines and sets the correct branch name for either PR or direct commits
- name: Set Branch Name
id: set_branch
run: |
Expand All @@ -82,6 +90,8 @@ jobs:
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
fi
# Step 5: Set Test Type
# Purpose: Determines and sets the correct test type based on the branch name
- name: Set Test Type
id: set_test_type
run: |
Expand All @@ -98,6 +108,8 @@ jobs:
echo "testType=${{ inputs.test_type }}"
fi
# Step 6: Create Method Configuration
# Purpose: Sets up the testing configuration in Terra workspace
- name: Create new method configuration
run: |
echo "Creating new method configuration for branch: $BRANCH_NAME"
Expand All @@ -114,13 +126,19 @@ jobs:
echo "METHOD_CONFIG_NAME=$METHOD_CONFIG_NAME" >> $GITHUB_ENV
# Step 7: Cancel Previous Runs
# Purpose: Cancels previous GHA workflows from the same branch (regardless of plumbing or scientific test type)
# to avoid running multiple tests at the same time
- name: Cancel Previous GHA Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
all_but_latest: true
ignore_sha: true

# Step 8: Cancel Previous Terra Submissions
# Purpose: Abort previous Terra submissions from the same branch to avoid running multiple tests at the same time
# Will not abort a Terra submission if it is a scientific test
- name: Cancel Previous Terra Submissions
if: ${{ !contains(env.METHOD_CONFIG_NAME, '_Scientific_') }}
run: |
Expand All @@ -134,6 +152,8 @@ jobs:
--test_type "$testType" \
cancel_old_submissions
# Step 9: Handle Git Commit Hash
# Purpose: Gets the correct Github commit hash for version tracking
- name: Determine Github Commit Hash
id: determine_github_commit_hash
run: |
Expand All @@ -148,11 +168,13 @@ jobs:
exit 1
fi
# Step 10: Compare Hashes
# Purpose: Compares the Dockstore and Github commit hashes to ensure they match
- name: Compare Dockstore and Github Commit Hashes with Retry
id: compare_hashes
run: |
# Wait 5.5 minutes for Dockstore to update
sleep 60
sleep 330
MAX_WAIT_TIME=$((15 * 60)) # 15 minutes in seconds
WAIT_INTERVAL=60 # 1 minute in seconds
Expand Down Expand Up @@ -187,6 +209,8 @@ jobs:
GITHUB_COMMIT_HASH: ${{ env.GITHUB_COMMIT_HASH }}
DOCKSTORE_TOKEN: ${{ secrets.DOCKSTORE_TOKEN }}

# Step 11: Run Tests
# Purpose: Main testing step - runs the pipeline and collects results
- name: Update test inputs, Upload to Terra, Submit, Monitor and Retrieve Outputs
run: |
UPDATE_TRUTH="${{ inputs.update_truth }}"
Expand Down Expand Up @@ -365,11 +389,15 @@ jobs:
exit 1
fi
# Step 13: Print Summary on Success
# Purpose: Prints the final summary of the pipeline execution in case of success
- name: Print Summary on Success
if: success()
run: |
echo "# :white_check_mark: Pipeline Execution Summary :white_check_mark:" >> $GITHUB_STEP_SUMMARY
# Step 14: Print Summary on Failure
# Purpose: Prints the final summary of the pipeline execution in case of failure
- name: Print Summary on Failure
if: failure()
run: |
Expand Down

0 comments on commit 9de52fd

Please sign in to comment.