Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PERF-319] Run Volume Test on github Action #97

Merged
merged 7 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/Volume_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.

name: Run Volome Test
JBrenesSimpat marked this conversation as resolved.
Show resolved Hide resolved
on:
workflow_dispatch:

env:
AzureTestVmUsername: ${{ secrets.AZURE_TEST_VM_USER_NAME }}
AzureTestVmPassword: ${{ secrets.AZURE_TEST_VM_PASSWORD }}

jobs:
volume-test:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

JBrenesSimpat marked this conversation as resolved.
Show resolved Hide resolved
- name: Execute Test Runner
if: ${{ env.AzureTestVmUsername != '' && env.AzureTestVmPassword != '' }}
shell: powershell
working-directory: ./eng/
run: |

JBrenesSimpat marked this conversation as resolved.
Show resolved Hide resolved
. $env:GITHUB_WORKSPACE/eng/AzureTestLab.ps1
Invoke-TestRunnerFromTeamCity volume

- name: Upload Package
if: success()
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: TestResults
path: ${{ github.workspace }}/eng/artifacts/
10 changes: 9 additions & 1 deletion src/perf-test-analysis/edfi_perf_test_analysis/ui_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,15 @@ def get_result_directory() -> Tuple[str, str]:
index = -2
# find compare_dir with same type of test results as in the result_dir
while not os.path.exists(os.path.join(time_sorted_list[index], result_file)):
# IndexError: list index out of range
if abs(index - 1) > len(time_sorted_list):
break
index = index - 1
compare_dir = time_sorted_list[index]

# when it is the first execution of the test there is nothing to compare against
if not os.path.exists(os.path.join(time_sorted_list[index], result_file)):
compare_dir = result_dir
else:
compare_dir = time_sorted_list[index]

return (result_dir, compare_dir)
Loading