Skip to content

Commit

Permalink
Test breaking change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Mar 14, 2024
1 parent adbe5ff commit c3e433c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/SOLIDITY_COMPAT_ISSUE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Compatibility with the [Arecibo](https://github.com/lurk-lab/arecibo) dependency
Check the [Solidity compatibility workflow run](__WORKFLOW_URL__) for details.

This issue was raised by the workflow at __WORKFLOW_FILE__.

> [!NOTE]
> This is a test
9 changes: 7 additions & 2 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
- uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: Run Solidity test generator
run: cargo nextest run -E 'test(test_solidity_compatibility)' --release --run-ignored all > test-output
run: |
cargo nextest run -E 'test(test_solidity_compatibility)' --release --run-ignored all > test-output
cat test-output
working-directory: ${{ github.workspace }}
- name: Check out `solidity-verifier` for tests
uses: actions/checkout@v4
Expand All @@ -55,6 +57,7 @@ jobs:
version: nightly
- name: Prep Solidity test files
run: |
cat test-output
# Get test names from output
TEST_NAMES=$(grep 'test provider::*' test-output | awk -F'[_(.*?)\b...]' '{ print $(NF-3) }')
echo "$TEST_NAMES"
Expand Down Expand Up @@ -88,12 +91,14 @@ jobs:
buffer = ""
}
}' test-output
cat ipa.t.sol
# Clean up
shopt -s nullglob
for file in *.t.sol; do
sed '/^running 1 test$/d;/^test provider.*$/d' $file > tmp.file && mv tmp.file solidity-verifier/test/$file
cat $file | sed '1,3d' | sed -n -e :a -e '1,4!{P;N;D;};N;ba' > tmp.file && mv tmp.file solidity-verifier/test/$file
done
shopt -u nullglob
working-directory: ${{ github.workspace }}
- name: Run Forge tests
id: solidity-test
Expand Down
2 changes: 1 addition & 1 deletion src/provider/tests/ipa_pc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import \"src/blocks/grumpkin/Grumpkin.sol\";
import \"src/blocks/EqPolynomial.sol\";
import \"src/Utilities.sol\";
import \"src/blocks/IpaPcs.sol\";
\"@std/Test.sol\";cs.sol\";
contract IpaTest is Test {
function composeIpaInput() public pure returns (InnerProductArgument.IpaInputGrumpkin memory) {
Expand Down Expand Up @@ -50,7 +51,6 @@ uint256 eval = {{ eval }};
return InnerProductArgument.IpaInputGrumpkin(ck_v, ck_s, point, L_vec, R_vec, commitment, eval, a_hat);
}
function testIpaGrumpkinVerification_{{ num_vars }}_Variables() public {
InnerProductArgument.IpaInputGrumpkin memory input = composeIpaInput();
assertTrue(InnerProductArgument.verifyGrumpkin(input, getTranscript()));
}
Expand Down

0 comments on commit c3e433c

Please sign in to comment.