#2648 - reverted temp changes to benchmark durations and branch names for testing purposes

This commit is contained in:
Chris McCarthy
2024-06-26 12:52:29 +01:00
parent 795b5a80fb
commit e7f979b78e
2 changed files with 8 additions and 9 deletions

View File

@@ -3,14 +3,14 @@ trigger:
exclude: exclude:
- '*' - '*'
include: include:
- 'refs/heads/feature/2648_Automate-the-benchmarking-process' - 'refs/heads/release/*'
schedules: schedules:
- cron: "0 2 * * 1-5" # Run at 2 AM every weekday - cron: "0 2 * * 1-5" # Run at 2 AM every weekday
displayName: "Weekday Schedule" displayName: "Weekday Schedule"
branches: branches:
include: include:
- feature/2648_Automate-the-benchmarking-process - 'refs/heads/dev'
pool: pool:
vmImage: ubuntu-latest vmImage: ubuntu-latest
@@ -25,8 +25,8 @@ steps:
- script: | - script: |
VERSION=$(cat src/primaite/VERSION | tr -d '\n') VERSION=$(cat src/primaite/VERSION | tr -d '\n')
if [[ "$(Build.SourceBranch)" == "refs/heads/feature/2648_Automate-the-benchmarking-process" ]]; then if [[ "$(Build.SourceBranch)" == "refs/heads/dev" ]]; then
DATE=$(date +%Y%m%d%H%M) DATE=$(date +%Y%m%d)
echo "${VERSION}+dev.${DATE}" > src/primaite/VERSION echo "${VERSION}+dev.${DATE}" > src/primaite/VERSION
fi fi
displayName: 'Update VERSION file for Dev Benchmark' displayName: 'Update VERSION file for Dev Benchmark'
@@ -60,7 +60,7 @@ steps:
git config --global user.name "Defence Science and Technology Laboratory UK" git config --global user.name "Defence Science and Technology Laboratory UK"
workingDirectory: $(System.DefaultWorkingDirectory) workingDirectory: $(System.DefaultWorkingDirectory)
displayName: 'Configure Git' displayName: 'Configure Git'
condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'), startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/2648_Automate-the-benchmarking-process')) condition: and(succeeded(), eq(variables['Build.Reason'], 'Manual'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'))
- script: | - script: |
git add benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)/* git add benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)/*
@@ -70,10 +70,9 @@ steps:
workingDirectory: $(System.DefaultWorkingDirectory) workingDirectory: $(System.DefaultWorkingDirectory)
env: env:
GIT_CREDENTIALS: $(System.AccessToken) GIT_CREDENTIALS: $(System.AccessToken)
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/2648_Automate-the-benchmarking-process')) condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'))
- script: | - script: |
ls benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)
tar czf primaite_v$(VERSION)_benchmark.tar.gz benchmark/results/v$(MAJOR_VERSION)/v$(VERSION) tar czf primaite_v$(VERSION)_benchmark.tar.gz benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)
displayName: 'Prepare Artifacts for Publishing' displayName: 'Prepare Artifacts for Publishing'

View File

@@ -151,8 +151,8 @@ def _prepare_session_directory():
def run( def run(
number_of_sessions: int = 1, number_of_sessions: int = 5,
num_episodes: int = 25, num_episodes: int = 1000,
episode_len: int = 128, episode_len: int = 128,
n_steps: int = 1280, n_steps: int = 1280,
batch_size: int = 32, batch_size: int = 32,