mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
As we're using https://github.com/GoogleContainerTools/container-structure-test when building images with Bazel, we can write tests that ensures that the binaries we produced are executable on the current platform. The code using this feature is not present in this PR, as it makes it much more readable for everyone to ship this independently. We may still be bitten by `init()` functions, but we'll set low timeouts on those container structure tests to ensure it stays quick. ## Test plan <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> ``` ~/work/other jh/sanity_check $ SANITY_CHECK=true ./bazel-bin/docker-images/syntax-highlighter/syntect_server Sanity check passed, exiting without error ~/work/other U jh/sanity_check $ ./bazel-bin/docker-images/syntax-highlighter/syntect_server ## Embedded themes: - `InspiredGitHub` - `Monokai` - `Solarized (dark)` # ... ``` ``` ~/work/other jh/sanity_check $ SANITY_CHECK=true bazel-bin/cmd/worker/worker_/worker Sanity check passed, exiting without error ``` |
||
|---|---|---|
| .. | ||
| internal | ||
| rootfs | ||
| shared | ||
| build-bazel.sh | ||
| build-wolfi.sh | ||
| BUILD.bazel | ||
| build.sh | ||
| Dockerfile | ||
| Dockerfile.bazel | ||
| Dockerfile.wolfi | ||
| go-build-wolfi.sh | ||
| go-build.sh | ||
| main.go | ||
| pre-build.sh | ||