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

[infra] Fix order of stamp generation for ExternalBuild_CMake #8487

Closed

Conversation

seanshpark
Copy link
Contributor

This will fix order of stamp generation after external cmake build is success.

ONE-DCO-1.0-Signed-off-by: SaeHie Park [email protected]

This will fix order of stamp generation after external cmake build is success.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
@seanshpark
Copy link
Contributor Author

For #8379, from draft #8407

This is to make BUILD_STAMP after build is success, where it was created before the build.

@@ -45,8 +45,6 @@ function(ExternalBuild_CMake)
file(MAKE_DIRECTORY ${ARG_BUILD_DIR})
file(MAKE_DIRECTORY ${ARG_INSTALL_DIR})

file(WRITE "${BUILD_STAMP_PATH}" "${PKG_IDENTIFIER}")
Copy link
Contributor

@hseok-oh hseok-oh Feb 22, 2022

Choose a reason for hiding this comment

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

It was designed to not retry build when failed.

# NOTE Do NOT retry build once it fails
if(EXISTS ${BUILD_STAMP_PATH})
file(READ ${BUILD_STAMP_PATH} READ_IDENTIFIER)
if("${READ_IDENTIFIER}" STREQUAL "${PKG_IDENTIFIER}")
return()
endif("${READ_IDENTIFIER}" STREQUAL "${PKG_IDENTIFIER}")
endif(EXISTS ${BUILD_STAMP_PATH})

Please update above comment.

Copy link
Contributor Author

@seanshpark seanshpark Feb 22, 2022

Choose a reason for hiding this comment

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

OK, it was by design...
I had a problem while make a cross build of external project and had to remove the stamp to make it retry the build.
So I think by design is like while development, the developer should manually clean the stamp.
Once the development is done, external build should not break in normal cases.
If it does break, then there is some critical situation and should skip retry as it will may always fail...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think leaving as-is would be better :)

@seanshpark seanshpark closed this Feb 22, 2022
@seanshpark seanshpark deleted the infra_fix_extbldtool_stamp branch August 4, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants