mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-10-31 02:48:11 +00:00 
			
		
		
		
	remove report upload to gh pages in performance
Signed-off-by: Max Brenner <xamrennerb@gmail.com>
This commit is contained in:
		
							
								
								
									
										88
									
								
								.github/workflows/performance.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										88
									
								
								.github/workflows/performance.yml
									
									
									
									
										vendored
									
									
								
							| @@ -10,7 +10,6 @@ env: | |||||||
|   # Cloud SDK certs |   # Cloud SDK certs | ||||||
|   CACERT: ${{ secrets.CACERT }} |   CACERT: ${{ secrets.CACERT }} | ||||||
|   CAKEY: ${{ secrets.CAKEY }} |   CAKEY: ${{ secrets.CAKEY }} | ||||||
|   ALLURE_CLI_VERSION: 2.14.0 |  | ||||||
|  |  | ||||||
| on: | on: | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
| @@ -66,11 +65,6 @@ jobs: | |||||||
|     - name: get EKS access credentials |     - name: get EKS access credentials | ||||||
|       run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} |       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 |     - name: set job name | ||||||
|       id: job |       id: job | ||||||
|       run: echo "::set-output name=name::perf-${{ github.run_id }}" |       run: echo "::set-output name=name::perf-${{ github.run_id }}" | ||||||
| @@ -189,10 +183,9 @@ jobs: | |||||||
|     needs: [ test ] |     needs: [ test ] | ||||||
|     if: always() |     if: always() | ||||||
|     steps: |     steps: | ||||||
|     - name: install Allure CLI tool |     - name: checkout testing repo | ||||||
|       run: | |       uses: actions/checkout@v2 | ||||||
|         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 |  | ||||||
|     - uses: actions/download-artifact@v2 |     - uses: actions/download-artifact@v2 | ||||||
|       with: |       with: | ||||||
|         name: allure-results-dataplane_throughput_test |         name: allure-results-dataplane_throughput_test | ||||||
| @@ -208,37 +201,26 @@ jobs: | |||||||
|         name: allure-results-wifi_capacity_test |         name: allure-results-wifi_capacity_test | ||||||
|         path: allure-results-wifi_capacity_test |         path: allure-results-wifi_capacity_test | ||||||
|  |  | ||||||
|     - name: checkout testing repo |     - name: merge results | ||||||
|       uses: actions/checkout@v2 |       run: | | ||||||
|       with: |         mkdir allure-results | ||||||
|         path: wlan-testing |         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 |     - name: download history of previous run | ||||||
|       uses: actions/checkout@v2 |  | ||||||
|       continue-on-error: true |       continue-on-error: true | ||||||
|       with: |  | ||||||
|         ref: gh-pages |  | ||||||
|         path: reports |  | ||||||
|  |  | ||||||
|     - name: copy history into results |  | ||||||
|       run: | |       run: | | ||||||
|         if [ -e "reports/performance/${{ needs.test.outputs.testbed }}/latest" ] ; then |         LAST_RUN_ID=$(aws s3api head-object --bucket openwifi-allure-reports --key performance/${{ needs.test.outputs.testbed }}/latest/index.html | jq -r .Metadata.latest) | ||||||
|           cp -r reports/performance/${{ needs.test.outputs.testbed }}/latest/history/ allure-results-dataplane_throughput_test/history |         aws s3 cp --recursive s3://openwifi-allure-reports/performance/${{ needs.test.outputs.testbed }}/$LAST_RUN_ID/history 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 |  | ||||||
|  |  | ||||||
|         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 |     - 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 |     - name: upload Allure report as artifact | ||||||
|       uses: actions/upload-artifact@v2 |       uses: actions/upload-artifact@v2 | ||||||
| @@ -248,41 +230,11 @@ jobs: | |||||||
|  |  | ||||||
|     # doing this to be able to aggregate multiple reports together later on |     # doing this to be able to aggregate multiple reports together later on | ||||||
|     - name: copy results into report |     - name: copy results into report | ||||||
|       run: | |       run: cp -r allure-results allure-report/results | ||||||
|         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 |  | ||||||
|  |  | ||||||
|     - name: upload to S3 |     - name: upload to S3 | ||||||
|       if: github.ref == 'refs/heads/master' |       if: github.ref == 'refs/heads/master' | ||||||
|       uses: ./wlan-testing/.github/actions/allure-report-to-s3 |       uses: ./.github/actions/allure-report-to-s3 | ||||||
|       with: |       with: | ||||||
|         test_type: performance |         test_type: performance | ||||||
|         testbed: ${{ needs.test.outputs.testbed }} |         testbed: ${{ needs.test.outputs.testbed }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Brenner
					Max Brenner