Skip to content

build: clean up libz-sys stale cache for static build #1032

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

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

jiangliu
Copy link
Collaborator

The docker and host build env use different root path, which causes libz-sys to report inconsistent cache state.

Fixes: #1028

Signed-off-by: Jiang Liu [email protected]

@jiangliu jiangliu requested a review from a team as a code owner January 29, 2023 04:35
@jiangliu jiangliu requested review from imeoer, luodw and changweige and removed request for a team January 29, 2023 04:35
Copy link
Contributor

@changweige changweige left a comment

Choose a reason for hiding this comment

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

I tested the PR, but the problem still exit in my environment. Not sure if it is relevant to my local linux

Makefile Outdated
@@ -84,6 +84,10 @@ endef
.musl_target:
$(eval CARGO_BUILD_FLAGS += --target ${RUST_TARGET_STATIC})

.clean_libz_sys:
${CARGO} clean --target ${RUST_TARGET_STATIC} -p libz-sys
${CARGO} clean --target ${RUST_TARGET_STATIC} --release -p libz-sys
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we prefix the instrunction with @ to hide the command print and make it clear

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

The docker and host build env use different root path, which causes
libz-sys to report inconsistent cache state.

Fixes: dragonflyoss#1028

Signed-off-by: Jiang Liu <[email protected]>
@anolis-bot
Copy link
Collaborator

@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/45611

@anolis-bot
Copy link
Collaborator

@jiangliu , The CI test is completed, please check result:

Test CaseTest Result
merge-target-branch✅ SUCCESS
build-docker-image✅ SUCCESS
compile-nydus✅ SUCCESS
compile-ctr-remote✅ SUCCESS
compile-nydus-snapshotter✅ SUCCESS
start-nydus-snapshotter-config-containerd✅ SUCCESS
run-container-with-nydus-image✅ SUCCESS

Congratulations, your test job passed!

@changweige changweige merged commit ffc4cc7 into dragonflyoss:master Jan 29, 2023
@jiangliu jiangliu deleted the libz-sys branch March 28, 2023 01:54
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.

Can't perform make static-release on master HEAD
3 participants