Skip to content

Commit

Permalink
Merge pull request #310 from nipreps/ci/fix-outputs
Browse files Browse the repository at this point in the history
CI: Fix output order
  • Loading branch information
effigies authored Aug 30, 2023
2 parents d973c72 + 6a38698 commit 83576ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .circleci/bcp_anat_outputs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_desc-preproc_T1w.json
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_desc-preproc_T1w.nii.gz
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_desc-ribbon_mask.nii.gz
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_dseg.nii.gz
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-fsnative_to-T1w_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-MNIInfant+1_to-T1w_mode-image_xfm.h5
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-T1w_to-fsnative_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-T1w_to-MNIInfant+1_mode-image_xfm.h5
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-T1w_to-fsnative_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-fsnative_to-T1w_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_hemi-L_curv.shape.gii
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_hemi-L_desc-reg_sphere.surf.gii
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_hemi-L_inflated.surf.gii
Expand Down
6 changes: 3 additions & 3 deletions .circleci/bcp_full_outputs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_desc-preproc_T1w.json
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_desc-preproc_T1w.nii.gz
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_desc-ribbon_mask.nii.gz
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_dseg.nii.gz
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-fsnative_to-T1w_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-MNIInfant+1_to-T1w_mode-image_xfm.h5
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-T1w_to-fsnative_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-T1w_to-MNIInfant+1_mode-image_xfm.h5
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-T1w_to-fsnative_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_from-fsnative_to-T1w_mode-image_xfm.txt
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_hemi-L_curv.shape.gii
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_hemi-L_desc-reg_sphere.surf.gii
sub-01/ses-1mo/anat/sub-01_ses-1mo_run-001_hemi-L_inflated.surf.gii
Expand Down Expand Up @@ -65,8 +65,8 @@ sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_desc-confounds_times
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_desc-confounds_timeseries.tsv
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_desc-preproc_bold.json
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_desc-preproc_bold.nii.gz
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_from-scanner_to-boldref_mode-image_xfm.txt
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_from-scanner_to-T1w_mode-image_xfm.txt
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_from-scanner_to-boldref_mode-image_xfm.txt
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_from-T1w_to-scanner_mode-image_xfm.txt
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_space-MNIInfant_cohort-1_boldref.nii.gz
sub-01/ses-1mo/func/sub-01_ses-1mo_task-rest_acq-PA_run-001_space-MNIInfant_cohort-1_desc-aparcaseg_dseg.nii.gz
Expand Down
24 changes: 14 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ jobs:
steps:
- restore_cache:
keys:
- data-v3-{{ .Branch }}-{{ .Revision }}
- data-v3--{{ .Revision }}
- data-v3-{{ .Branch }}-
- data-v3-master-
- data-v3-
- data-v0-{{ .Branch }}-{{ .Revision }}
- data-v0--{{ .Revision }}
- data-v0-{{ .Branch }}-
- data-v0-master-
- data-v0-
- run:
name: Install datalad + git-annex
command: |
Expand All @@ -203,7 +203,7 @@ jobs:
echo "Reusing cached data"
fi
- save_cache:
key: data-v3-{{ .Branch }}-{{ .Revision }}
key: data-v0-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/data
- run:
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
- /tmp/images
- restore_cache:
keys:
- data-v3-{{ .Branch }}-{{ .Revision }}
- data-v0-{{ .Branch }}-{{ .Revision }}
- docker/install-docker-credential-helper
- run: *docker_auth
- run: *setup_docker_registry
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
- /tmp/images
- restore_cache:
keys:
- data-v3-{{ .Branch }}-{{ .Revision }}
- data-v0-{{ .Branch }}-{{ .Revision }}
- restore_cache:
keys:
- bcp-anat-v0-{{ .Branch }}-{{ .Revision }}
Expand Down Expand Up @@ -358,7 +358,9 @@ jobs:
mkdir -p /tmp/${DATASET}/test
CHECK_OUTPUTS_FILE="${DATASET}_anat_outputs.txt"
cd /tmp/${DATASET}/derivatives/nibabies && tree -I 'figures|log' -lifa --noreport | sed s+^\./++ | sed '1d' | sort > /tmp/${DATASET}/test/outputs.out
diff /tmp/src/nibabies/.circleci/${CHECK_OUTPUTS_FILE} /tmp/${DATASET}/test/outputs.out
cat /tmp/${DATASET}/test/outputs.out
sort -o /tmp/${DATASET}/test/expected.out /tmp/src/nibabies/.circleci/${CHECK_OUTPUTS_FILE}
diff /tmp/${DATASET}/test/expected.out /tmp/${DATASET}/test/outputs.out
rm -rf /tmp/${DATASET}/test
exit $?
- run:
Expand All @@ -384,7 +386,9 @@ jobs:
mkdir -p /tmp/${DATASET}/test
CHECK_OUTPUTS_FILE="${DATASET}_full_outputs.txt"
cd /tmp/${DATASET}/derivatives/nibabies && tree -I 'figures|log' -lifa --noreport | sed s+^\./++ | sed '1d' | sort > /tmp/${DATASET}/test/outputs.out
diff /tmp/src/nibabies/.circleci/${CHECK_OUTPUTS_FILE} /tmp/${DATASET}/test/outputs.out
cat /tmp/${DATASET}/test/outputs.out
sort -o /tmp/${DATASET}/test/expected.out /tmp/src/nibabies/.circleci/${CHECK_OUTPUTS_FILE}
diff /tmp/${DATASET}/test/expected.out /tmp/${DATASET}/test/outputs.out
rm -rf /tmp/${DATASET}/test
exit $?
- run:
Expand Down

0 comments on commit 83576ea

Please sign in to comment.