Repository navigation
Rewrite smoke test: single container, execution and version checks - #6
Open
ngpayyappilly wants to merge 1 commit into
Open
ngpayyappilly wants to merge 1 commit into
ngpayyappilly wants to merge 1 commit into
Conversation
- Run all checks in one container instead of ~45 `docker run`s. - Execute incident-critical tools (tcpdump, strace, gdb, bpftrace, nmap, dig, openssl, ...) rather than only `command -v`, which cannot catch wrong-arch binaries or missing shared libraries. - Assert kubectl/yq/stern/grpcurl versions match the Dockerfile ARGs. - Assert kubectl completion and the motd banner load for the interactive shell, and that non-interactive shells stay silent. No longer swallows failures with `|| true`. - Add --db-clients to verify the INSTALL_DB_CLIENTS=true variant. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014iDTyB5N8EdZyyZo4ymUVR
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The previous smoke test ran about 45 separate
docker runs, only checked that most tools existed (command -v), and hid a failure with|| true. Rewritten:command -vcannot catch a wrong-arch binary or a missing shared library.ARGs in the Dockerfile, so a bump that did not take effect fails CI.k, kubectl completion registered fork, the banner shown for interactive shells, and non-interactive shells staying silent (this guards the bashrc fix in Fix bashrc interactive guard, bake kubectl completion, load for any HOME #3). No more|| true.--db-clientsflag to verify theINSTALL_DB_CLIENTS=truevariant. Not wired into CI yet; a build-matrix entry would be a follow-up.Testing
No Docker daemon in my environment, so I could not run it against a built image. I ran the script with a stand-in
dockerthat executes the test body locally:PATH, every version assertion passes.ARGchanged toYQ_VERSION=v9.9.9, it fails withyq version is not 9.9.9and exits non-zero.The remaining local FAILs are tools that simply are not installed in the sandbox. The PR workflow runs it against the real image on amd64 and arm64.
shellcheck is not available in my environment; the PR lint job will run it.
Part of an SRE review series (test quality).
Generated by Claude Code