Repository navigation
fix(inference-ref-arch): harden deployment_test.sh port-forward and fail-fast checks - #622
Open
karajendran wants to merge 1 commit into
Open
karajendran wants to merge 1 commit into
karajendran wants to merge 1 commit into
Conversation
…ail-fast checks
Replace 'ps | grep " $PF_PID "' and unbounded telnet readiness loops with 'kill -0 "${PF_PID}" 2>/dev/null', EXIT-trapped port-forward cleanup, bounded GET /health probes, 'set -euo pipefail', 'curl --fail', PNG header / JSON content assertions, and subprocess regression tests across online-inference-tpu (max-diffusion, vllm) and online-inference-gpu (vllm).
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
Follow-up to #615 hardening
deployment_test.shacrossonline-inference-tpu/{max-diffusion,vllm}andonline-inference-gpu/vllm(test/:+507 / -117lines across 3 shell smoke tests and 1 unit-test suite):ps | grep " $PF_PID "(false-negatives in non-TTY subshells and on 6+/7-digit PIDs) and the unboundedtelnetloop (telnetis absent from runner/devcontainer images) withkill -0 "${PF_PID}" 2>/dev/null, a boundedGET /healthpoll (120 × 0.5s),--address 127.0.0.1, and anEXITcleanup trap.set -euo pipefail, exit non-zero on port-forward failure instead of breaking out withexit 0, fixhttp:/127.0.0.1→http://127.0.0.1on/v1/models, and enforcecurl --failplus PNG magic-byte (89504e470d0a1a0a) /jq -eresponse assertions.test_deployment_test_scripts.py(python-unit-test/python-coverage-testCI jobs) exercising happy, dead-PF_PID, health-timeout, and invalid-payload paths under detached non-TTY sessions.Validation
1.37.1E2E (europe-west4, private cluster,ClusterIP :8000over127.0.0.1port-forward) under detachedsetsid ... </dev/nullsessions with 7-digit PIDs: verifiedl4-qwen3-32b(8× NVIDIA L4),v6e-stable-diffusion-xl-base-1-0(8× TPUv6e,1024x1024PNG),v6e-qwen3-32b(4× TPUv6e), and post-delete fail-fast exit (rc=1,0orphanport-forwardprocesses)../run_python_unittests.sh(159tests OK;99%coverage ontest_deployment_test_scripts.py),black --check,isort --check-only,addlicense -check,final-newline,dictionaries_check.sh, andcspell.Limitations
online-inference-{gpu,tpu}/vllmserve models from/gcs/${HF_MODEL_ID}via Cloud Storage FUSE (--model=/gcs/$(MODEL_ID)), so consolidating them ontoonline-inference-gpu/common.sh(which sends"model": "${MODEL_ID}") is left out of scope for this bug fix.