carlos / platform Public

tests: give the failed-publication withdrawal an unpublished change

TestPoolWithdrawalRequiresCompleteProof/failed-publication relied on the
files publisher not having finished its first publish when the test
stopped it. On CI's fast runners, with the wake now doing its replica
work before it returns (#1290), the publisher had finished, the final
publish sent no PUT, and the injected failure never fired. Write a file
the stopped publisher never saw, so the release always has one to fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 12184313c4499f6bc3b2b742277b3becc6ff0001 parent da1efdd
1 file changed, +7 −0
  • internal/activator/poolwithdrawal_test.go +7 −0

CI failed — run details

diff --git a/internal/activator/poolwithdrawal_test.go b/internal/activator/poolwithdrawal_test.go
index 8e5276021..12088f8bf 100644
--- a/internal/activator/poolwithdrawal_test.go
+++ b/internal/activator/poolwithdrawal_test.go
@@ -142,6 +142,13 @@ func TestPoolWithdrawalRequiresCompleteProof(t *testing.T) {
s.a.mu.Unlock()
case "failed-publication":
s.a.stopFiles(e)
+ // A change the stopped publisher never published, so the
+ // release's final files publish has a PUT to fail. Without
+ // it the test leaned on the publisher not having finished
+ // its first publish yet, which a fast box (and a wake that
+ // now does its replica work before it returns, #1290)
+ // does not give.
+ writeFiles(t, s.b, s.rt, map[string]string{"withdrawal.txt": "unpublished"})
s.fx.FailNextMatching("PUT", 403, func(k string, _ []byte) bool { return strings.Contains(k, "/files/") })
case "restart", "restart-dirty":
s = s.restart(t)