-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1 changes] chore: remove malformed functions from brillig reports (n…
…oir-lang/noir#6898) chore: clean up gates reports script (noir-lang/noir#6896) chore: move empty programs to `compile_success_empty` (noir-lang/noir#6891) feat: add a warning when using unsafe blocks without safety comments (noir-lang/noir#6860) chore: quick docs fix for #6839 (noir-lang/noir#6840) chore: Avoid duplicate Not instructions during flattening (noir-lang/noir#6886) chore: Use smallvec for instruction results (noir-lang/noir#6877) chore(ci): Display times in compilation and execution reports only with seconds (noir-lang/noir#6880) feat: flatten nested if-else statements with equivalent conditions (noir-lang/noir#6875) chore(ci): Take averages for compilation and execution report of small programs (noir-lang/noir#6874) fix: don't deduplicate binary math of unsigned types (noir-lang/noir#6848) feat: warn on unnecessary unsafe blocks (noir-lang/noir#6867) chore: remove the `as_field` and `from_field` built-ins (noir-lang/noir#6845) chore: fix warnings (noir-lang/noir#6863) fix: detect cycles in globals (noir-lang/noir#6859) chore(ci): Execution time report (noir-lang/noir#6827) chore(ci): Add non determinism check and fixes (noir-lang/noir#6847) chore(docs): updating the solidity contract how-to guide (noir-lang/noir#6804) fix: double alias in path (noir-lang/noir#6855) feat: configurable external check failures (noir-lang/noir#6810) chore: move constant creation out of loop (noir-lang/noir#6836) fix: implement `as_field` and `from_field` in the interpreter (noir-lang/noir#6829) chore: Use Vec for callstacks (noir-lang/noir#6821) feat: replace `eval_global_as_array_length` with type/interpreter evaluation (noir-lang/noir#6469) chore: refactor `DataFlowGraph.insert_instruction_and_results` (noir-lang/noir#6823) chore(docs): updating noirjs tutorial for 1.0.0 (noir-lang/noir#6792) feat: Sync from aztec-packages (noir-lang/noir#6824) chore: Have rust-analyzer use the stable toolchain (noir-lang/noir#6825)
- Loading branch information
Showing
224 changed files
with
1,944 additions
and
1,244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
f337992de96ef656681ebfc96a30c2c9c9b82a70 | ||
913be5b013323449963d31ab00f521f572cfcd67 |
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
20 changes: 20 additions & 0 deletions
20
noir/noir-repo/.github/critical_libraries_status/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Critical Libraries Status | ||
|
||
This directory contains one `.failures.jsonl` file per external directory that is checked by CI. | ||
CI will run the external repository tests and compare the test failures against those recorded | ||
in these files. If there's a difference, CI will fail. | ||
|
||
This allows us to mark some tests as expected to fail if we introduce breaking changes. | ||
When tests are fixed on the external repository, CI will let us know that we need to remove | ||
the `.failures.jsonl` failures on our side. | ||
|
||
The format of the `.failures.jsonl` files is one JSON per line with a failure: | ||
|
||
```json | ||
{"suite":"one","name":"foo"} | ||
``` | ||
|
||
If it's expected that an external repository doesn't compile (because a PR introduces breaking changes | ||
to, say, the type system) you can remove the `.failures.jsonl` file for that repository and CI | ||
will pass again. Once the repository compiles again, CI will let us know and require us to put | ||
back the `.failures.jsonl` file. |
4 changes: 4 additions & 0 deletions
4
noir/noir-repo/.github/critical_libraries_status/noir-lang/ec/.actual.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{"event":"started","name":"one","test_count":1,"type":"suite"} | ||
{"event":"started","name":"foo","suite":"one","type":"test"} | ||
{"event":"failed","exec_time":0.05356625,"name":"foo","suite":"one","type":"test"} | ||
{"event":"ok","failed":0,"ignored":0,"passed":1,"type":"suite"} |
1 change: 1 addition & 0 deletions
1
noir/noir-repo/.github/critical_libraries_status/noir-lang/ec/.actual.jsonl.jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"suite":"one","name":"foo"} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
# Usage: ./check_test_results.sh <expected.json> <actual.jsonl> | ||
# Compares the output of two test results of the same repository. | ||
# If any of the files doesn't exist or is empty, the script will consider that the test suite | ||
# couldn't be compiled. | ||
|
||
function process_json_lines() { | ||
cat $1 | jq -c 'select(.type == "test" and .event == "failed") | {suite: .suite, name: .name}' | jq -s -c 'sort_by(.suite, .name) | .[]' > $1.jq | ||
} | ||
|
||
if [ -f $1 ] && [ -f $2 ]; then | ||
# Both files exist, let's compare them | ||
$(process_json_lines $2) | ||
if ! diff $1 $2.jq; then | ||
echo "Error: test failures don't match expected failures" | ||
echo "Lines prefixed with '>' are new test failures (you could add them to '$1')" | ||
echo "Lines prefixed with '<' are tests that were expected to fail but passed (you could remove them from '$1')" | ||
fi | ||
elif [ -f $1 ]; then | ||
# Only the expected file exists, which means the actual test couldn't be compiled. | ||
echo "Error: external library tests couldn't be compiled." | ||
echo "You could rename '$1' to '$1.does_not_compile' if it's expected that the external library can't be compiled." | ||
exit -1 | ||
elif [ -f $2 ]; then | ||
# Only the actual file exists, which means we are expecting the external library | ||
# not to compile but it did. | ||
echo "Error: expected external library not to compile, but it did." | ||
echo "You could create '$1' with these contents:" | ||
$(process_json_lines $2) | ||
cat $2.jq | ||
exit -1 | ||
else | ||
# Both files don't exists, which means we are expecting the external library not | ||
# to compile, and it didn't, so all is good. | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.