-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][CI] Don't run "Pulsar CI checks completed" too early and fix disk space issue in saving docker image #17584
[fix][CI] Don't run "Pulsar CI checks completed" too early and fix disk space issue in saving docker image #17584
Conversation
- "if: always()" caused the job to run also when something failed
@@ -844,7 +844,6 @@ jobs: | |||
'system-tests', | |||
'macos-build' | |||
] | |||
if: always() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ever wrote another script for running always but check the result of needs to determinate which cleanups can be trigger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, nice example. I didn't know about that ${{ needs.build-and-test.result }}
trick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lhotari
I noticed this issue during the weekend too
Available disk space before building docker image:
Available disk space after building docker image:
I wonder when the build started consuming so much disk space? @tisonkun could it be related to the Trino changes? |
@lhotari something is still wrong. But I'm still able to merge your pull |
Hi @lhotari @nicoloboschi according to docker image changes, this patch may be relevant #17129. |
there's a follow up in #17586 to address this problem. This solution is inspired by @tisonkun 's solution in kvrocks (#17584 (comment)). |
…sk space issue in saving docker image (apache#17584) * [fix][CI] Don't run "Pulsar CI checks completed" too early - "if: always()" caused the job to run also when something failed * Clean up disk space in "Build Pulsar docker image" * Show disk space before and after cleaning * Fix deleting files
Fixes #17583
Motivation
Pulsar CI is broken since "Pulsar CI checks completed" runs too early.
There's another problem that disk space runs out in "Build Pulsar docker image" with error message
Modifications
Documentation
doc-required
(Your PR needs to update docs and you will update later)
doc-not-needed
(Please explain why)
doc
(Your PR contains doc changes)
doc-complete
(Docs have been already added)