Skip to content

docker, runtime: only build clang and llc targets#10956

Merged
borkmann merged 2 commits intomasterfrom
pr/tklauser/docker-runtime-llvm-targets
Apr 16, 2020
Merged

docker, runtime: only build clang and llc targets#10956
borkmann merged 2 commits intomasterfrom
pr/tklauser/docker-runtime-llvm-targets

Conversation

@tklauser
Copy link
Copy Markdown
Member

@tklauser tklauser commented Apr 14, 2020

Specify only the targets we need from the llvm build, namely clang and
llc. This reduces the amount of objects to build by ~300 and thus
also reduces build time a bit.

(Edit from @borkmann: added the test update commit which fixes below issue)

Fixes: #10882

@tklauser tklauser added pending-review release-note/misc This PR makes changes that have no direct user impact. labels Apr 14, 2020
@tklauser tklauser requested a review from borkmann April 14, 2020 07:42
@tklauser tklauser requested review from aanm and ianvernon as code owners April 14, 2020 07:42
@tklauser
Copy link
Copy Markdown
Member Author

test-me-please

Comment thread contrib/packaging/docker/Dockerfile.runtime
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 14, 2020

Coverage Status

Coverage decreased (-0.009%) to 46.788% when pulling 06b1501 on pr/tklauser/docker-runtime-llvm-targets into 4ce5a4e on master.

@tklauser tklauser force-pushed the pr/tklauser/docker-runtime-llvm-targets branch from 197e4cb to 1661e19 Compare April 14, 2020 13:46
@tklauser tklauser requested a review from a team as a code owner April 14, 2020 13:46
@tklauser
Copy link
Copy Markdown
Member Author

tklauser commented Apr 14, 2020

test-me-please

EDIT: failure looks like #10882 https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/18735/

Specify only the targets we need from the llvm build, namely `clang` and
`llc`. This reduces the amount of objects to build by ~300 and thus
also reduces build time a bit.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser force-pushed the pr/tklauser/docker-runtime-llvm-targets branch from 1661e19 to d77ff8b Compare April 14, 2020 16:30
@tklauser
Copy link
Copy Markdown
Member Author

test-me-please

@tklauser tklauser requested a review from a team as a code owner April 14, 2020 23:44
@borkmann
Copy link
Copy Markdown
Member

test-me-please

1 similar comment
@borkmann
Copy link
Copy Markdown
Member

test-me-please

@borkmann
Copy link
Copy Markdown
Member

borkmann commented Apr 15, 2020

Hit #10838
(tests-with-kernel green)

@borkmann
Copy link
Copy Markdown
Member

test-me-please

@borkmann
Copy link
Copy Markdown
Member

borkmann commented Apr 15, 2020

@borkmann
Copy link
Copy Markdown
Member

borkmann commented Apr 15, 2020

@tklauser
Copy link
Copy Markdown
Member Author

tklauser commented Apr 15, 2020

@tklauser
Copy link
Copy Markdown
Member Author

test-with-kernel

@tklauser
Copy link
Copy Markdown
Member Author

test-gke

@tklauser
Copy link
Copy Markdown
Member Author

tklauser commented Apr 15, 2020

restart-ginkgo

EDIT: net-next vm provisioning failure https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/18814/

@tklauser
Copy link
Copy Markdown
Member Author

tklauser commented Apr 15, 2020

restart-ginkgo
(IPv4 fragments flake)

2 similar comments
@borkmann
Copy link
Copy Markdown
Member

borkmann commented Apr 15, 2020

restart-ginkgo
(IPv4 fragments flake)

@borkmann
Copy link
Copy Markdown
Member

borkmann commented Apr 16, 2020

restart-ginkgo
(IPv4 fragments flake)

After updating the cilium-runtime image we also get a newer bpftool
build which generates a bpf_features.h header that includes the netns
cookie and therefore on bpf-next kernel we must fail this particular
test.

Similarly, doFragmentedRequest() from pod loopback does not make sense
either anymore. Given we performed the earlier testCurlRequestFail()
for a service, there is no point in retesting a fragmented request
again for this address.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
@borkmann borkmann force-pushed the pr/tklauser/docker-runtime-llvm-targets branch from 024cead to 06b1501 Compare April 16, 2020 07:40
@borkmann
Copy link
Copy Markdown
Member

test-me-please

@borkmann borkmann merged commit fff1c55 into master Apr 16, 2020
@borkmann borkmann deleted the pr/tklauser/docker-runtime-llvm-targets branch April 16, 2020 09:57
@brb
Copy link
Copy Markdown
Member

brb commented Apr 17, 2020

Did you create a PR for cilium/packer-ci-build to cache the updated Docker image in the CI VM images?

tklauser added a commit to cilium/packer-ci-build that referenced this pull request Apr 17, 2020
This will pull in Go 1.14.2 via cilium/cilium#10912 and the build llvm
changes from cilium/cilium#10956

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser added a commit to cilium/packer-ci-build that referenced this pull request Apr 17, 2020
This will pull in Go 1.14.2 via cilium/cilium#10912 and the build llvm
changes from cilium/cilium#10956

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser
Copy link
Copy Markdown
Member Author

Did you create a PR for cilium/packer-ci-build to cache the updated Docker image in the CI VM images?

@brb Thanks for the reminder. Opened PR cilium/packer-ci-build#208

brb pushed a commit to cilium/packer-ci-build that referenced this pull request Apr 18, 2020
This will pull in Go 1.14.2 via cilium/cilium#10912 and the build llvm
changes from cilium/cilium#10956

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser added a commit to cilium/packer-ci-build that referenced this pull request May 25, 2020
Specify only the targets we need from the llvm build, namely `clang` and
`llc`. This reduces the amount of objects to build by ~300 and thus
also reduces build time a bit.

Same as cilium/cilium#10956

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser added a commit to cilium/packer-ci-build that referenced this pull request May 25, 2020
Specify only the targets we need from the llvm build, namely `clang` and
`llc`. This reduces the amount of objects to build by ~300 and thus
also reduces build time a bit.

Same as cilium/cilium#10956

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
tklauser added a commit to cilium/packer-ci-build that referenced this pull request May 26, 2020
Specify only the targets we need from the llvm build, namely `clang` and
`llc`. This reduces the amount of objects to build by ~300 and thus
also reduces build time a bit.

Same as cilium/cilium#10956

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: K8sServicesTest Checks service across nodes Tests NodePort BPF Tests with vxlan Tests NodePort: Exitcode 7

5 participants