Skip to content

Commit 845516f

Browse files
authored
Fix the framework order for each continuous benchmarking run (#10109)
The environment variable values used by system services are not persistent, so any changes to them are lost after services finish execution. As a result, the framework order was not toggled properly after each continuous benchmarking run completed. Instead, use a regular file to keep track of the order. Signed-off-by: Anton Kirilov <[email protected]>
1 parent c890b86 commit 845516f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

toolset/continuous/tfb-startup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ git clone \
2020
echo "moving to tfb directory"
2121
cd $TFB_REPOPARENT/$TFB_REPONAME
2222

23-
if [ -z "$TFB_RUN_ORDER" ]; then
23+
if [ -e "${TFB_REPOPARENT}/tfb-reverse-order" ]; then
2424
export TFB_RUN_ORDER="reverse"
25+
sudo rm -rf "${TFB_REPOPARENT}/tfb-reverse-order"
2526
else
2627
unset TFB_RUN_ORDER
28+
touch "${TFB_REPOPARENT}/tfb-reverse-order"
2729
fi
2830

2931
echo "building tfb docker image"

0 commit comments

Comments
 (0)