-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
(WIP) Test batch_processing.sh in CI #3196
Conversation
25c58d7
to
a0d9b84
Compare
a0d9b84
to
8d0a740
Compare
After some finagling, I've gotten the upload-artifact action to upload the 5 csv files produced by Now, in theory, I should be able to fetch these using the download-artifact action so that I can make a comparison in a test. :) |
Also, re-enable a check that only uploads new results on merge. It was disabled only to upload the very first set of results.
Welp, that's disappointing.
That conflicts with what I expected, given this sentence on the same page:
I'll have to find another way. :( |
The strange thing to me is, the retention period for artifacts is 90 days. Why would they store something for 90 days if you can't reuse it outside of a single workflow run? |
Interesting... joshua@XPS-15-9560:~$ curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/neuropoly/spinalcordtoolbox/actions/artifacts
{
"total_count": 1,
"artifacts": [
{
"id": 36987543,
"node_id": "MDg6QXJ0aWZhY3QzNjk4NzU0Mw==",
"name": "batch-processing-results",
"size_in_bytes": 6316,
"url": "https://api.github.com/repos/neuropoly/spinalcordtoolbox/actions/artifacts/36987543",
"archive_download_url": "https://api.github.com/repos/neuropoly/spinalcordtoolbox/actions/artifacts/36987543/zip",
"expired": false,
"created_at": "2021-01-25T00:52:39Z",
"updated_at": "2021-01-25T00:52:39Z",
"expires_at": "2021-04-25T00:52:35Z"
}
]
} So, despite No matter. Looks like there's still hope! |
Alrighty, figured out how to download the artifact using curl:
The only quirk is the Other than that, the steps are quite simple:
|
ba3aefc
to
91eed6f
Compare
91eed6f
to
26ec875
Compare
Value comparison logic will come in a future commit.
117dcf5
to
ec3c485
Compare
ec3c485
to
f00bc72
Compare
Alrighty! I've done all the experimenting I wanted to do, and everything looks good to me! I'm going to close this, then open a separate PR with all of the commits cleaned up + an in-depth description. :) |
Just kidding -- there's one more test I want to do. There are a few workarounds in actions/runner#241 and pytest-dev/pytest#7443 to enable color output in pytest. I think this would be really nice for improving the readability of test results. |
Splendid! Pretty colour: https://github.com/neuropoly/spinalcordtoolbox/runs/1764465154?check_suite_focus=true Now I'm closing this. Expected a much neater PR soon. |
Just a quick WIP to test:
Don't review, etc. I'll write a proper description when ready. :)