Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Launch runs for regression tests from CI (2/2) #2001

Merged
merged 543 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
543 commits
Select commit Hold shift + click to select a range
7d8bdb6
[rebuild standard]
amygutierrez Mar 30, 2023
70427c2
only testing CPAC image, no variants
amygutierrez Apr 3, 2023
dabbcfb
only testing with cpac image - no variants
amygutierrez Apr 3, 2023
1fed197
removed extra lines from smoke-test block that are no longer needed
amygutierrez Apr 3, 2023
3a42b06
making the git_event a ready for review pull request
amygutierrez Apr 4, 2023
9eca7f2
testing other way to call workflow_call
amygutierrez Apr 4, 2023
8f783d9
removed extra step
amygutierrez Apr 4, 2023
09ed3e7
empty commit
amygutierrez Apr 4, 2023
864a798
workflow_call after PR
amygutierrez Apr 4, 2023
f2d7004
temporarily triggering workflow so that regression test runs on push
amygutierrez Apr 4, 2023
3b8f041
testing
amygutierrez Mar 28, 2023
b765497
testing
amygutierrez Mar 28, 2023
c3d2ea0
testing merge
amygutierrez Mar 28, 2023
e23263b
comment for testing
amygutierrez Mar 23, 2023
d6e6f46
random comment for test
amygutierrez Mar 23, 2023
bfbef62
testing
amygutierrez Mar 28, 2023
5a636a4
testing
amygutierrez Mar 28, 2023
2d49aaf
testing merge
amygutierrez Mar 28, 2023
9b30cf4
testing merge without update check
amygutierrez Mar 28, 2023
fa52cf9
testing
amygutierrez Mar 30, 2023
677ca4c
deleted repeated block
amygutierrez Apr 3, 2023
518a04f
rebase
amygutierrez Apr 4, 2023
d2a662d
testing
amygutierrez Apr 4, 2023
9d5b6d7
testing
amygutierrez Mar 28, 2023
3745635
testing
amygutierrez Mar 28, 2023
087cc86
testing merge
amygutierrez Mar 28, 2023
d4e99f3
testing
amygutierrez Mar 28, 2023
6852b81
testing
amygutierrez Mar 28, 2023
e6fbf9f
testing merge
amygutierrez Mar 28, 2023
76e52c4
testing merge without update check
amygutierrez Mar 28, 2023
326aff3
testing
amygutierrez Mar 30, 2023
c0811e0
rebase
amygutierrez Apr 4, 2023
6247c89
testing
amygutierrez Apr 4, 2023
d17e5d6
rebase and test
amygutierrez Apr 4, 2023
79a6395
docker_tag will be input for reg-suite
amygutierrez Apr 6, 2023
c19b12d
fixed Docker tag
amygutierrez Apr 6, 2023
72ba031
added correct flag for docker tag
amygutierrez Apr 6, 2023
6e93911
added github_workspace as input for reg-suite
amygutierrez Apr 6, 2023
9b9cdc9
testing reg-suite changes
amygutierrez Apr 6, 2023
37cf46a
testing reg-suite changes
amygutierrez Apr 6, 2023
6895c3e
testing data downlaod changes
amygutierrez Apr 6, 2023
3ffb543
testing reg-suite changes
amygutierrez Apr 7, 2023
a33969d
testing reg-suite
amygutierrez Apr 7, 2023
f764fcb
testing reg-suite ram issues
amygutierrez Apr 7, 2023
a14d001
testing reg-suite ram issues
amygutierrez Apr 7, 2023
671387e
testing reg-suite changes
amygutierrez Apr 11, 2023
d47c82c
testing networkx changes
amygutierrez Apr 13, 2023
e143e53
testing permissions in reg-suite
amygutierrez Apr 13, 2023
5562b10
testing 1 cpu
amygutierrez Apr 13, 2023
7131ff3
testing root priviledges ( ⚆ _ ⚆ )
amygutierrez Apr 13, 2023
4042ea1
:bookmark: Update version to 1.8.6..dev1 (:alien: PEP440)
ChildMindInstituteCNL Apr 17, 2023
6f4e6e3
[rebuild standard]
amygutierrez Mar 30, 2023
ea65160
empty commit
amygutierrez Apr 4, 2023
6556ab9
testing
amygutierrez Mar 28, 2023
0ab2769
testing
amygutierrez Mar 28, 2023
99b1610
testing merge
amygutierrez Mar 28, 2023
9cafe49
testing
amygutierrez Mar 28, 2023
4b54531
testing
amygutierrez Mar 28, 2023
8ce63f2
testing merge
amygutierrez Mar 28, 2023
ac411a8
testing merge without update check
amygutierrez Mar 28, 2023
8633866
testing
amygutierrez Mar 30, 2023
1d4ef6a
rebase
amygutierrez Apr 4, 2023
865e7dc
testing
amygutierrez Apr 4, 2023
41491e9
testing
amygutierrez Mar 28, 2023
29c2527
testing
amygutierrez Mar 28, 2023
c740afb
testing merge
amygutierrez Mar 28, 2023
96acb78
testing
amygutierrez Mar 28, 2023
b3e4e7f
testing
amygutierrez Mar 28, 2023
823d3d8
testing merge
amygutierrez Mar 28, 2023
2227201
testing merge without update check
amygutierrez Mar 28, 2023
725c1d8
testing
amygutierrez Mar 30, 2023
69ce00a
rebase
amygutierrez Apr 4, 2023
b6ba217
testing
amygutierrez Apr 4, 2023
1318d50
rebase and test
amygutierrez Apr 4, 2023
753ffd3
testing reg-suite changes
amygutierrez Apr 6, 2023
efa8da8
testing reg-suite changes
amygutierrez Apr 6, 2023
b25b448
testing data downlaod changes
amygutierrez Apr 6, 2023
2700428
testing reg-suite changes
amygutierrez Apr 7, 2023
e531a3f
testing reg-suite
amygutierrez Apr 7, 2023
a8987e2
testing reg-suite ram issues
amygutierrez Apr 7, 2023
33e675a
testing reg-suite ram issues
amygutierrez Apr 7, 2023
be7f7e5
testing reg-suite changes
amygutierrez Apr 11, 2023
68809df
testing networkx changes
amygutierrez Apr 13, 2023
40b6ef8
testing permissions in reg-suite
amygutierrez Apr 13, 2023
ac10c77
testing 1 cpu
amygutierrez Apr 13, 2023
3c40e31
testing root priviledges ( ⚆ _ ⚆ )
amygutierrez Apr 13, 2023
6e24a2a
test to see user permissions in docker container
amygutierrez Apr 17, 2023
904e010
testing again for user permissions in container
amygutierrez Apr 17, 2023
addfc0c
:package: [rebuild Ubuntu.bionic-non-free]
shnizzedy Apr 17, 2023
a8b7ce2
[rebuild standard]
amygutierrez Mar 30, 2023
5076428
empty commit
amygutierrez Apr 4, 2023
1a56f90
testing
amygutierrez Mar 28, 2023
1ae4a0c
testing
amygutierrez Mar 28, 2023
3471cfb
testing merge
amygutierrez Mar 28, 2023
a2fdca1
testing
amygutierrez Mar 28, 2023
f622c22
testing
amygutierrez Mar 28, 2023
3328a29
testing merge
amygutierrez Mar 28, 2023
c9b77c3
testing merge without update check
amygutierrez Mar 28, 2023
7989884
testing
amygutierrez Mar 30, 2023
4e217f7
rebase
amygutierrez Apr 4, 2023
b76345e
testing
amygutierrez Apr 4, 2023
5235fb1
testing
amygutierrez Mar 28, 2023
7de79d6
testing
amygutierrez Mar 28, 2023
9458e2c
testing merge
amygutierrez Mar 28, 2023
2d67f46
testing
amygutierrez Mar 28, 2023
87e82d7
testing
amygutierrez Mar 28, 2023
3f96ce2
testing merge
amygutierrez Mar 28, 2023
74da99f
testing merge without update check
amygutierrez Mar 28, 2023
7e83603
testing
amygutierrez Mar 30, 2023
b7b8b17
rebase
amygutierrez Apr 4, 2023
a364489
testing
amygutierrez Apr 4, 2023
aec1557
rebase and test
amygutierrez Apr 4, 2023
65b38ed
testing reg-suite changes
amygutierrez Apr 6, 2023
7087282
testing reg-suite changes
amygutierrez Apr 6, 2023
c97c37a
testing data downlaod changes
amygutierrez Apr 6, 2023
c4661f9
testing reg-suite changes
amygutierrez Apr 7, 2023
6472ac3
testing reg-suite
amygutierrez Apr 7, 2023
5b1edcf
testing reg-suite ram issues
amygutierrez Apr 7, 2023
d252b65
testing reg-suite ram issues
amygutierrez Apr 7, 2023
dc09d22
testing reg-suite changes
amygutierrez Apr 11, 2023
0cf3e76
testing networkx changes
amygutierrez Apr 13, 2023
13fd5fe
testing permissions in reg-suite
amygutierrez Apr 13, 2023
8f5f18d
testing 1 cpu
amygutierrez Apr 13, 2023
d6b7594
testing root priviledges ( ⚆ _ ⚆ )
amygutierrez Apr 13, 2023
8bbcb70
[rebuild standard]
amygutierrez Mar 30, 2023
df02b9e
empty commit
amygutierrez Apr 4, 2023
05b82d5
testing
amygutierrez Mar 28, 2023
f8c4b97
testing
amygutierrez Mar 28, 2023
36ab4fb
testing merge
amygutierrez Mar 28, 2023
58d755e
testing
amygutierrez Mar 28, 2023
90f0c77
testing
amygutierrez Mar 28, 2023
3499998
testing merge
amygutierrez Mar 28, 2023
7bed505
testing merge without update check
amygutierrez Mar 28, 2023
8ab05fc
testing
amygutierrez Mar 30, 2023
63a2770
rebase
amygutierrez Apr 4, 2023
481eea3
testing
amygutierrez Apr 4, 2023
c754c1a
testing
amygutierrez Mar 28, 2023
d04b2fb
testing
amygutierrez Mar 28, 2023
69f4abe
testing merge
amygutierrez Mar 28, 2023
15198d1
testing
amygutierrez Mar 28, 2023
da72fd2
testing
amygutierrez Mar 28, 2023
bcea464
testing merge
amygutierrez Mar 28, 2023
38a72f5
testing merge without update check
amygutierrez Mar 28, 2023
8d0d1ef
testing
amygutierrez Mar 30, 2023
0674098
rebase
amygutierrez Apr 4, 2023
2419d8c
testing
amygutierrez Apr 4, 2023
2529af7
rebase and test
amygutierrez Apr 4, 2023
78475f6
testing reg-suite changes
amygutierrez Apr 6, 2023
d30c90e
testing reg-suite changes
amygutierrez Apr 6, 2023
40ec53b
testing data downlaod changes
amygutierrez Apr 6, 2023
8e536b3
testing reg-suite changes
amygutierrez Apr 7, 2023
2eec462
testing reg-suite
amygutierrez Apr 7, 2023
a376be8
testing reg-suite ram issues
amygutierrez Apr 7, 2023
19448a5
testing reg-suite ram issues
amygutierrez Apr 7, 2023
be046db
testing reg-suite changes
amygutierrez Apr 11, 2023
066470d
testing networkx changes
amygutierrez Apr 13, 2023
bf543bb
testing permissions in reg-suite
amygutierrez Apr 13, 2023
39fd2df
testing 1 cpu
amygutierrez Apr 13, 2023
d59c18b
testing root priviledges ( ⚆ _ ⚆ )
amygutierrez Apr 13, 2023
d1e4973
test to see user permissions in docker container
amygutierrez Apr 17, 2023
2954206
testing again for user permissions in container
amygutierrez Apr 17, 2023
ffa8168
breaking up the if loop for lite and full regression test
amygutierrez Apr 20, 2023
535b489
corrected syntax
amygutierrez Apr 20, 2023
84b7a65
syntax errors
amygutierrez Apr 20, 2023
e242ee3
separating regression full and lite scripts
amygutierrez Apr 21, 2023
c235a9f
removed old code and repeated block
amygutierrez Apr 21, 2023
f1793f9
:construction_worker: [rebuild ABCD-HCP]
shnizzedy Apr 21, 2023
e7db9ac
:construction_worker: Upgrade Circle executor
shnizzedy Apr 24, 2023
9f59599
:construction_worker: Don't reinstall Python if it already exists on …
shnizzedy Apr 24, 2023
bb3e5d2
rebase
amygutierrez Apr 24, 2023
006ae2b
test regression suite
amygutierrez Apr 24, 2023
b28fbb4
added correlation lite step
amygutierrez May 18, 2023
b80f2da
testing reg-suite changes with correlation
amygutierrez May 18, 2023
a0ea33d
correct output directory
amygutierrez May 19, 2023
2bb507d
testing new correlation changes
amygutierrez May 19, 2023
41bc537
correlation changes
amygutierrez May 24, 2023
87d49a1
Merge branch 'develop' into regression/reg-suite
amygutierrez Jun 29, 2023
c2bb427
added section for downloading data from s3 [skip ci]
amygutierrez Jun 30, 2023
61e27d0
testing correlation with s3 ૮⍝• ᴥ •⍝ა
amygutierrez Jun 30, 2023
d117e13
configure S3 before downloading
amygutierrez Jul 4, 2023
b857035
credentials not dir
amygutierrez Jul 4, 2023
6ed952d
not creating aws credentials file
amygutierrez Jul 6, 2023
76ca114
Merge branch 'develop' into regression/reg-suite
amygutierrez Jul 6, 2023
3dcc880
testing other s3 method
amygutierrez Jul 6, 2023
fe7c329
configure and then run aws command
amygutierrez Jul 6, 2023
e2a48ce
retesting for space limitation
amygutierrez Jul 7, 2023
9500cdc
testing ssh connection
amygutierrez Jul 8, 2023
67e1155
testing push vs pull_request
amygutierrez Jul 8, 2023
882621f
testing commit comment
amygutierrez Jul 8, 2023
c21ef06
testing commit message trigger [run reg-suite]
amygutierrez Jul 8, 2023
245d11c
inherit secrets
amygutierrez Jul 9, 2023
de74d3d
reg test [run reg-suite]
amygutierrez Jul 9, 2023
1d9336e
added more ssh config params [run reg-suite]
amygutierrez Jul 9, 2023
e26a479
saving ssh to git workspace [run reg-suite]
amygutierrez Jul 9, 2023
303abc5
ssh config [run reg-suite]
amygutierrez Jul 9, 2023
ffbebf8
changing git env [run reg-suite]
amygutierrez Jul 9, 2023
fffc182
testing new key [run reg-suite]
amygutierrez Jul 9, 2023
37f4402
test ssh
amygutierrez Jul 11, 2023
f8cb846
test ssh [run reg-suite]
amygutierrez Jul 11, 2023
e6dd58c
build singularity image [run reg-suite]
amygutierrez Jul 11, 2023
761a47b
test [run reg-suite]
amygutierrez Jul 11, 2023
1b380bb
test reg lite in ACCESS [run reg-suite]
amygutierrez Jul 12, 2023
4d683f5
only clone if doesn't exit
amygutierrez Jul 12, 2023
c357835
test [run reg-suite]
amygutierrez Jul 12, 2023
6c40703
slurm test [run reg-suite]
amygutierrez Jul 12, 2023
d4a559c
testing slurm changes [run reg-suite]
amygutierrez Jul 12, 2023
a06fbbf
corrected flag name [run reg-suite]
amygutierrez Jul 13, 2023
ba0e0ec
removed aws steps [run reg-suite]
amygutierrez Jul 13, 2023
9e5ef27
testing slurm changes [run reg-suite]
amygutierrez Jul 13, 2023
223696c
added longer command timeout [run reg-suite]
amygutierrez Jul 13, 2023
6317f14
retest [run reg-suite]
amygutierrez Jul 13, 2023
b047c31
decreased commadn timeout [run reg-suite]
amygutierrez Jul 13, 2023
0cfdfd9
testing slurm changes [run reg-suite]
amygutierrez Jul 14, 2023
2738e58
test slurm changes [run reg-suite]
amygutierrez Jul 14, 2023
5aa31ad
test [run reg-suite]
amygutierrez Jul 19, 2023
7fa7093
testing image and cpac run in one script [run reg-suite]
amygutierrez Jul 19, 2023
f15528f
:alembic: Try triggering correlations from SLURM
shnizzedy Jul 21, 2023
072b79f
:construction_worker: Set environment
shnizzedy Jul 21, 2023
d682c70
:recycle: Specify logs paths
shnizzedy Jul 21, 2023
2cf48d0
:art: Full path for SLURM logs
shnizzedy Jul 21, 2023
4bee5c1
:zap: Set sbatch options
shnizzedy Jul 21, 2023
cb91fa6
:necktie: Add secret to configure `gh` binary path
shnizzedy Jul 21, 2023
ee7ea0f
:construction_worker: Set check status
shnizzedy Jul 21, 2023
f8deebe
fixup! :construction_worker: Set check status
shnizzedy Jul 21, 2023
f96cd70
fixup! fixup! :construction_worker: Set check status
shnizzedy Jul 21, 2023
073caae
:construction_worker: Pass repository owner
shnizzedy Jul 21, 2023
9b92d22
:construction_worker: Separate run launch from individual runs
shnizzedy Jul 25, 2023
5189e23
:construction_worker: Log run once initiated
shnizzedy Jul 25, 2023
fe5b742
:recycle: :construction_worker: Refactor GitHub Action reporting
shnizzedy Jul 26, 2023
865ce38
:recycle: Export env variables for sbatch
shnizzedy Jul 26, 2023
9856c28
fixup! :recycle: Export env variables for sbatch
shnizzedy Jul 26, 2023
63cbec4
fixup! fixup! :recycle: Export env variables for sbatch
shnizzedy Jul 26, 2023
c344ded
:alien: Uppercase `IMAGE`
shnizzedy Jul 27, 2023
d2091fd
:twisted_rightwards_arrows: Merge `develop` into `regression/after-runs`
shnizzedy Jul 28, 2023
457f37d
:construction_worker: Build branch image for reg test
shnizzedy Jul 28, 2023
04bf8bd
:package: ANTs (Jammy) needs `unzip`
shnizzedy Jul 28, 2023
b2d52e7
:construction_worker: Pass `$REPO`
shnizzedy Aug 17, 2023
82ebfa4
:alien: Rename job context
shnizzedy Sep 11, 2023
a23b77f
:twisted_rightwards_arrows: Merge `develop` into `regression/after-runs`
shnizzedy Sep 14, 2023
24ef2b9
:rewind: Revert ":bookmark: Update version to 1.8.6..dev1 (:alien: PE…
shnizzedy Sep 14, 2023
f2929e3
:bug: Import custom `TUPLE` type for Function Node function
shnizzedy Sep 20, 2023
eabf86c
:mute: Remove temporary and debugging statements
shnizzedy Sep 28, 2023
1dea414
:pushpin: Set version of "SSH Remote Commands"
shnizzedy Oct 2, 2023
e838634
:rewind: Revert out-of-scope changes
shnizzedy Oct 2, 2023
f12e160
:construction_worker: Remove debugging conditions from workflow
shnizzedy Oct 2, 2023
cc8d6db
:alembic: Try a fresh run with updated secrets
shnizzedy Oct 3, 2023
a16f259
:construction_worker: Set environment variables from secrets
shnizzedy Oct 3, 2023
2913c38
:construction_worker: Enable access to enviornment secrets for regtes…
shnizzedy Oct 4, 2023
8e6374a
:construction_worker: Update SHA for PR_target
shnizzedy Oct 4, 2023
a5a6c8a
:construction_worker: Conditionally use PR / PR_target triggers on br…
shnizzedy Oct 4, 2023
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
14 changes: 14 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,20 @@ jobs:
if: github.ref_name == 'develop' || github.ref_name == 'main'
uses: ./.github/workflows/smoke_test_participant.yml

