Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhansa-msft committed Jun 27, 2024
1 parent 1686b77 commit eb76cd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
9 changes: 0 additions & 9 deletions .github/template/generate_page/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ inputs:
TOKEN:
required: true
description: "Token for checkin"
ACCOUNT:
required: true
description: "Storage account name"
AUTH_KEY:
required: true
description: "Storage account key"

runs:
using: "composite"
Expand All @@ -34,9 +28,6 @@ runs:
shell: bash
run: |
./perf_testing/scripts/fio_bench.sh /mnt/blob_mnt ${{ inputs.TEST }}
env:
AZURE_STORAGE_ACCOUNT: ${{ inputs.ACCOUNT }}
AZURE_STORAGE_ACCESS_KEY: ${{ inputs.AUTH_KEY }}
# Push the bandwidth results and publish the graphs
- name: "Update Bandwidth Results : ${{ inputs.TEST }}"
Expand Down
27 changes: 5 additions & 22 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ jobs:
run: |
if [ "${{ matrix.TestType }}" == "standard" ]; then
echo "Create standard accoutn env"
echo "STG_ACCOUNT=${{ secrets.STANDARD_ACCOUNT }}" >> $GITHUB_ENV
echo "STG_KEY=${{ secrets.STANDARD_KEY }}" >> $GITHUB_ENV
echo "AZURE_STORAGE_ACCOUNT=${{ secrets.STANDARD_ACCOUNT }}" >> $GITHUB_ENV
echo "AZURE_STORAGE_ACCESS_KEY=${{ secrets.STANDARD_KEY }}" >> $GITHUB_ENV
else
echo "Create premium accoutn env"
echo "STG_ACCOUNT=${{ secrets.PREMIUM_ACCOUNT }}" >> $GITHUB_ENV
echo "STG_KEY=${{ secrets.PREMIUM_KEY }}" >> $GITHUB_ENV
echo "AZURE_STORAGE_ACCOUNT=${{ secrets.PREMIUM_ACCOUNT }}" >> $GITHUB_ENV
echo "AZURE_STORAGE_ACCESS_KEY=${{ secrets.PREMIUM_KEY }}" >> $GITHUB_ENV
fi
# Create the config file for testing
- name: "Create config file for account type: ${{ matrix.TestType }}"
run: |
echo "Storage account is: " $STG_ACCOUNT
echo "Storage account is: " $AZURE_STORAGE_ACCOUNT
blobfuse2 gen-test-config --config-file=azure_block_bench.yaml --container-name=${{ secrets.BENCH_CONTAINER }} --output-file=./config.yaml
cat ./config.yaml
Expand All @@ -106,8 +106,6 @@ jobs:
TEST: "read"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AUTH_KEY: ${{ steps.expose.outputs.STG_KEY }}

# Run the Write tests with high number of threads
- name: "High threads Test"
Expand All @@ -116,8 +114,6 @@ jobs:
TEST: "highlyparallel"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AUTH_KEY: ${{ steps.expose.outputs.STG_KEY }}

# Run the Write tests
- name: "Write Test"
Expand All @@ -126,8 +122,6 @@ jobs:
TEST: "write"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AUTH_KEY: ${{ steps.expose.outputs.STG_KEY }}

# Run the Create tests
- name: "Create File Test"
Expand All @@ -136,8 +130,6 @@ jobs:
TEST: "create"
TYPE: ${{ matrix.TestType }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AUTH_KEY: ${{ steps.expose.outputs.STG_KEY }}
# ---------------------------------------------------------------------------------------


Expand All @@ -151,9 +143,6 @@ jobs:
rm -rf /mnt/blob_mnt/*
rm -rf /mnt/tempcache/*
./perf_testing/scripts/fio_bench.sh /mnt/blob_mnt list
env:
AZURE_STORAGE_ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AZURE_STORAGE_ACCESS_KEY: ${{ steps.expose.outputs.STG_KEY }}
- name: "Update Benchmark Results : List"
uses: benchmark-action/github-action-benchmark@v1
Expand All @@ -178,9 +167,6 @@ jobs:
rm -rf /mnt/blob_mnt/*
rm -rf /mnt/tempcache/*
./perf_testing/scripts/fio_bench.sh /mnt/blob_mnt app
env:
AZURE_STORAGE_ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AZURE_STORAGE_ACCESS_KEY: ${{ steps.expose.outputs.STG_KEY }}
- name: "Update Bandwidth Results : App"
Expand Down Expand Up @@ -248,9 +234,6 @@ jobs:
rm -rf /mnt/blob_mnt/*
rm -rf /mnt/tempcache/*
./perf_testing/scripts/fio_bench.sh /mnt/blob_mnt rename
env:
AZURE_STORAGE_ACCOUNT: ${{ steps.expose.outputs.STG_ACCOUNT }}
AZURE_STORAGE_ACCESS_KEY: ${{ steps.expose.outputs.STG_KEY }}
- name: "Update Latency Results : Rename"
uses: benchmark-action/github-action-benchmark@v1
Expand Down
2 changes: 2 additions & 0 deletions testdata/config/azure_block_bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ attr_cache:
azstorage:
mode: key
container: { 0 }
account-name: { AZURE_STORAGE_ACCOUNT }
account-key: { AZURE_STORAGE_ACCESS_KEY }

0 comments on commit eb76cd1

Please sign in to comment.