@@ -168,6 +168,7 @@ func TestSelfHealingE2EHappyPath(t *testing.T) {
168168 registeredHashHex := hex .EncodeToString (registeredHashRaw )
169169 fileKey := pickAnchorKey (cmeta .RqIdsIds )
170170 require .NotEmpty (t , fileKey )
171+ t .Logf ("self-healing fixture prepared action_id=%s file_key=%s registered_action_hash=%s" , actionID , fileKey , registeredHashHex )
171172
172173 node0DiskKR , err := snkeyring .InitKeyring (snconfig.KeyringConfig {
173174 Backend : "test" ,
@@ -214,6 +215,7 @@ func TestSelfHealingE2EHappyPath(t *testing.T) {
214215 break
215216 }
216217 }
218+ t .Logf ("self-healing role selection recipient=%s recipient_has_local=%t observer=%s observer_has_local=%t" , recipient .Identity , recipient .HasLocal , observer .Identity , observer .HasLocal )
217219
218220 challengeID := fmt .Sprintf ("sh-e2e-happy-%d" , time .Now ().UnixNano ())
219221 req := & pb.RequestSelfHealingRequest {
@@ -227,11 +229,14 @@ func TestSelfHealingE2EHappyPath(t *testing.T) {
227229 }
228230 reqCtx , cancelReq := context .WithTimeout (ctx , 30 * time .Second )
229231 defer cancelReq ()
232+ t .Logf ("self-healing request start challenge_id=%s recipient=%s observers=%v" , challengeID , recipient .Identity , req .ObserverIds )
230233 reqRespSH , err := shClient .Request (reqCtx , recipient .Identity , recipient .GRPCAddr , req )
231234 require .NoError (t , err )
232235 require .True (t , reqRespSH .Accepted , "self-healing request was rejected: %s" , reqRespSH .Error )
233236 require .NotEmpty (t , reqRespSH .ReconstructedHashHex )
237+ t .Logf ("self-healing request response accepted=%t reconstruction_required=%t reconstructed_hash=%s" , reqRespSH .Accepted , reqRespSH .ReconstructionRequired , reqRespSH .ReconstructedHashHex )
234238 require .True (t , strings .EqualFold (reqRespSH .ReconstructedHashHex , registeredHashHex ), "recipient reconstructed hash mismatch: got=%s want=%s" , reqRespSH .ReconstructedHashHex , registeredHashHex )
239+ t .Logf ("self-healing hash assertion passed reconstructed_hash=%s registered_action_hash=%s" , reqRespSH .ReconstructedHashHex , registeredHashHex )
235240 if recipientForcedReconstruct {
236241 require .True (t , reqRespSH .ReconstructionRequired , "expected reconstruction_required=true when recipient initially lacked local key" )
237242 }
@@ -247,9 +252,11 @@ func TestSelfHealingE2EHappyPath(t *testing.T) {
247252 }
248253 verifyCtx , cancelVerify := context .WithTimeout (ctx , 30 * time .Second )
249254 defer cancelVerify ()
255+ t .Logf ("self-healing verify start challenge_id=%s observer=%s recipient=%s" , challengeID , observer .Identity , recipient .Identity )
250256 verifyResp , err := shClient .Verify (verifyCtx , observer .Identity , observer .GRPCAddr , verifyReq )
251257 require .NoError (t , err )
252258 require .True (t , verifyResp .Ok , "observer verification failed: %s" , verifyResp .Error )
259+ t .Logf ("self-healing verify response observer=%s ok=%t error=%q" , verifyResp .ObserverId , verifyResp .Ok , verifyResp .Error )
253260
254261 commitReq := & pb.CommitSelfHealingRequest {
255262 ChallengeId : challengeID ,
@@ -261,9 +268,11 @@ func TestSelfHealingE2EHappyPath(t *testing.T) {
261268 }
262269 commitCtx , cancelCommit := context .WithTimeout (ctx , 30 * time .Second )
263270 defer cancelCommit ()
271+ t .Logf ("self-healing commit start challenge_id=%s recipient=%s" , challengeID , recipient .Identity )
264272 commitResp , err := shClient .Commit (commitCtx , recipient .Identity , recipient .GRPCAddr , commitReq )
265273 require .NoError (t , err )
266274 require .True (t , commitResp .Stored , "self-healing commit failed: %s" , commitResp .Error )
275+ t .Logf ("self-healing commit response stored=%t error=%q" , commitResp .Stored , commitResp .Error )
267276}
268277
269278func registerSelfHealingSupernodes (t * testing.T , cli * LumeradCli ) {
0 commit comments