regtest-lite:
name: Run lite regression test
needs:
- C-PAC
secrets: inherit
if: contains(github.event.head_commit.message, '[run reg-suite]')
uses: ./.github/workflows/regression_test_lite.yml

regtest-full:
name: Run full regression test
needs:
- smoke-tests-participant
uses: ./.github/workflows/regression_test_full.yml

Circle_tests:
name: Run tests on CircleCI
needs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
python-version: '3.9'
cache: 'pip'
- name: Check if version updated
id: version_updated
run: |
git config --global user.email "[email protected]"
git config --global user.name "Theodore (Machine User)"
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/regression_test_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Regression Full Test

on:
workflow_call:

jobs:
test:
name: Regression Test - Full
runs-on: ubuntu-latest
steps:
- name: Get C-PAC branch
run: |
GITHUB_BRANCH=$(echo ${GITHUB_REF} | cut -d '/' -f 3-)
if [[ ! $GITHUB_BRANCH == 'main' ]] && [[ ! $GITHUB_BRANCH == 'develop' ]]
then
TAG=${GITHUB_BRANCH//\//_}
elif [[ $GITHUB_BRANCH == 'develop' ]]
then
TAG=nightly
elif [[ $GITHUB_BRANCH == 'main' ]]
then
TAG=latest
fi

- name: Checkout Code
uses: actions/checkout@v2
- name: Clone reg-suite
run: |
git clone https://github.com/amygutierrez/reg-suite.git

- name: Run Full Regression Test
if: ${{ github.event_name }} == "pull_request" && ${{ github.event.pull_request.state }} == "closed" && ${{ github.event.pull_request.merged }} == "true" && ${{ github.event.pull_request.base.ref }} == "main"
run: |
echo "Running full regression test"
echo "୧(๑•̀ヮ•́)૭ LET'S GO! ٩(^ᗜ^ )و "

- uses: actions/upload-artifact@v3
if: always()
with:
name: logs
path: output/*/*/log/
84 changes: 84 additions & 0 deletions .github/workflows/regression_test_lite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Launch lite regression test

on:
pull_request:
branches:
- develop
types:
- opened
- ready_for_review
- reopened
workflow_call:
secrets:
GH_CLI_BIN_PATH:
description: 'path to directory containing GitHub CLI binary if not on default $PATH'
required: false
SSH_PRIVATE_KEY:
required: true
SSH_USER:
required: true
SSH_HOST:
required: true
SSH_WORK_DIR:
required: true

jobs:
test:
name: Regression Test - Lite
environment: ACCESS
runs-on: ubuntu-latest
steps:
- name: Get C-PAC branch
run: |
GITHUB_BRANCH=$(echo ${GITHUB_REF} | cut -d '/' -f 3-)
if [[ ! $GITHUB_BRANCH == 'main' ]] && [[ ! $GITHUB_BRANCH == 'develop' ]]
then
TAG=${GITHUB_BRANCH//\//_}
elif [[ $GITHUB_BRANCH == 'develop' ]]
then
TAG=nightly
elif [[ $GITHUB_BRANCH == 'main' ]]
then
TAG=latest
fi
TAG=$TAG$VARIANT
echo DOCKER_TAG=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]'):$TAG >> $GITHUB_ENV
cat $GITHUB_ENV

- name: Install SSH Keys
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H -t rsa ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts

- name: Initiate check
uses: guibranco/[email protected]
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: Launch lite regression test
description: launching
state: pending

- name: Connect and Run Regression Test Lite
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
command_timeout: 200m
script: |
cd ${{ secrets.SSH_WORK_DIR }}
if [ ! -d slurm_testing ] ; then
git clone https://github.com/${{ github.repository_owner }}/slurm_testing slurm_testing
else
cd slurm_testing
git pull origin regression/after_runs
cd ..
fi
mkdir -p ./logs/${{ github.sha }}
sbatch --export="HOME_DIR=${{ secrets.SSH_WORK_DIR }},IMAGE=${{ env.DOCKER_TAG }},OWNER=${{ github.repository_owner }},PATH_EXTRA=${{ secrets.GH_CLI_BIN_PATH }},REPO=$(echo ${{ github.repository }} | cut -d '/' -f 2),SHA=${{ github.sha }}" --output=${{ secrets.SSH_WORK_DIR }}/logs/${{ github.sha }}/out.log --error=${{ secrets.SSH_WORK_DIR }}/logs/${{ github.sha }}/error.log slurm_testing/.github/scripts/launch_regtest_lite.SLURM

- name: Cleanup SSH
run: |
rm -rf ~/.ssh
3 changes: 2 additions & 1 deletion CPAC/utils/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import json
import re
from pathlib import Path
from typing import Tuple, Union
from typing import Union
from nipype import logging
from nipype.interfaces import utility as util
from CPAC.pipeline import nipype_pipeline_engine as pe
Expand Down Expand Up @@ -369,6 +369,7 @@ def get_fmap_phasediff_metadata(data_config_scan_params):
echo_time_one, echo_time_two)


@Function.sig_imports(['from CPAC.utils.typing import TUPLE'])
def calc_delta_te_and_asym_ratio(effective_echo_spacing: float,
echo_times: list) -> TUPLE[float, float]:
"""Calcluate ``deltaTE`` and ``ees_asym_ratio`` from given metadata
Expand Down
9 changes: 5 additions & 4 deletions CPAC/utils/monitoring/draw_gantt_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,9 @@ def _timing_timestamp(node):
-------
dict
"""
if node is None:
if node is None or node.items() is None:
raise ProcessLookupError('No logged nodes have timing information.')
return {k: (datetime.strptime(v, "%Y-%m-%dT%H:%M:%S.%f") if
'.' in v else datetime.fromisoformat(v)) if
k in {"start", "finish"} else v for k, v in node.items()}
return {k: (datetime.strptime(v, "%Y-%m-%dT%H:%M:%S.%f") if '.' in v else
datetime.fromisoformat(v)) if (k in {"start", "finish"} and
isinstance(v, str)) else
v for k, v in node.items()}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ pip==23.1.2
setuptools==68.0.0
urllib3==1.26.15
wheel==0.40.0
zipp==3.16.0
zipp==3.16.0