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

buildkit socket: Add systemd unit #12081

Merged
merged 15 commits into from
Oct 2, 2021
Merged

Conversation

spowelljr
Copy link
Member

@spowelljr spowelljr commented Jul 30, 2021

Closes #9947
Closes #12264

Creating a systemd unit that we can use to start the buildkit daemon.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 30, 2021
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 30, 2021
deploy/kicbase/Dockerfile Outdated Show resolved Hide resolved
Copy link
Collaborator

@afbjorklund afbjorklund left a comment

Choose a reason for hiding this comment

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

Looking good! Need to try it now, see if we missed something else

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 24, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 31, 2021
@kubernetes kubernetes deleted a comment from k8s-ci-robot Aug 31, 2021
@spowelljr spowelljr changed the title WIP: Buildkit systemd buildkit socket: Add systemd unit Sep 16, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 16, 2021
@spowelljr
Copy link
Member Author

Tested and working, waiting for #12425 to be merged before building ISO and kicbase to prevent merge conflicts

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2021
@spowelljr
Copy link
Member Author

Blocked by cri-o/cri-o#5343

@spowelljr
Copy link
Member Author

ok-to-build-image

@minikube-bot
Copy link
Collaborator

Hi @spowelljr, we have updated your PR with the reference to newly built kicbase image. Pull the changes locally if you want to test with them or update your PR further.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 30, 2021
@spowelljr
Copy link
Member Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Sep 30, 2021
@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 48.5s    | 49.0s               |
| enable ingress | 34.0s    | 32.4s               |
+----------------+----------+---------------------+

Times for minikube start: 49.6s 48.7s 48.4s 47.8s 48.0s
Times for minikube (PR 12081) start: 49.1s 48.7s 49.3s 48.9s 48.7s

Times for minikube ingress: 31.8s 32.3s 40.3s 33.3s 32.4s
Times for minikube (PR 12081) ingress: 32.3s 33.8s 32.3s 31.4s 31.9s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 22.1s    | 31.1s               |
| enable ingress | 29.0s    | 29.2s               |
+----------------+----------+---------------------+

Times for minikube ingress: 27.4s 35.4s 26.4s 29.0s 26.9s
Times for minikube (PR 12081) ingress: 34.9s 27.9s 27.9s 28.0s 27.4s

Times for minikube start: 23.4s 22.3s 22.1s 21.4s 21.4s
Times for minikube (PR 12081) start: 68.7s 20.2s 21.5s 22.6s 22.3s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 40.2s    | 40.5s               |
| enable ingress | 35.2s    | 32.6s               |
+----------------+----------+---------------------+

Times for minikube start: 27.7s 42.0s 43.7s 44.0s 43.8s
Times for minikube (PR 12081) start: 43.4s 43.3s 42.8s 36.3s 36.7s

Times for minikube (PR 12081) ingress: 33.9s 29.9s 36.9s 21.6s 40.4s
Times for minikube ingress: 47.9s 38.0s 20.0s 33.0s 36.9s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Docker_Linux TestFunctional/parallel/DashboardCmd (gopogh) 0.74 (chart)
KVM_Linux_containerd TestFunctional/parallel/ImageCommands/ImageBuild (gopogh) 1.18 (chart)
Docker_Windows TestNetworkPlugins/group/false/DNS (gopogh) 5.00 (chart)
Docker_Windows TestNetworkPlugins/group/auto/DNS (gopogh) 5.62 (chart)
Docker_Linux_containerd TestPause/serial/Pause (gopogh) 18.98 (chart)
Docker_Linux_containerd TestPause/serial/VerifyStatus (gopogh) 18.98 (chart)
Docker_Linux_containerd TestPause/serial/PauseAgain (gopogh) 20.44 (chart)
Docker_Windows TestAddons/Setup (gopogh) 42.52 (chart)
Docker_Windows TestNetworkPlugins/group/calico/NetCatPod (gopogh) 45.45 (chart)
Docker_Windows TestPause/serial/DeletePaused (gopogh) 64.00 (chart)
Docker_Windows TestNetworkPlugins/group/kindnet/Start (gopogh) 72.65 (chart)
Docker_Windows TestNetworkPlugins/group/bridge/DNS (gopogh) 78.26 (chart)
Docker_Windows TestNetworkPlugins/group/kubenet/DNS (gopogh) 84.21 (chart)
Docker_Windows TestCertOptions (gopogh) 99.21 (chart)
Docker_Linux_containerd TestScheduledStopUnix (gopogh) 100.00 (chart)

To see the flake rates of all tests by environment, click here.

@spowelljr
Copy link
Member Author

/retest-this-please

@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 48.7s    | 48.1s               |
| enable ingress | 32.1s    | 32.5s               |
+----------------+----------+---------------------+

Times for minikube ingress: 33.3s 31.4s 31.8s 32.8s 31.2s
Times for minikube (PR 12081) ingress: 31.4s 32.3s 32.8s 32.3s 33.7s

Times for minikube start: 53.3s 47.6s 46.9s 48.2s 47.7s
Times for minikube (PR 12081) start: 48.3s 47.7s 48.9s 49.2s 46.4s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 21.9s    | 28.5s               |
| enable ingress | 30.4s    | 31.5s               |
+----------------+----------+---------------------+

Times for minikube start: 22.0s 21.4s 21.0s 22.6s 22.4s
Times for minikube (PR 12081) start: 52.8s 22.8s 21.0s 24.3s 21.7s

Times for minikube ingress: 34.9s 27.9s 26.9s 27.0s 35.4s
Times for minikube (PR 12081) ingress: 32.9s 34.9s 27.9s 26.9s 34.9s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 42.0s    | 44.0s               |
| enable ingress | 26.7s    | 40.8s               |
+----------------+----------+---------------------+

Times for minikube start: 41.5s 44.2s 36.9s 43.7s 43.7s
Times for minikube (PR 12081) start: 44.5s 43.4s 43.8s 43.7s 44.4s

Times for minikube ingress: 23.9s 22.9s 26.4s 26.9s 33.5s
Times for minikube (PR 12081) ingress: 38.0s 32.9s 33.9s 66.9s 32.4s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
none_Linux TestFunctional/serial/ExtraConfig (gopogh) 0.77 (chart)
Docker_Windows TestStartStop/group/no-preload/serial/SecondStart (gopogh) 6.54 (chart)
none_Linux TestFunctional/serial/ComponentHealth (gopogh) 10.00 (chart)
Docker_Windows TestStartStop/group/old-k8s-version/serial/Pause (gopogh) 12.38 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/Pause (gopogh) 22.86 (chart)
Docker_Windows TestFunctional/parallel/StatusCmd (gopogh) 36.36 (chart)
Docker_Windows TestPause/serial/VerifyStatus (gopogh) 45.00 (chart)
Docker_Windows TestNetworkPlugins/group/bridge/Start (gopogh) 59.82 (chart)
Docker_Windows TestPause/serial/DeletePaused (gopogh) 66.39 (chart)
Docker_Windows TestNetworkPlugins/group/kubenet/Start (gopogh) 66.96 (chart)
Docker_Windows TestNetworkPlugins/group/cilium/Start (gopogh) 73.21 (chart)
Docker_Windows TestNetworkPlugins/group/kindnet/Start (gopogh) 73.21 (chart)
Docker_Windows TestNetworkPlugins/group/calico/Start (gopogh) 90.18 (chart)
Docker_Windows TestCertOptions (gopogh) 99.17 (chart)
Docker_Linux_containerd TestScheduledStopUnix (gopogh) 100.00 (chart)

