[SMG][CI] Add K8s integration tests + wire into pr-test-rust (#24278)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kangyan-Zhou
2026-05-04 10:27:37 -07:00
committed by GitHub
co-authored by Claude Opus 4.7
parent e5c58eb9d6
commit c545a5b1c0
12 changed files with 1652 additions and 3 deletions
@@ -0,0 +1,31 @@
# syntax=docker/dockerfile:1.6
# Lightweight Dockerfile for integration testing.
# Builds the smg binary directly (no Python/maturin/wheel overhead).
# Uses the "ci" cargo profile (thin LTO, 16 codegen units) for fast builds.
#
# The repo's docker/gateway.Dockerfile builds a Python wheel via maturin for
# production. This Dockerfile builds just the Rust binary in ~5 min on a
# warm cache.
FROM rust:1.90-bookworm AS builder
RUN apt-get update && apt-get install -y \
libssl-dev pkg-config protobuf-compiler cmake \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/build/target \
cargo build --profile ci --bin smg --features vendored-openssl \
&& cp target/ci/smg /usr/local/bin/smg
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/bin/smg /usr/local/bin/smg
ENTRYPOINT ["smg"]