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

tests/smoke: build with bazel's "pure" mode #243

Merged
merged 1 commit into from
Sep 13, 2018
Merged

tests/smoke: build with bazel's "pure" mode #243

merged 1 commit into from
Sep 13, 2018

Conversation

steveej
Copy link
Contributor

@steveej steveej commented Sep 12, 2018

This makes the smoke test binary a statically linked which is necessary
on my system due to:

ldd bazel-bin/tests/smoke/linux_amd64_stripped/go_default_test
(...)
libstdc++.so.6 => not found
(...)

We already use "pure" for building the installer itself, so this also
adds more consistency.

@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 12, 2018
@wking
Copy link
Member

wking commented Sep 12, 2018

You'll also need the linux_amd64_stripped -> linux_amd64_pure_stripped change in a few other places:

$ git grep linux_amd64_stripped 860c4ef
860c4ef:images/installer-origin-release/Dockerfile.ci:    cp bazel-bin/tests/smoke/linux_amd64_stripped/go_default_test /usr/bin/smoke && \
860c4ef:tests/smoke/README.md:The tests can then be run by invoking the `go_default_test` binary in the `bazel-bin/tests/smoke/linux_amd64_stripped` directory.
860c4ef:tests/smoke/README.md:bazel-bin/tests/smoke/linux_amd64_stripped/go_default_test -cluster -test.v

This makes the smoke test binary a statically linked which is necessary
on my system due to:

> ldd bazel-bin/tests/smoke/linux_amd64_stripped/go_default_test
>     (...)
>     libstdc++.so.6 => not found
>     (...)

We already use "pure" for building the installer itself, so this also
adds more consistency.
@steveej
Copy link
Contributor Author

steveej commented Sep 12, 2018

/retest

@wking
Copy link
Member

wking commented Sep 12, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 12, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: steveeJ, wking

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:

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

@wking
Copy link
Member

wking commented Sep 13, 2018

/retest

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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants