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
Run and test batch_processing.sh using GitHub Actions #3198
Conversation
The test is failing, but that's intentional. I set it to showcase the fact that different values need different tolerances. (Also, look at the pretty colour in that test! I found a workaround to re-enable colour in GH Actions.) |
awesome, i love pretty colors! |
Here's a question that's been on my mind this past day: Should we even use this Artifact API? Or, would it be better to hardcode the results via a commit to the repo? Pros for Artifact API
Cons for Artifact API
Using the Artifacts API was a fun experiment, but I'm leaning towards not using it at all. |
Since you're using this as a cache, I lean towards committing them to the repo too. I keep linking this, and I wish I had a better example than a js project, but https://jestjs.io/docs/en/snapshot-testing shows us the way to do this, imo: when values change it fails the test; to update the values on purpose, the process is just |
I agree that using the artifacts API introduces unneeded complexity. At the end of the day we just need to compare numbers. Committing the files to the repo sounds reasonable to me. |
This reverts commit 757830e
This is actually pretty neat -- the CI run of |
Huzzah x2! #3194 suggests that 3 values ( |
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.
Thanks for the update @joshuacwnewton, this looks good.
At what point are new values added to the cached results file?
My apologies, @Drulex. I thought I wrote a reply, but I must not have submitted it.
To clarify, do you mean updating the values for existing metrics? Or, adding new (different) metrics to test?
|
That answers the question thanks! |
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.
I've created a follow-up issue in #3250 to investigate testing more than just the current 6 values. For now, I think this PR would still be useful as-is, and perhaps more values could be added in another PR.
@kousu @Drulex Is there anything else, then, that needs to be done before this can be approved/merged?
os: [ ubuntu-18.04 ] # TODO: Change to [ ubuntu-18.04, macos-10.15 ] | ||
# macOS currently fails due to https://github.com/neuropoly/spinalcordtoolbox/issues/3194 |
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.
I've removed macos-10.15
in b978a6e, because I figure it will only be useful when the discrepancies are fixed.
Looks ok to me. |
Checklist
GitHub
PR contents
Description
This PR follows the experimentation done in #3196. It introduces a new GH Actions that does the following:
batch_processing.sh
Some remaining design questions:
Linked issues
Fixes #2888.