You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iceberg test fails openly instead of silently skipping
Per request: a skip-on-missing-env-vars path hides two failure modes
that matter more than the test itself running on a given PR.
1. CI misconfiguration. A rotated secret, renamed bucket, or
dropped env var renders as "missing env vars — skip". The job
reports SUCCESS, nobody notices, and the test silently stops
running on the iceberg lane until someone happens to look.
2. A real iceberg regression that lands during an env-var gap is
invisible — it hides behind the same "skipped" line that a
misconfigured lane produces.
Replace t.Skipf with t.Fatalf. Diagnostic spells out the missing vars,
explains why the test refuses to skip, and walks through the sandbox
bucket setup. Empty env vars are treated as missing (a rotated CI
secret often renders as empty rather than absent).
Tradeoff worth noting: PR CI's k8s-integration-tests job will fail
until the iceberg env vars are wired into every lane that runs the
suite. If keeping default PR CI green matters more than uniform
coverage, the follow-up is to split this test behind a build tag
(`//go:build k8s_iceberg`) so it only compiles into a dedicated
iceberg lane.
t.Skipf("real-AWS iceberg test skipped — missing env vars: %s. Set them in the iceberg CI lane against a sandbox S3 Tables bucket; see TestK8sIcebergRoundTrip godoc for setup.", strings.Join(missing, ", "))
159
-
returnicebergTestConfig{}, false
171
+
t.Fatalf(`iceberg integration test cannot run — required env vars are unset or empty: %s.
172
+
173
+
This test is intentionally NOT skippable: a silent skip would hide CI
0 commit comments