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

do not close sessions after client solve if pre-initialized #2995

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

coryb
Copy link
Collaborator

@coryb coryb commented Aug 2, 2022

This fixes what appears to be a bug from an old refactor to allow
shared sessions:
ef58b61

Without this, the session cannot really be shared effectively since it always closed by the first solve.
As discussed in slack: https://dockercommunity.slack.com/archives/C7S7A40MP/p1658286226946059

There are no current users outside the openllb/hlb project, so should not have an impact:
https://sourcegraph.com/search?q=context:global+SessionPreInitialized+-file:%28%5E%7C/%29vendor/+&patternType=literal

cc @aaronlehmann

This fixes what appears to be a bug from an old refactor to allow
shared sessions:
moby@ef58b61

Without this, the session cannot really be shared effectively.

Signed-off-by: coryb <cbennett@netflix.com>
@tonistiigi tonistiigi merged commit 6805940 into moby:master Aug 2, 2022
coryb added a commit to coryb/hlb that referenced this pull request Aug 3, 2022
This is now required after a fix to buildkit that prevented sessions
from being shared my multiple solves.
moby/buildkit#2995

A future optimization here
might be to cache sessions for re-use within the hlb build rather
than creating/closing for each solve.
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.

None yet

3 participants