-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
61 additions
and
47 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
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,11 +1 @@ | ||
# stwo-cairo-air | ||
|
||
This repo is using Git LFS | ||
``` | ||
https://packagecloud.io/github/git-lfs/install | ||
sudo apt-get update | ||
sudo apt-get install git-lfs | ||
git lfs install | ||
git lfs fetch --all | ||
git lfs pull | ||
``` |
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,2 @@ | ||
/target | ||
/crates/prover/test_data |
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
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,31 @@ | ||
# Slow Tests Using Google Cloud Storage | ||
|
||
[Google Cloud Storage Browser](https://console.cloud.google.com/storage/browser/stwo-cairo-testing-artifacts?project=starkware-thirdparties) | ||
|
||
## How to Test | ||
|
||
1. **Download Tests Files** | ||
```bash | ||
./scripts/fetch_large_files.sh | ||
``` | ||
|
||
2. **Execute Tests** | ||
```bash | ||
cargo test test_read_from_large_files --features "slow-tests" | ||
cargo test test_read_from_small_file --features "slow-tests" | ||
``` | ||
|
||
## Adding a New "Slow-Test" | ||
|
||
1. **Create a Directory** | ||
Create a new directory at the Google Cloud Storage URL above and add the required files. | ||
|
||
2. **Mark the Test** | ||
Mark the new test with `#[cfg(feature = "slow-tests")]`. | ||
|
||
3. **Run Tests Locally** | ||
Run the test locally using: | ||
```bash | ||
cargo test "<test_name>" --features "slow-tests" | ||
|
||
|
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
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/large_cairo_input/fact.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/large_cairo_input/mem
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/large_cairo_input/priv.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/large_cairo_input/pub.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/large_cairo_input/trace
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/small_cairo_input/mem
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/small_cairo_input/priv.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/small_cairo_input/pub.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
stwo_cairo_prover/crates/prover/test_data/small_cairo_input/trace
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
#!/bin/bash | ||
|
||
BUCKET_URL="https://storage.googleapis.com/stwo-cairo-testing-artifacts" | ||
DEST_DIR="crates/prover/test_data" | ||
|
||
# Create the destination directory | ||
mkdir -p "${DEST_DIR}" | ||
|
||
curl -s "${BUCKET_URL}" | grep -oP '(?<=<Key>).*?(?=</Key>)' | while read -r FILE; do | ||
echo "Downloading ${FILE}..." | ||
|
||
# Create the necessary directories | ||
mkdir -p "${DEST_DIR}/$(dirname "${FILE}")" | ||
|
||
# Download the file | ||
curl -Lo "${DEST_DIR}/${FILE}" "${BUCKET_URL}/${FILE}" || { | ||
echo "Failed to download ${FILE}" >&2 | ||
} | ||
done |