foundry icon indicating copy to clipboard operation
foundry copied to clipboard

test `test_json_roundtrip_guessed` failed

Open DaniPopes opened this issue 6 months ago • 2 comments

https://github.com/foundry-rs/foundry/actions/runs/15261962123/job/42921323717

    proptest: Aborting shrinking after the PROPTEST_MAX_SHRINK_ITERS environment variable or ProptestConfig.max_shrink_iters iterations (set 1024 to a large(r) value to shrink more; current configuration: 1024 iterations)
    proptest: Saving this and future failures in /home/runner/work/foundry/foundry/crates/cheatcodes/proptest-regressions/json.txt
    proptest: If this test was run on a CI system, you may wish to add the following line to your copy of the file. (You may need to create it.)
    cc 913fde57c806abbaa5eb3f013794819dfa020381666a3cbbc4cb734791f14700

    thread 'json::tests::test_json_roundtrip_guessed' panicked at crates/cheatcodes/src/json.rs:723:5:
    Test failed: called `Result::unwrap()` on an `Err` value: SolTypes(Overrun).
    minimal failing input: v = Array(
        [
            String(
                "{}",
            ),
        ],
    )
    	successes: 232
    	local rejects: 143
    		143 times at tuples are not supported
    	global rejects: 0

due to: https://github.com/foundry-rs/foundry/blob/3eb47ea41ba0b26f0c97ce20cad177a43f55d3b5/crates/cheatcodes/src/json.rs#L596-L604

DaniPopes avatar May 26 '25 22:05 DaniPopes

@DaniPopes do you have an approach / fix in mind?

zerosnacks avatar May 27 '25 12:05 zerosnacks

let me know if you an approach in mind, I can try fixing it

zjesko avatar May 27 '25 12:05 zjesko