To see the flake rates of all tests by environment, click here.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sharifelgamal, spowelljr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [sharifelgamal,spowelljr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@spowelljr
Copy link
Member Author

ok-to-build-iso

@minikube-bot
Copy link
Collaborator

Hi @spowelljr, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further.

@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 48.5s    | 48.2s               |
| enable ingress | 31.6s    | 31.2s               |
+----------------+----------+---------------------+

Times for minikube start: 50.3s 47.2s 48.0s 48.2s 48.9s
Times for minikube (PR 12081) start: 49.2s 47.2s 48.5s 48.6s 47.7s

Times for minikube ingress: 31.3s 32.4s 30.9s 31.8s 31.4s
Times for minikube (PR 12081) ingress: 31.3s 31.3s 30.9s 30.8s 31.9s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 22.0s    | 30.3s               |
| enable ingress | 26.9s    | 28.5s               |
+----------------+----------+---------------------+

Times for minikube start: 23.1s 21.3s 21.8s 21.6s 22.2s
Times for minikube (PR 12081) start: 64.0s 21.7s 21.1s 22.6s 22.2s

Times for minikube ingress: 27.5s 27.0s 26.4s 26.4s 27.0s
Times for minikube (PR 12081) ingress: 27.4s 35.0s 26.4s 26.5s 27.0s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 40.9s    | 43.2s               |
| enable ingress | 29.2s    | 29.2s               |
+----------------+----------+---------------------+

Times for minikube start: 28.3s 43.8s 45.1s 43.3s 44.0s
Times for minikube (PR 12081) start: 44.1s 43.9s 43.1s 44.0s 40.9s

Times for minikube (PR 12081) ingress: 32.5s 32.9s 19.4s 29.0s 32.5s
Times for minikube ingress: 32.9s 19.0s 28.5s 32.5s 33.0s

@minikube-pr-bot
Copy link

kvm2 driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 48.3s    | 49.1s               |
| enable ingress | 32.0s    | 31.8s               |
+----------------+----------+---------------------+

Times for minikube start: 50.7s 47.5s 48.0s 46.9s 48.6s
Times for minikube (PR 12081) start: 49.0s 49.1s 47.5s 47.4s 52.3s

Times for minikube ingress: 32.3s 31.4s 31.3s 31.8s 33.3s
Times for minikube (PR 12081) ingress: 31.3s 33.5s 31.4s 31.8s 30.8s

docker driver with docker runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 22.2s    | 25.1s               |
| enable ingress | 28.3s    | 28.4s               |
+----------------+----------+---------------------+

Times for minikube start: 22.4s 21.8s 22.2s 22.0s 22.4s
Times for minikube (PR 12081) start: 38.6s 21.5s 22.4s 21.6s 21.4s

Times for minikube ingress: 26.4s 27.4s 33.9s 27.4s 26.5s
Times for minikube (PR 12081) ingress: 26.4s 25.9s 35.4s 26.9s 27.5s

docker driver with containerd runtime

+----------------+----------+---------------------+
|    COMMAND     | MINIKUBE | MINIKUBE (PR 12081) |
+----------------+----------+---------------------+
| minikube start | 37.3s    | 40.1s               |
| enable ingress | 30.9s    | 26.7s               |
+----------------+----------+---------------------+

Times for minikube start: 30.0s 43.7s 43.1s 25.5s 44.0s
Times for minikube (PR 12081) start: 43.6s 37.2s 46.5s 43.4s 29.9s

Times for minikube ingress: 28.5s 32.5s 32.9s 32.5s 28.5s
Times for minikube (PR 12081) ingress: 17.9s 25.5s 28.4s 32.4s 29.4s

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Docker_Windows TestStartStop/group/old-k8s-version/serial/Pause (gopogh) 10.48 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/SecondStart (gopogh) 11.43 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/VerifyKubernetesImages (gopogh) 11.43 (chart)
Docker_Windows TestStartStop/group/default-k8s-different-port/serial/Pause (gopogh) 12.38 (chart)
Docker_Windows TestStartStop/group/no-preload/serial/Pause (gopogh) 14.42 (chart)
Docker_Linux_containerd TestPause/serial/Pause (gopogh) 17.97 (chart)
Docker_Linux_containerd TestPause/serial/PauseAgain (gopogh) 17.97 (chart)
Docker_Linux_containerd TestPause/serial/VerifyStatus (gopogh) 17.97 (chart)
Docker_Windows TestNetworkPlugins/group/auto/Start (gopogh) 20.72 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/Pause (gopogh) 22.86 (chart)
Docker_Windows TestFunctional/parallel/ImageCommands/ImageLoadFromFile (gopogh) 24.72 (chart)
Docker_Windows TestNetworkPlugins/group/false/Start (gopogh) 27.03 (chart)
Docker_Windows TestNetworkPlugins/group/enable-default-cni/Start (gopogh) 43.24 (chart)
Docker_Windows TestPause/serial/VerifyStatus (gopogh) 43.59 (chart)
Docker_Windows TestNetworkPlugins/group/bridge/Start (gopogh) 58.56 (chart)
Docker_Windows TestPause/serial/DeletePaused (gopogh) 63.79 (chart)
Docker_Windows TestNetworkPlugins/group/kubenet/Start (gopogh) 66.67 (chart)
Docker_Windows TestNetworkPlugins/group/cilium/Start (gopogh) 70.27 (chart)
Docker_Windows TestNetworkPlugins/group/custom-weave/Start (gopogh) 70.27 (chart)
Docker_Windows TestNetworkPlugins/group/kindnet/Start (gopogh) 72.97 (chart)
Docker_Windows TestNetworkPlugins/group/calico/Start (gopogh) 90.09 (chart)
Docker_Windows TestCertOptions (gopogh) 99.15 (chart)
Docker_Linux_containerd TestScheduledStopUnix (gopogh) 100.00 (chart)
Docker_Windows TestAddons/parallel/Registry (gopogh) 100.00 (chart)

To see the flake rates of all tests by environment, click here.

@minikube-pr-bot
Copy link

These are the flake rates of all failed tests.

Environment Failed Tests Flake Rate (%)
Docker_Linux_containerd TestStartStop/group/newest-cni/serial/Pause (gopogh) 0.78 (chart)
Docker_Linux TestPause/serial/PauseAgain (gopogh) 3.94 (chart)
Docker_Linux TestPause/serial/Pause (gopogh) 5.51 (chart)
Docker_Linux TestPause/serial/VerifyStatus (gopogh) 5.51 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/SecondStart (gopogh) 11.43 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/VerifyKubernetesImages (gopogh) 11.43 (chart)
Docker_Windows TestMultiNode/serial/CopyFile (gopogh) 11.86 (chart)
Docker_Windows TestStartStop/group/newest-cni/serial/Pause (gopogh) 22.86 (chart)
Docker_Windows TestFunctional/parallel/ImageCommands/ImageLoadFromFile (gopogh) 24.72 (chart)
Docker_Windows TestNetworkPlugins/group/false/Start (gopogh) 27.03 (chart)
Docker_Windows TestNetworkPlugins/group/enable-default-cni/Start (gopogh) 43.24 (chart)
Docker_Windows TestPause/serial/VerifyStatus (gopogh) 43.59 (chart)
Docker_Windows TestNetworkPlugins/group/bridge/Start (gopogh) 58.56 (chart)
Docker_Windows TestPause/serial/DeletePaused (gopogh) 63.79 (chart)
Docker_Windows TestNetworkPlugins/group/kubenet/Start (gopogh) 66.67 (chart)
Docker_Windows TestNetworkPlugins/group/cilium/Start (gopogh) 70.27 (chart)
Docker_Windows TestNetworkPlugins/group/custom-weave/Start (gopogh) 70.27 (chart)
Docker_Windows TestNetworkPlugins/group/kindnet/Start (gopogh) 72.97 (chart)
Docker_Windows TestNetworkPlugins/group/calico/Start (gopogh) 90.09 (chart)
Docker_Windows TestCertOptions (gopogh) 99.15 (chart)
Docker_Linux_containerd TestScheduledStopUnix (gopogh) 100.00 (chart)

To see the flake rates of all tests by environment, click here.

@spowelljr spowelljr merged commit 1a4160e into kubernetes:master Oct 2, 2021
@spowelljr spowelljr deleted the buildkitSocket branch October 2, 2021 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
6 participants