Skip to content
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

Disable MacOS CI build for now. #364

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

olivier-roussel
Copy link
Contributor

No description provided.

@fredroy
Copy link
Contributor

fredroy commented Jul 26, 2023

Instead of removing mac, I would just tell github actions to not skip the publishing of the release when there is an error.
We would not need to commit again for enabling macos.

in the deploy job, you need to set the continue-on-error attribute to true

deploy:
    continue-on-error: true

I did it on the https://github.com/sofa-framework/Regression/ repo and it works

Copy link
Contributor

@fredroy fredroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the `con

@@ -15,6 +15,7 @@ jobs:
build-and-test:
name: Run on ${{ matrix.os }} with SOFA ${{ matrix.sofa_branch }} and python ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
continue-on-error: true # as macos is always failing...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be in the deploy job, not the build-and-test job 🤐

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed... but the continue-on-error: true is already there.
So if I understand correctly, the Deploy artifacts was actually Ok, just not uploading the macOS release, other are properly uploaded, and we can close this PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So why SofaDefrost/Cosserat#82 is failing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know yet. SofaDefrost/Cosserat#82 fails because it fails to get the master-nightly release of SofaPython3 on Linux and Windows. I thought it was because there were not available as not uploaded due to the broken CI, but looks like I'm wrong.
I'm on it.

Copy link
Contributor Author

@olivier-roussel olivier-roussel Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it because softprops/action-gh-release@v1 that uploads all zip files fails on macOS file and just stop, as a whole function, so none of zip files are uploaded yet. Even if the Deploy articfacts action continue with the continue-on-error: true ?
I'll dig on this function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, looks like the fail_on_unmatched_files: false key for softprops/action-gh-release@v1 is actually what we are looking for.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olivier-roussel
Copy link
Contributor Author

Looks like this PR deserve a bit of squashing before merge

@alxbilger
Copy link
Contributor

Looks like this PR deserve a bit of squashing before merge

That's the default practice when merging in the SOFA environment

@olivier-roussel
Copy link
Contributor Author

Looks like this PR deserve a bit of squashing before merge

That's the default practice when merging in the SOFA environment

Thanks for the info. That was my guess at it is common, but did not found the info https://www.sofa-framework.org/community/doc/contributing-to-sofa/contributing/

@olivier-roussel
Copy link
Contributor Author

If everything is OK to you, could you merge so that it will unlock the WIP on related PRs ?
Thanks

@alxbilger alxbilger merged commit c5c1603 into sofa-framework:master Jul 27, 2023
3 of 4 checks passed
@olivier-roussel olivier-roussel deleted the remove_macos_ci branch August 9, 2023 12:15
damienmarchal pushed a commit that referenced this pull request Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants