Skip to content

Conversation

@Kourin1996
Copy link

@Kourin1996 Kourin1996 commented Nov 29, 2024

Fixes #249

This PR adds skipping of fuzzing test in test/libraries/SafeCall.t.sol for AddressSortedLinkedList and AddressSortedLinkedListWithMedian.

Fuzzing test in test/libraries/SafeCall.t.sol, which calls random address with random method ID, calls AddressSortedLinkedList or AddressSortedLinkedListWithMedian with high probability. The reason is because they are deployed before tests and their addresses are used as a input. Only library contracts having methods with public or external visibilities might be target.

This fuzzing test is just random call test and don't check functionality of these libraries. Then this PR skips testing for them.

@Kourin1996 Kourin1996 self-assigned this Nov 29, 2024
@Kourin1996 Kourin1996 marked this pull request as ready for review November 29, 2024 15:02
Copy link

@karlb karlb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure what the SafeCall test actually tests, but skipping this contract is certainly better than having a flaky CI.

I was also told that "AddressSortedLinkedListWithMedian is one of the most stables pieces of code we have, so if we haven’t hit that case in any testnet and mainnet in 5 years, I’d say chances are the test is wrong", so I won't question why the test fails for that contract too much.

@karlb karlb merged commit fd44a81 into celo10 Dec 9, 2024
56 of 57 checks passed
@karlb karlb deleted the Kourin1996/resolve-fuzz-tests-failures branch December 9, 2024 11:30
karlb pushed a commit that referenced this pull request Jan 13, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 15, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 15, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 20, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 27, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 29, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 29, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Jan 31, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Feb 4, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Feb 4, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Feb 12, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Feb 12, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
karlb pushed a commit that referenced this pull request Feb 12, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
piersy pushed a commit that referenced this pull request May 7, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
piersy pushed a commit that referenced this pull request May 8, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
piersy pushed a commit that referenced this pull request May 8, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
piersy pushed a commit that referenced this pull request May 8, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
piersy pushed a commit that referenced this pull request May 20, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
piersy pushed a commit that referenced this pull request May 22, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 23, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 25, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 26, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 26, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 27, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 27, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 28, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Jul 28, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Aug 4, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Aug 6, 2025
…ListWithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Aug 7, 2025
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Aug 8, 2025
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Kourin1996 added a commit that referenced this pull request Aug 11, 2025
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
gastonponti pushed a commit that referenced this pull request Sep 22, 2025
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
gastonponti pushed a commit that referenced this pull request Sep 22, 2025
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
gastonponti pushed a commit that referenced this pull request Sep 23, 2025
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
gastonponti pushed a commit that referenced this pull request Jan 8, 2026
…ithMedian (#277)

* Ignore AddressSortedLinkedList and AddressSortedLinkedListWithMedian as targets in fuzzing test of SafeCall_Test

* Format test/libraries/SafeCall.t.sol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky contracts fuzz test

3 participants