Skip to content

Commit 65da700

Browse files
authored
fix: fix Go formatting and flaky torch_baseimage_fallback integration test (#2817)
* fix: remove trailing whitespace in integration test harness * fix: convert torch_baseimage_fallback test to use cog debug instead of cog build The test was doing a real Docker build with torch==1.13.0 which failed because pip can no longer reliably install this old package. Since the test's purpose is to verify Dockerfile generation falls back to nvidia/cuda (not cog-base), use cog debug to check the generated Dockerfile text. Uses an empty local registry for deterministic behavior.
1 parent 63cf1d8 commit 65da700

2 files changed

Lines changed: 16 additions & 403 deletions

File tree

integration-tests/harness/harness.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ func (h *Harness) cmdCurl(ts *testscript.TestScript, neg bool, args []string) {
501501
ts.Fatalf("curl: failed to read body file %q: %v", filename, err)
502502
}
503503
body = string(data)
504-
}
504+
}
505505
}
506506

507507
// Retry settings

0 commit comments

Comments
 (0)