-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update validator.yml
to fix maintenance issues (dependencies, disk space, error throwing)
#168
Open
joshuacwnewton
wants to merge
8
commits into
spine-generic:master
Choose a base branch
from
joshuacwnewton:jn/167-validator.yml-maintenance
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cde0c8e
Move non-data steps into separate workflows
joshuacwnewton 18f52f0
`validator.yml`: Use action to free up space
joshuacwnewton 0e4a454
`validator.yml`: Add retry setting for flaky `-J8` downloads
joshuacwnewton 20f50d6
`validator.yml`: Move NodeJS install to separate step
joshuacwnewton 2a14341
`validator.yml`: Update to Py3.11
joshuacwnewton 2a5e432
`validator.yml`: Fail on warnings, but run all steps too
joshuacwnewton 9a19675
`validator.yml`: Update Ubuntu packages
joshuacwnewton 9ca106d
`validator.yml`: Update outdated NodeJS actions
joshuacwnewton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
name: Check for Windows line endings | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
check-line-endings: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# make sure to download directly from the PR's repo, whether that is this repo or a fork | ||
# By default github generates a merge commit for each PR in this repo, but only for the one branch under test | ||
# but `git-annex` needs access to *two* branches: the current branch and `git-annex` | ||
# this might be subtly buggy since it is testing the remote version, not the merged version | ||
# | ||
# *if* this is not a pull request, this will fall back to its default behaviour. | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Install dos2unix | ||
run: | | ||
# the easy way to do this: convert everything to unix and ask git if that changed anything | ||
sudo apt-get install -y dos2unix | ||
|
||
- name: Check line endings | ||
run: | | ||
# the easy way to do this: convert everything to unix and ask git if that changed anything | ||
|
||
find ./ -path ./.git -prune -o -type f -print0 | xargs -0 dos2unix -q | ||
# this version is safer, but more maintenance: | ||
#find ./ -path ./.git -prune -o -type f \( ! -name "*.nii" -a ! -name "*.nii.gz" \) -print0 | xargs -0 dos2unix -q | ||
|
||
git diff --stat --exit-code | ||
if [ "$?" -ne 0 ]; then | ||
echo "error: Windows line endings found." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
name: Lint participants.tsv file | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
lint-participants: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# make sure to download directly from the PR's repo, whether that is this repo or a fork | ||
# By default github generates a merge commit for each PR in this repo, but only for the one branch under test | ||
# but `git-annex` needs access to *two* branches: the current branch and `git-annex` | ||
# this might be subtly buggy since it is testing the remote version, not the merged version | ||
# | ||
# *if* this is not a pull request, this will fall back to its default behaviour. | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Lint participants.tsv | ||
run: .github/workflows/lint-tsv participants.tsv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: The failures on this PR are to be expected, because all 3 of these checks throw warnings/errors:
ERR: code 1 - NOT_INCLUDED
WARNING: code 38 - INCONSISTENT_SUBJECTS
WARNING: code 39 - INCONSISTENT_PARAMETERS
WARNING: code 101 - README_FILE_MISSING
WARNING: Incorrect RepetitionTime
WARNING: Incorrect FlipAngle
WARNING: Model 'MAGNETOM Vida' not present
WARNING: Missing 'Manufacturer' key in json sidecar
WARNING: Missing jsonSidecar
WARNING: Invalid number of columns. The schema specifies 13, but the data frame has 15
We should brainstorm on how to best fix these issues! Or, if they don't need to be fixed, we should explicitly add ignore rules for them so that they don't get thrown in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BIDS: The WARNINGs can be ignored. (README can be fixed.) ERR should be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing was done right before a conference, just for demo purposes, so these warnings aren't actually taken into account for acquisition parameters/data consistency.