bee icon indicating copy to clipboard operation
bee copied to clipboard

storage incentives pkg inclusion proof test flaking

Open zelig opened this issue 1 year ago • 0 comments

⚠️ Support requests in an issue-format will be closed immediately. For support, go to Swarm's Discord.

Context

pn branch feat/redundancy-api-tests

Summary

storageincentive test for inclusion proofs flakes

Expected behavior

it is supposed to pass all the time

Actual behavior

--- FAIL: TestMakeInclusionProofsRegression (0.07s)
    proof_test.go:125: unexpected inclusion proofs (-want +have):
          redistribution.ChunkInclusionProofs{
          	A: redistribution.ChunkInclusionProof{
          		ProofSegments: []common.Hash{
        - 			s"0x9d8b4d5355a0525eb126babedbfdca42c796410716f1b8d3d6ea17acc7eeee3f",
        + 			s"0x0875605dea48e812c9685ffba220a2b848bdbafdb95e02d087ba4a32925ea34f",
          			{0xf8, 0x73, 0xdf, 0x72, ...},
          			{0x1f, 0xa8, 0x76, 0x7f, ...},
          			... // 4 identical elements
          		},
          		ProveSegment: common.Hash{
        - 			0xc8, 0xb8, 0x4c, 0xe6, 0xdf, 0xbf, 0xeb, 0x3d, 0xd9, 0x0b, 0xfb, 0x38, 0x4e, 0x85, 0xf4, 0xe0,
        - 			0xfc, 0x2f, 0x8e, 0x76, 0xa7, 0x41, 0xaf, 0x03, 0x23, 0xe8, 0x4d, 0xf4, 0x0c, 0x25, 0x6b, 0x34,
        + 			0x71, 0x33, 0x88, 0x5a, 0xc5, 0x9d, 0xca, 0x7b, 0x97, 0x77, 0x3a, 0xcb, 0x74, 0x0e, 0x97, 0x8d,
        + 			0x41, 0xa4, 0xaf, 0x45, 0xbd, 0x56, 0x30, 0x67, 0xc8, 0xa3, 0xd8, 0x63, 0x57, 0x84, 0x88, 0xf1,
          		},
          		ProofSegments2: {{0x00, 0x00, 0x00, 0x00, ...}, {0xad, 0x32, 0x28, 0xb6, ...}, {0xb4, 0xc1, 0x19, 0x51, ...}, {0x21, 0xdd, 0xb9, 0xa3, ...}, ...},
          		ProveSegment2:  {0x00, 0x00, 0x00, 0x00, ...},
          		... // 4 identical fields
          	},
          	B: redistribution.ChunkInclusionProof{
          		ProofSegments: []common.Hash{
        - 			s"0xe17dba67b269ca086d052e59066971490bbfc12a3d769b1bbcf54e27ea5a3475",
        + 			s"0x463aeb4ca5f000064c082e56eba387004265d2f47bf1226ef2d86cb163bcca3a",
          			{0x82, 0x9a, 0xf5, 0x8b, ...},
          			{0xde, 0xe4, 0x81, 0x5e, ...},
          			... // 4 identical elements
          		},
          		ProveSegment: common.Hash{
        - 			0x3a, 0xee, 0x23, 0x41, 0xe5, 0xe9, 0x6a, 0xa5, 0x75, 0x98, 0xef, 0xa6, 0xc8, 0x5a, 0x5a, 0x29,
        - 			0xd1, 0x8b, 0xa2, 0x3f, 0xf7, 0x5e, 0x8e, 0xac, 0xd3, 0x06, 0x05, 0x6a, 0x8f, 0xa3, 0x39, 0x1f,
        + 			0x53, 0x5e, 0x6d, 0xf5, 0x8a, 0x12, 0x2a, 0x8f, 0x5e, 0x6c, 0x85, 0x1c, 0x19, 0xb3, 0xe0, 0x42,
        + 			0xf4, 0xcd, 0x1b, 0x5c, 0x5a, 0x8c, 0x49, 0x95, 0x81, 0xc9, 0xf6, 0xd4, 0xe3, 0x50, 0x91, 0x82,
          		},
          		ProofSegments2: {{0x00, 0x00, 0x00, 0x00, ...}, {0xad, 0x32, 0x28, 0xb6, ...}, {0xb4, 0xc1, 0x19, 0x51, ...}, {0x21, 0xdd, 0xb9, 0xa3, ...}, ...},
          		ProveSegment2:  {0x00, 0x00, 0x00, 0x00, ...},
          		... // 4 identical fields
          	},
          	C: redistribution.ChunkInclusionProof{
          		ProofSegments: []common.Hash{
        - 			s"0xda6d70293500581518bafce8b5c2d8de1178e18aef7657f1ed2e77d6334eb389",
        + 			s"0xfee18543782df46a86f85456e62dc973a4c84369b6b1cd4f93e57fe247f9730e",
          			{0x23, 0xa0, 0x85, 0x8e, ...},
          			{0xb6, 0xbf, 0xfa, 0x54, ...},
          			... // 4 identical elements
          		},
          		ProveSegment: common.Hash{
        - 			0x03, 0x0c, 0x2b, 0x9d, 0xec, 0xf1, 0x65, 0x3b, 0x67, 0xa5, 0xa8, 0x67, 0x46, 0x41, 0xe4, 0x81,
        - 			0x17, 0x31, 0x13, 0xa1, 0x5f, 0xd8, 0x98, 0x5f, 0x88, 0xa3, 0x5f, 0x4b, 0xf3, 0x8c, 0xf8, 0x32,
        + 			0x5b, 0xa2, 0xc8, 0xb9, 0x12, 0xfa, 0xd4, 0xae, 0xb4, 0xa1, 0x1a, 0x96, 0x09, 0x46, 0xd0, 0x7b,
        + 			0x9f, 0x66, 0xbc, 0x40, 0xac, 0x54, 0xd8, 0x72, 0x24, 0x91, 0x4d, 0x75, 0xf5, 0xae, 0xea, 0x5f,
          		},
          		ProofSegments2: {{0x00, 0x00, 0x00, 0x00, ...}, {0xad, 0x32, 0x28, 0xb6, ...}, {0xb4, 0xc1, 0x19, 0x51, ...}, {0x21, 0xdd, 0xb9, 0xa3, ...}, ...},
          		ProveSegment2:  {0x00, 0x00, 0x00, 0x00, ...},
          		... // 4 identical fields
          	},
          }
FAIL
FAIL	github.com/ethersphere/bee/pkg/storageincentives	33.001s

Steps to reproduce

Possible solution

zelig avatar Jan 04 '24 21:01 zelig