-
Notifications
You must be signed in to change notification settings - Fork 343
[SofaPython3] Fix ExternalProjectConfig.h #2004
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
[SofaPython3] Fix ExternalProjectConfig.h #2004
Conversation
|
@damienmarchal can you put origin/master instead? |
applications/plugins/SofaPython3/ExternalProjectConfig.cmake.in
Outdated
Show resolved
Hide resolved
Co-authored-by: Jean-Nicolas Brunet <[email protected]>
|
[ci-build] |
|
You should not put a branch name in GIT_TAG. |
|
Yeah but if you don't do it, than we need to manually update the commit number each time SofaPython3 upgrades. They should follow each others. |
|
What is the problem with manually updating the pointer? |
We will forget to do it, I'm sure of it.
How could that happen? No SOFA components depend on it, and SP3 has its own CI on github. |
|
Because we build SofaPython3 on SOFA CI. |
|
Yes I know, and I'm not questioning your work nor the 3 weeks of discussions. But, if you are going to automatically merge the related PR in SP3 to its master branch, than why hard code the commit number? You can automatically update it on the CI, but not actually commit it. Once it passes, no need to change the "origin/master" since it contains your automatically merged SP3 PR. If you don't do it, then upgrades in SP3 (bug fixes, new features) that do not have a related PR in SOFA won't be taken into account unless we go do a PR in SOFA to update this pointer. I can guarantee you that nobody will think of doing it. Which means that fetching SP3 within SOFA has great chance to be pointing to an old version. In fact, the reason I asked this to Damien is exactly because of this, SOFA fetched me an outdated version of SP3, which didn't contain the latest bug fix in SP3. |
|
I'm always having a hard time designing this type of workflow... For instance, this will happen: EDIT: corrected version below |
|
Yeah I see your issue now, thanks ! I think it could be resolved by changing (improving?) a little bit our current CI strategy. Correct me if I'm wrong, but right now the CI does the following for a PR # XXX into the branch Master:
I think a better approach should be:
This might also prevent some weird issues that we had were the CI passes, we merge, and then the CI start breaking everywhere: The CI never actually tested the merged PR. I think this would fix your issue 5. What do you think? |
|
Actually SOFA CI is already building a merge for PRs so I was wrong with my use case before. 😅 Here is a corrected version of what could happen:
The problematic point is the duration of step 5. |
|
Hey @guparan , I would merge both at the same time (automatically), the trigger being the SOFA merge:
Just to emphasis the problem with the alternative (hard-coded commit number instead of a branch):
|
Red alert on the CI ! Fix it now.
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