-
Notifications
You must be signed in to change notification settings - Fork 343
[CMake] ADD option to fetch pull-request commits in ExternalProject #1961
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
[CMake] ADD option to fetch pull-request commits in ExternalProject #1961
Conversation
|
[ci-build] |
…ernalproject_options # Conflicts: # applications/plugins/SofaPython3/ExternalProjectConfig.cmake.in
|
[ci-depends-on] detected during build #54. All dependencies are merged/closed and all ExternalProject pointers are up-to-date. Congrats! 👍 |
|
See discussion here |
|
[ci-depends-on] detected during build #59. To unlock the merge button, you must
|
|
[ci-build] |
1 similar comment
|
[ci-build] |
|
[ci-depends-on] detected during build #62. All dependencies are merged/closed and all ExternalProject pointers are up-to-date. Congrats! 👍 |
|
What's up with the CI? Build failed on centos and ubuntu? |
A weird error that happens sometimes... I relaunched and it's OK now. |
When your SOFA PR fails on CI somewhere in an external project, it may be because your change is breaking for that external project.
In that case, the best (and preferred) solution is that you push a fix in the external project so that when your PR is merged in SOFA, it does not fail on CI.
Here is the typical workflow for that use case.
[ci-depends-on https://github.com/<org>/<repo>/pull/<id>]This way, you do not need to touch any
ExternalProject.cmakefile in your SOFA PR 👍The only change in this PR consists in adding
GIT_CONFIG "remote.origin.fetch=+refs/pull/*:refs/remotes/origin/pr/*"to all ExternalProject.cmake files.This change permits to have access to any commit in any pull-request (including merge commits). See this nice cheatsheet about how to fetch PRs.
All other changes have been done in CI scripts and are ready to use.
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if