Merged PR 470: Updated azure-benchmark-pipeline.yaml to use 'Imaginary Yak Pool'

## Summary
Updated azure-benchmark-pipeline.yaml to use 'Imaginary Yak Pool'

## Test process
Manually tested that it runs end-to-end

## Checklist
- [ ] PR is linked to a **work item**
- [ ] **acceptance criteria** of linked ticket are met
- [ ] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] updated the **change log**
- [ ] ran **pre-commit** checks for code style
- [ ] attended to any **TO-DOs** left in the code

Related work items: #2758
This commit is contained in:
Christopher McCarthy
2024-07-17 19:17:15 +00:00

View File

@@ -19,13 +19,18 @@ jobs:
- job: PrimAITE_Benchmark - job: PrimAITE_Benchmark
timeoutInMinutes: 360 # 6-hour maximum timeoutInMinutes: 360 # 6-hour maximum
pool: pool:
vmImage: ubuntu-latest name: 'Imaginary Yak Pool'
workspace: workspace:
clean: all clean: all
steps: steps:
- checkout: self - checkout: self
persistCredentials: true persistCredentials: true
- script: |
python3.10 -m venv venv
displayName: 'Create venv'
- script: | - script: |
VERSION=$(cat src/primaite/VERSION | tr -d '\n') VERSION=$(cat src/primaite/VERSION | tr -d '\n')
if [[ "$(Build.SourceBranch)" == "refs/heads/dev" ]]; then if [[ "$(Build.SourceBranch)" == "refs/heads/dev" ]]; then
@@ -41,21 +46,18 @@ jobs:
echo "##vso[task.setvariable variable=MAJOR_VERSION]$MAJOR_VERSION" echo "##vso[task.setvariable variable=MAJOR_VERSION]$MAJOR_VERSION"
displayName: 'Set Version Variables' displayName: 'Set Version Variables'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
addToPath: true
- script: | - script: |
python -m pip install --upgrade pip source venv/bin/activate
pip install --upgrade pip
pip install -e .[dev,rl] pip install -e .[dev,rl]
primaite setup primaite setup
displayName: 'Install Dependencies' displayName: 'Install Dependencies'
- script: | - script: |
set -e set -e
source venv/bin/activate
cd benchmark cd benchmark
python3 primaite_benchmark.py python primaite_benchmark.py
cd .. cd ..
displayName: 'Run Benchmarking Script' displayName: 'Run Benchmarking Script'