Skip to content

Commit c2dfe43

Browse files
authored
fd-conformance: use consensus mode (#36)
1 parent 7ced055 commit c2dfe43

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

scripts/ci/fd-conformance.mjs

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,10 @@ await $`git clone https://github.com/firedancer-io/solana-conformance.git`;
1616
const testVectorsPath = path.join(harnessPath, 'impl', 'test-vectors');
1717
await $`git clone https://github.com/firedancer-io/test-vectors.git ${testVectorsPath}`;
1818

19-
// Remove the fixtures we want to skip.
20-
const fixturesPath = path.join(testVectorsPath, 'instr', 'fixtures', 'config');
21-
const skipFixtures = [
22-
// These fixtures provide executable config accounts, which we know is a
23-
// case that can't manifest under the Solana protocol.
24-
'04a0b782cb1f4b1be044313331edda9dfb4696d6.fix',
25-
'c7ec10c03d5faadcebd32dc5b9a4086abef892ca_3157979.fix',
26-
'68e8dbf0f31de69a2bd1d2c0fe9af3ba676301d6_3157979.fix',
27-
'f84b5ad44f7a253ebc8056d06396694370a7fa4c_3157979.fix',
28-
'8bbe900444c675cfc3fbf0f80ae2eb061e536a09.fix',
29-
];
30-
for (const fixture of skipFixtures) {
31-
await $`rm -f ${path.join(fixturesPath, fixture)}`;
32-
}
33-
3419
// Add the Mollusk-generated fixtures to the test inputs.
20+
const firedancerFixturesPath = path.join(testVectorsPath, 'instr', 'fixtures', 'config');
3521
const molluskFixturesPath = path.join(workingDirectory, 'program', 'fuzz', 'blob');
36-
await $`cp -a ${molluskFixturesPath}/. ${fixturesPath}/`;
22+
await $`cp -a ${molluskFixturesPath}/. ${firedancerFixturesPath}/`;
3723

3824
// Clone the SolFuzz-Agave harness.
3925
const solFuzzAgavePath = path.join(harnessPath, 'impl', 'solfuzz-agave');
@@ -83,7 +69,8 @@ await $`rm -rf test_results`;
8369
// Run the tests.
8470
await $`source test_suite_env/bin/activate && \
8571
solana-test-suite run-tests \
86-
-i ${fixturesPath} -s ${testTargetPathBuiltin} -t ${testTargetPathCoreBpf}`;
72+
-i ${firedancerFixturesPath} -s ${testTargetPathBuiltin} -t ${testTargetPathCoreBpf} \
73+
--consensus-mode`;
8774

8875
// Assert conformance.
8976
// There should be no fixtures in the `failed_protobufs` directory.

0 commit comments

Comments
 (0)