-
Notifications
You must be signed in to change notification settings - Fork 261
ci: upload patches #934
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
ci: upload patches #934
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -32,6 +32,7 @@ jobs: | |||||
run: | | ||||||
cd regression-tests | ||||||
bash run-tests.sh -c ${{ matrix.compiler }} | ||||||
continue-on-error: true | ||||||
|
||||||
- name: Run regression tests - Windows version | ||||||
if: matrix.os == 'windows-latest' | ||||||
|
@@ -41,3 +42,10 @@ jobs: | |||||
cd regression-tests && ^ | ||||||
bash run-tests.sh -c ${{ matrix.compiler }} | ||||||
shell: cmd | ||||||
continue-on-error: true | ||||||
|
||||||
- name: Upload patch | ||||||
uses: actions/upload-artifact@v4 | ||||||
with: | ||||||
name: ${{ matrix.compiler }}-patch.diff | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about:
Suggested change
I think we might have the same compiler run on different OSes (I have that in cooking). Comparing patches for the same compiler between different systems could be another check, also of the CI. Thoughts? BTW do you what is the retention time of artefacts on GitHub is? I guess these will be used instantly or not at all so it probably isn't an issue... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From https://github.com/actions/upload-artifact#retention-period:
|
||||||
path: regression-tests/${{ matrix.compiler }}-patch.diff |
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.
This will make the run pass. I think you need to make this upload a new job and have it run always. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds
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.
Another issue unrelated to this PR, the job is called
regression-tests-linux-mac
but also runs Windows.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.
My bad, I must have forgotten to update.
You can fix it in is this PR.
Uh oh!
There was an error while loading. Please reload this page.
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.
Can we really use jobs.<job_id>.needs?
We need to access the output patch file of the job.
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.
Yeah, I guess I don't know. I just know that the
continue-on-error
means ignore failures, so that won't do what we want.Uh oh!
There was an error while loading. Please reload this page.
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.
Maybe the diff needs to be a job output, not sure how that works for matrix jobs. (Update: matrix info is in that section.)
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idoutputs
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 think there is a simpler solution. I am testing it now.
Uh oh!
There was an error while loading. Please reload this page.
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.
There is one solution in #935 . It would be good to compare solutions, I think.