Mercurial
diff mrjunejune/test/production_inference_bundle_test.sh @ 267:a78f5986011f
discover bundled production runtimes
Locate Bazel-packaged Copilot and Python binaries by stable suffix instead of hardcoding an external repository prefix.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 07 Aug 2026 12:58:55 -0700 |
| parents | 056790c4fb0d |
| children | f7b1188d5fb1 |
line wrap: on
line diff
--- a/mrjunejune/test/production_inference_bundle_test.sh Fri Aug 07 12:52:30 2026 -0700 +++ b/mrjunejune/test/production_inference_bundle_test.sh Fri Aug 07 12:58:55 2026 -0700 @@ -41,6 +41,12 @@ entrypoint="$(find -L "$bundle" -type f -name production_entrypoint.sh -print -quit)" bash -n "$entrypoint" grep -q 'mrjunejune_server_binary' "$entrypoint" +grep -q "copilot_cli_linux_x86_64/copilot" "$entrypoint" +grep -q "rules_python++python+python_3_11_x86_64-unknown-linux-gnu/bin/python3" "$entrypoint" +if grep -q '+http_archive+copilot_cli_linux_x86_64' "$entrypoint"; then + echo "Production entrypoint hardcodes one Bazel repository prefix" >&2 + exit 1 +fi if grep -q 'MRJUNEJUNE_ALLOW_.*INFERENCE' "$entrypoint"; then echo "Production entrypoint must not override guest policy from .config" >&2 exit 1