fix(ci): build and push only after lint and tests pass
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 12m8s
ci / test (pull_request) Successful in 12m14s
ci / build (pull_request) Successful in 11m42s
ci / image (pull_request) Successful in 4m32s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 12m8s
ci / test (pull_request) Successful in 12m14s
ci / build (pull_request) Successful in 11m42s
ci / image (pull_request) Successful in 4m32s
The build job, and so the image job after it, now needs lint and test: a failing test no longer lets CI go on to push images from main. TestBackgroundRefresh failed on CI now and then with "TempDir RemoveAll cleanup: directory not empty": a refresh started by a visit updates the cache before writing the snapshot to disk, so the test could end and remove the directory mid-write. Visit-triggered refreshes are tracked, and the test harness waits for them before its directory is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
d99a19250b
commit
4acea46736
3 files changed
+12
-1
No files matched your search
@@ -73,6 +73,9 @@ func newHarness(t *testing.T, src *fakeSource, dir string, now *time.Time) harne
|
||||
t.Fatal(err)
|
||||
}
|
||||
s.now = func() time.Time { return *now }
|
||||
// Runs before the cleanup of a TempDir created earlier, so no refresh
|
||||
// writes into a directory being removed.
|
||||
t.Cleanup(s.Wait)
|
||||
gin.SetMode(gin.TestMode)
|
||||
r := gin.New()
|
||||
s.Mount(r)
|
||||
|
||||
Reference in new issue
Block a user