mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-05 03:56:26 +03:00
run perf tests separately (#605)
This commit is contained in:
parent
7f8dbfeca0
commit
a150048697
@ -43,8 +43,32 @@ jobs:
|
||||
steps:
|
||||
- template: ci/build-windows.yml
|
||||
|
||||
- job: perf
|
||||
timeoutInMinutes: 30
|
||||
pool:
|
||||
name: 'linux-pool'
|
||||
steps:
|
||||
- checkout: self
|
||||
- bash: ci/dev-env-install.sh
|
||||
displayName: 'Build/Install the Developer Environment'
|
||||
- bash: ci/configure-bazel.sh
|
||||
displayName: 'Configure Bazel'
|
||||
env:
|
||||
IS_FORK: $(System.PullRequest.IsFork)
|
||||
# to upload to the bazel cache
|
||||
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
||||
- bash: |
|
||||
set -euo pipefail
|
||||
eval "$(./dev-env/bin/dade-assist)"
|
||||
bazel run -- //ledger/sandbox-perf -foe true -i1 -f1 -wi 1 -bm avgt -rf csv -rff "$(Build.StagingDirectory)/sandbox-perf.csv"
|
||||
- task: PublishBuildArtifacts@1
|
||||
condition: succeededOrFailed()
|
||||
inputs:
|
||||
pathtoPublish: '$(Build.StagingDirectory)'
|
||||
artifactName: 'Perf test logs'
|
||||
|
||||
- job: release
|
||||
dependsOn: [ "Linux", "macOS", "Windows"]
|
||||
dependsOn: [ "linux", "macos", "windows", "perf"]
|
||||
pool:
|
||||
vmImage: "Ubuntu-16.04"
|
||||
condition: and(succeeded(),
|
||||
|
9
build.sh
9
build.sh
@ -27,14 +27,5 @@ ARTIFACT_DIRS="${BUILD_ARTIFACTSTAGINGDIRECTORY:-$PWD}"
|
||||
bazel test -j 200 //... --experimental_execution_log_file "$ARTIFACT_DIRS/test_execution${execution_log_postfix}.log"
|
||||
# Make sure that Bazel query works.
|
||||
bazel query 'deps(//...)' > /dev/null
|
||||
# Execute Sandbox performance tests if on master
|
||||
# On Jenkins we never run them as BUILD_SOURCEBRANCHNAME isn’t set.
|
||||
# moreover, pass -foe true to make the benchmark fail with a proper
|
||||
# exit code if things go wrong, rather than pretend that everything is
|
||||
# fine.
|
||||
if [[ "${BUILD_SOURCEBRANCHNAME:-master}" = master ]]; then
|
||||
bazel run -- //ledger/sandbox-perf -foe true -i1 -f1 -wi 1 -bm avgt -rf csv -rff "$ARTIFACT_DIRS/sandbox-perf.csv" # 1 warmup, 1 iterations in 1 fork
|
||||
fi
|
||||
|
||||
# Check that we can load damlc in ghci
|
||||
da-ghci damlc -e '()'
|
||||
|
Loading…
Reference in New Issue
Block a user