-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
test: when content still exist, prune again #3802
base: master
Are you sure you want to change the base?
Conversation
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 guess this is fine as a hotfix but it can hide away actual error. The current flaky error in CI happens because HistoryAPI and test framework have a sync conflict that should be still fixed with something that only addresses that specific issue.
Indeed, it seems the sequence of what is happening is this (maybe my vocabulary isn't very good here :-) ):
See more logs details here: https://github.com/amurzeau/buildkit/actions/runs/4769578985/jobs/8480092417 I'm not sure how this remaining blob could be ignored by tests, maybe there is a way to get a metadata associated with it like |
After digging more, I found that: Most of the time,
But sometimes, the trace is saved during a garbage collection, this is what happen (see https://github.com/amurzeau/buildkit/actions/runs/4854419604/jobs/8651910873):
So the remaining trace in the content store is not removed as nothing more is done by the test, no more garbage collection will be triggered on containerd side. |
Do you want me to keep this solution open ? Else I can close it. |
1857ff8
to
32a178f
Compare
Sometimes, a saved trace is still in the content store and is not removed by garbage collection call due to timing issues (a history trace is saved in containerd while it is running the garbage collection). When this happens, trigger a garbage collection again so the remaining content is removed. Signed-off-by: Alexis Murzeau <[email protected]>
Hi,
When tests run on github actions, it happens that some of them fails with
content still exists
, as reported in #3401.Sometimes, a saved trace is still in the content store and is not removed.
Adding a prune call again when the content store is not empty seems to fix the issue.