From 1851b16cbc3a2c56c4b57f007cebffc4ac4baf59 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Thu, 22 Oct 2026 22:27:47 -0600 Subject: [PATCH] test(ghcredentials): run real gh tests outside the -short unit tier --- pkg/ghcredentials/host_real_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/ghcredentials/host_real_test.go b/pkg/ghcredentials/host_real_test.go index 2a3f6afd63..78e22b805b 100644 --- a/pkg/ghcredentials/host_real_test.go +++ b/pkg/ghcredentials/host_real_test.go @@ -14,6 +14,11 @@ import ( func requireRealGH(t *testing.T) { t.Helper() + if testing.Short() { + // The CPU-contended -short unit tier can exceed the 1.5s token lookup + // budget; the GitHub Credential Host Tests job runs these uncontended. + t.Skip("real gh runs in the GitHub Credential Host Tests job") + } if _, err := exec.LookPath("gh"); err != nil { if os.Getenv("DEVSY_TEST_REAL_GH") == "1" { require.NoError(t, err)