remove report upload to gh pages in performance

Signed-off-by: Max Brenner <xamrennerb@gmail.com>
This commit is contained in:
Max Brenner
2021-12-16 15:55:06 +01:00
parent e67e83a848
commit ad9776e0cc

View File

@@ -10,7 +10,6 @@ env:
# Cloud SDK certs
CACERT: ${{ secrets.CACERT }}
CAKEY: ${{ secrets.CAKEY }}
ALLURE_CLI_VERSION: 2.14.0
on:
workflow_dispatch:
@@ -66,11 +65,6 @@ jobs:
- name: get EKS access credentials
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
- name: install Allure CLI tool
run: |
wget https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/${{ env.ALLURE_CLI_VERSION }}/allure-commandline-${{ env.ALLURE_CLI_VERSION }}.tgz
tar -xzf allure-commandline-${{ env.ALLURE_CLI_VERSION }}.tgz
- name: set job name
id: job
run: echo "::set-output name=name::perf-${{ github.run_id }}"
@@ -189,10 +183,9 @@ jobs:
needs: [ test ]
if: always()
steps:
- name: install Allure CLI tool
run: |
wget https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/${{ env.ALLURE_CLI_VERSION }}/allure-commandline-${{ env.ALLURE_CLI_VERSION }}.tgz
tar -xzf allure-commandline-${{ env.ALLURE_CLI_VERSION }}.tgz
- name: checkout testing repo
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: allure-results-dataplane_throughput_test
@@ -208,37 +201,26 @@ jobs:
name: allure-results-wifi_capacity_test
path: allure-results-wifi_capacity_test
- name: checkout testing repo
uses: actions/checkout@v2
with:
path: wlan-testing
- name: merge results
run: |
mkdir allure-results
cp -r allure-results-dataplane_throughput_test/* allure-results/
cp -r allure-results-single_station_dual_band_throughput/* allure-results/
cp -r allure-results-wifi_capacity_test/* allure-results/
- name: get reports branch
uses: actions/checkout@v2
- name: download history of previous run
continue-on-error: true
with:
ref: gh-pages
path: reports
- name: copy history into results
run: |
if [ -e "reports/performance/${{ needs.test.outputs.testbed }}/latest" ] ; then
cp -r reports/performance/${{ needs.test.outputs.testbed }}/latest/history/ allure-results-dataplane_throughput_test/history
cp -r reports/performance/${{ needs.test.outputs.testbed }}/latest/history/ allure-results-single_station_dual_band_throughput/history
cp -r reports/performance/${{ needs.test.outputs.testbed }}/latest/history/ allure-results-wifi_capacity_test/history
fi
- name: add report metadata
run: |
cat << EOF >> allure-results-dataplane_throughput_test/environment.properties
LAST_RUN_ID=$(aws s3api head-object --bucket openwifi-allure-reports --key performance/${{ needs.test.outputs.testbed }}/latest/index.html | jq -r .Metadata.latest)
aws s3 cp --recursive s3://openwifi-allure-reports/performance/${{ needs.test.outputs.testbed }}/$LAST_RUN_ID/history history
Testbed=${{ needs.test.outputs.testbed }}
Tests.CommitId=$(cd wlan-testing && git rev-parse --short HEAD)
CiRun.Id=${{ github.run_id }}
CiRun.Number=${{ github.run_number }}
CiRun.Url=https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
EOF
- name: generate Allure report
run: allure-${{ env.ALLURE_CLI_VERSION }}/bin/allure generate allure-results-dataplane_throughput_test allure-results-single_station_dual_band_throughput allure-results-wifi_capacity_test
uses: ./.github/actions/generate-allure-report
with:
results_path: ./allure-results
history_path: ./history
additional_metadata: |
Ap.Model=${{ needs.test.outputs.testbed }}
- name: upload Allure report as artifact
uses: actions/upload-artifact@v2
@@ -248,41 +230,11 @@ jobs:
# doing this to be able to aggregate multiple reports together later on
- name: copy results into report
run: |
mkdir -p allure-report/results
cp -r allure-results-dataplane_throughput_test allure-report/results
cp -r allure-results-single_station_dual_band_throughput allure-report/results
cp -r allure-results-wifi_capacity_test allure-report/results
- name: copy new report
run: |
mkdir -p reports/performance/${{ needs.test.outputs.testbed }}
cp -Tr allure-report reports/performance/${{ needs.test.outputs.testbed }}/${{ github.run_number }}
- name: update latest symlink
working-directory: reports/performance/${{ needs.test.outputs.testbed }}
run: ln -fns ${{ github.run_number }} latest
- name: generate new index.html
run: python wlan-testing/.github/tools/generate_directory_index.py -r reports
- name: commit reports update
working-directory: reports
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated deployment: $(date -u)"
- name: push
if: github.ref == 'refs/heads/master'
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
directory: reports
run: cp -r allure-results allure-report/results
- name: upload to S3
if: github.ref == 'refs/heads/master'
uses: ./wlan-testing/.github/actions/allure-report-to-s3
uses: ./.github/actions/allure-report-to-s3
with:
test_type: performance
testbed: ${{ needs.test.outputs.testbed }}