From 732c037c4e7737e1335c2f08fe0b8172f694d091 Mon Sep 17 00:00:00 2001 From: Joe Caulfield Date: Fri, 8 Nov 2024 17:01:22 +0400 Subject: [PATCH] add fixture skips --- scripts/ci/fd-conformance.mjs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/ci/fd-conformance.mjs b/scripts/ci/fd-conformance.mjs index 767353d..c88243d 100644 --- a/scripts/ci/fd-conformance.mjs +++ b/scripts/ci/fd-conformance.mjs @@ -16,6 +16,18 @@ await $`git clone https://github.com/firedancer-io/solana-conformance.git`; const testVectorsPath = path.join(harnessPath, 'impl', 'test-vectors'); await $`git clone https://github.com/firedancer-io/test-vectors.git ${testVectorsPath}`; +// Remove the fixtures we want to skip. +const fixturesPath = path.join(testVectorsPath, 'instr', 'fixtures', 'config'); +const skipFixtures = [ + // These two fixtures provide executable config accounts, which we know is + // a case that can't manifest under the Solana protocol. + '68e8dbf0f31de69a2bd1d2c0fe9af3ba676301d6_3157979.fix', + '04a0b782cb1f4b1be044313331edda9dfb4696d6.fix', +]; +for (const fixture of skipFixtures) { + await $`rm -f ${path.join(fixturesPath, fixture)}`; +} + // Clone the SolFuzz-Agave harness. const solFuzzAgavePath = path.join(harnessPath, 'impl', 'solfuzz-agave'); await $`git clone -b agave-v2.1.0 http://github.com/firedancer-io/solfuzz-agave.git ${solFuzzAgavePath}`; @@ -57,7 +69,6 @@ await $`CORE_BPF_PROGRAM_ID=${getProgramId('program')} \ await $`mv ${solFuzzAgaveTargetPath} ${testTargetPathCoreBpf}`; // Run the tests. -const fixturesPath = path.join(testVectorsPath, 'instr', 'fixtures', 'config'); await $`source test_suite_env/bin/activate && \ solana-test-suite run-tests \ -i ${fixturesPath} -s ${testTargetPathBuiltin} -t ${testTargetPathCoreBpf}`;