This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push: new 608085aa88 feat(fuzz): add azblob as test service (#3931) 608085aa88 is described below commit 608085aa887aec37504c4cd4b620df9f393a5057 Author: Suyan <suyanh...@gmail.com> AuthorDate: Sun Jan 7 10:33:26 2024 +0800 feat(fuzz): add azblob as test service (#3931) feat(fuzz): add azure as test service Signed-off-by: suyanhanx <suyanh...@gmail.com> --- .github/workflows/fuzz_test.yml | 41 ++++++++++++++++++++++++++++++ fixtures/azblob/docker-compose-azurite.yml | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fuzz_test.yml b/.github/workflows/fuzz_test.yml index e192f7df12..54ea22f14a 100644 --- a/.github/workflows/fuzz_test.yml +++ b/.github/workflows/fuzz_test.yml @@ -159,3 +159,44 @@ jobs: run: ./target/${{ matrix.fuzz-targets }} -max_total_time=120 env: OPENDAL_MEMORY_TEST: on + + + fuzz-test-azure: + runs-on: ubuntu-latest + needs: fuzz-build + services: + azurite: + image: mcr.microsoft.com/azure-storage/azurite + ports: + - 10000:10000 + strategy: + fail-fast: true + matrix: + fuzz-targets: [fuzz_reader, fuzz_reader_with_buffer, fuzz_writer] + steps: + - name: Install libfuzzer + run: sudo apt-get install -y libfuzzer-14-dev + - name: Setup test bucket + shell: bash + run: | + az storage container create \ + --name test \ + --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" + - name: Download Fuzz Targets + uses: actions/download-artifact@v4 + with: + name: fuzz_targets + path: ./target + - name: Grant Execute Permissions + shell: bash + run: chmod +x ./target/${{ matrix.fuzz-targets }} + - name: Run Fuzz Test + shell: bash + run: ./target/${{ matrix.fuzz-targets }} -max_total_time=120 + env: + OPENDAL_AZBLOB_TEST: on + OPENDAL_AZBLOB_CONTAINER: test + OPENDAL_AZBLOB_ENDPOINT: "http://127.0.0.1:10000/devstoreaccount1" + OPENDAL_AZBLOB_ACCOUNT_NAME: devstoreaccount1 + OPENDAL_AZBLOB_ACCOUNT_KEY: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" + diff --git a/fixtures/azblob/docker-compose-azurite.yml b/fixtures/azblob/docker-compose-azurite.yml index abbbc7e091..0999b0f35a 100644 --- a/fixtures/azblob/docker-compose-azurite.yml +++ b/fixtures/azblob/docker-compose-azurite.yml @@ -18,7 +18,7 @@ version: '3.8' services: - redis: + azurite: image: mcr.microsoft.com/azure-storage/azurite ports: - 10000:10000