70 строки
1.7 KiB
YAML
Executable File
70 строки
1.7 KiB
YAML
Executable File
parameters:
|
|
- name: working_dir
|
|
type: string
|
|
- name: mount_dir
|
|
type: string
|
|
- name: temp_dir
|
|
type: string
|
|
- name: stress_dir
|
|
type: string
|
|
- name: idstring
|
|
type: string
|
|
default: ''
|
|
- name: parallel
|
|
type: number
|
|
default: 1
|
|
- name: mountStep
|
|
type: step
|
|
- name: quick
|
|
type: boolean
|
|
default: 'true'
|
|
- name: distro_name
|
|
type: string
|
|
|
|
steps:
|
|
# Mount the container
|
|
- template: 'mount.yml'
|
|
parameters:
|
|
working_dir: ${{ parameters.working_dir }}
|
|
mount_dir: ${{ parameters.mount_dir }}
|
|
temp_dir: ${{ parameters.temp_dir }}
|
|
prefix: ${{ parameters.idstring }}
|
|
mountStep: ${{ parameters.mountStep }}
|
|
|
|
# Run the stress test script
|
|
- task: Go@0
|
|
inputs:
|
|
command: 'test'
|
|
arguments: '-timeout 120m -v test/stress_test/stress_test.go -args -mnt-path=${{ parameters.mount_dir }} -quick=${{parameters.quick}}'
|
|
workingDirectory: ${{ parameters.working_dir }}
|
|
displayName: 'StressTest: ${{ parameters.idstring }}'
|
|
timeoutInMinutes: 120
|
|
continueOnError: true
|
|
env:
|
|
mount_dir: ${{ parameters.mount_dir }}
|
|
|
|
# Delete all files test
|
|
- script: rm -rf ${mount_dir}/*
|
|
timeoutInMinutes: 120
|
|
displayName: 'StressTest: ${{ parameters.idstring }} Cleanup'
|
|
continueOnError: true
|
|
env:
|
|
mount_dir: ${{ parameters.mount_dir }}
|
|
|
|
- script: |
|
|
cat blobfuse2-logs.txt
|
|
displayName: 'View Logs'
|
|
|
|
- script: |
|
|
> blobfuse2-logs.txt
|
|
displayName: 'Clear Logs'
|
|
|
|
# Cleanup
|
|
- template: 'cleanup.yml'
|
|
parameters:
|
|
working_dir: ${{ parameters.working_dir }}
|
|
mount_dir: ${{ parameters.mount_dir }}
|
|
temp_dir: ${{ parameters.temp_dir }}
|
|
|
|
|