Skip to content

Commit 8f81f37

Browse files
authored
fix: polishing tmp fs and s3 fs (#444)
* feat: make request buffer size configurable via cli flags * fix: allow more file APIs * fix(sb_fs): polishing tmp fs and s3 fs * stamp: clippy * chore: add and update dependencies * chore(sb_fs): add `.gitignore` and `.env.template` * fix(sb_core): allow `Deno.readDir` * stamp(base): polishing macros and test helpers * stamp: polishing * chore(sb_fs): add integration tests * chore: update `Cargo.lock` * chore: update an integration test * stamp(sb_fs): polishing * chore(sb_fs): update integration tests * chore(ci): expose user worker messages while integration testing * stamp: typo * fix(base): add arch gate the integration tests to be only tested on x64 * stamp: typo * chore(ci): apply env variables for s3 fs integration tests * stamp: typo * stamp(sb_fs): polishing * chore(sb_fs): add dependencies * stamp: add proxy connector * stamp: polishing * chore(ci): update workflow * stamp(sb_fs): make integration tests run conditionally * chore: update `Cargo.lock` * stamp: typo * stamp: update ci * stamp: retry * stamp: retry * stamp: fix segmentation fault that was caused while referring the mmap buf * Revert "stamp: retry" This reverts commit d4a8d47. * chore: add a dependency * stamp: niche optimization * chore: update `Cargo.lock`
1 parent e522925 commit 8f81f37

File tree

32 files changed

+1992
-345
lines changed

32 files changed

+1992
-345
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
CARGO_TERM_COLOR: always
1414
RUSTUP_MAX_RETRIES: 10
1515
ORT_DYLIB_PATH: /tmp/onnxruntime/lib/libonnxruntime.so
16+
RUST_LOG: event_worker=trace
1617

1718
jobs:
1819
cargo-fmt:
@@ -50,9 +51,31 @@ jobs:
5051
- uses: actions/checkout@v4
5152
- run: rustup show
5253
- uses: Swatinem/rust-cache@v2
54+
5355
- uses: cardinalby/export-env-action@v2
5456
with:
5557
envFile: ".env"
58+
5659
- name: Install ONNX Runtime Library
5760
run: ./scripts/install_onnx.sh ${{ env.ONNXRUNTIME_VERSION }} x64 /tmp/onnxruntime
58-
- run: ./scripts/test.sh
61+
62+
- name: Install S3 credentials for testing
63+
run: |
64+
cd crates/sb_fs/tests
65+
echo "S3FS_TEST_SUPABASE_STORAGE=true" >> .env
66+
echo "S3FS_TEST_APP_NAME=edge_runtime_github_ci" >> .env
67+
echo "S3FS_TEST_BUCKET_NAME=$BUCKET_NAME" >> .env
68+
echo "S3FS_TEST_ENDPOINT_URL=$ENDPOINT_URL" >> .env
69+
echo "S3FS_TEST_REGION=$REGION" >> .env
70+
echo "S3FS_TEST_ACCESS_KEY_ID=$ACCESS_KEY_ID" >> .env
71+
echo "S3FS_TEST_SECRET_ACCESS_KEY=$SECRET_ACCESS_KEY" >> .env
72+
shell: bash
73+
env:
74+
BUCKET_NAME: ${{ secrets.SUPABASE_S3_BUCKET_NAME }}
75+
ENDPOINT_URL: ${{ secrets.SUPABASE_S3_ENTRYPOINT }}
76+
REGION: ${{ secrets.SUPABASE_S3_REGION }}
77+
ACCESS_KEY_ID: ${{ secrets.SUPABASE_S3_ACCESS_KEY }}
78+
SECRET_ACCESS_KEY: ${{ secrets.SUPABASE_S3_SECRET }}
79+
80+
- run: ./scripts/test.sh --features base/tracing
81+

0 commit comments

Comments
 (0)