#!/bin/bash
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
EXITCODE=0
INSTANCE=$1
git checkout $REVISION
fi
+ECODE=$?
+
+if [[ "$ECODE" != "0" ]]; then
+ title "!!!!!! PERFORMANCE TESTS FAILED (`timer`) !!!!!!"
+ EXITCODE=$(($EXITCODE + $ECODE))
+ exit $EXITCODE
+fi
+
cp -f /home/jenkins/diagnostics/arvados-workbench/$INSTANCE-application.yml $WORKSPACE/apps/workbench/config/application.yml
cd $WORKSPACE/apps/workbench
mkdir tmp
fi
-RAILS_ENV=performance bundle exec rake TEST=test/performance/browsing_test.rb
+mkdir -p tmp/cache
+
+RAILS_ENV=performance bundle exec rake test:benchmark
ECODE=$?
if [[ "$REVISION" != '' ]]; then
- git checkout master
+ git checkout main
fi
if [[ "$ECODE" != "0" ]]; then