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

Allow sessions to hijack the connection outside of a solve #1433

Merged
merged 2 commits into from
Apr 9, 2020

Conversation

hinshun
Copy link
Collaborator

@hinshun hinshun commented Apr 8, 2020

Sessions need a way to run independently of a Solve and that isn't possible without being to hijack the underlying GRPC connection of a BuildKit client.

This a first step towards #1432, unblocking usage of shared sessions, but will require more design and implementation to support multiple sessions.

@hinshun hinshun requested a review from tonistiigi April 8, 2020 19:13
@hinshun
Copy link
Collaborator Author

hinshun commented Apr 8, 2020

+buildctl build --progress=plain --frontend=dockerfile.v0 --opt context=git://github.com/moby/buildkit#refs/pull/1433/merge --opt build-arg:BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 --opt target=integration-tests --output type=docker,name=buildkit-tests,dest=/tmp/docker-iidfile.cHSrqMXLqY --import-cache type=registry,ref=cicache.buildk.it/moby/buildkit/master:integration-tests --import-cache=type=registry,ref=cicache.buildk.it/moby/buildkit/pr672658870:integration-tests
error: failed to get status: rpc error: code = Unavailable desc = connection closed

Seems pretty common intermittent error. How do I get CI to rerun just that stage?

@tonistiigi
Copy link
Member

@hinshun There is a "restart job" button

@hinshun
Copy link
Collaborator Author

hinshun commented Apr 8, 2020

Realized I wasn't logged in on Travis. The button shows up now, thanks.

}
if len(opt.Exports) == 1 {
ex = opt.Exports[0]
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The eventual call to Solve uses ex which isn't set if opt.SessionPreInitialized == true. Assigning ex = opt.Exports[0] shouldn't be related to whether the session is initialized yet or not.

@tonistiigi tonistiigi merged commit 226a5db into moby:master Apr 9, 2020
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