diff --git a/.github/workflows/icu_merge_ci.yml b/.github/workflows/icu_merge_ci.yml index 718eaa54146..19aa7a35b05 100644 --- a/.github/workflows/icu_merge_ci.yml +++ b/.github/workflows/icu_merge_ci.yml @@ -363,6 +363,10 @@ jobs: ant perf-tests; cd perf-tests; mkdir -p perf/results/j_decimalformatperf/${{ matrix.locale }}/${{ matrix.perf }}; + # Delay execution by random number of seconds. Spreading execution of multiple + # tests over 180 secs. minimizes the possibility of push conflicts when storing + # tests results in the data branch. + sleep $(($RANDOM % 180)); java -cp ./out/bin:../tools/misc/out/bin/:../icu4j.jar com.ibm.icu.dev.test.perf.DecimalFormatPerformanceTest ${{ matrix.perf }} -a -t 2 -p 4 -L ${{ matrix.locale }} "#,###.##" "1.234,56" -r 1 | tee perf/results/j_decimalformatperf/${{ matrix.locale }}/${{ matrix.perf }}/output.txt - name: Store performance test results @@ -415,6 +419,10 @@ jobs: ant perf-tests; cd perf-tests; mkdir -p perf/results/j_normperf/${{ matrix.source_text }}/${{ matrix.perf }}; + # Delay execution by random number of seconds. Spreading execution of multiple + # tests over 180 secs. minimizes the possibility of push conflicts when storing + # tests results in the data branch. + sleep $(($RANDOM % 180)); java -cp ./out/bin:../tools/misc/out/bin/:../icu4j.jar com.ibm.icu.dev.test.perf.NormalizerPerformanceTest ${{ matrix.perf }} -a -t 2 -p 4 -f $DATA_FILE_PATH/${{ matrix.source_text }}.txt -e UTF-8 ${{ matrix.mode }} | tee perf/results/j_normperf/${{ matrix.source_text }}/${{ matrix.perf }}/output.txt cat perf/results/j_normperf/${{ matrix.source_text }}/${{ matrix.perf }}/output.txt @@ -535,6 +543,10 @@ jobs: ant perf-tests; cd perf-tests; mkdir -p perf/results/j_converterperf/${{ matrix.source_text }}/${{ matrix.test_enc }}/${{ matrix.perf }}; + # Delay execution by random number of seconds. Spreading execution of multiple + # tests over 180 secs. minimizes the possibility of push conflicts when storing + # tests results in the data branch. + sleep $(($RANDOM % 180)); java -cp ./out/bin:../tools/misc/out/bin/:../icu4j.jar:../icu4j-charset.jar com.ibm.icu.dev.test.perf.ConverterPerformanceTest ${{ matrix.perf }} -a -t 2 -p 4 -f $DATA_FILE_PATH/${{ matrix.source_text }}.txt -e UTF-8 -T ${{ matrix.test_enc }} | tee perf/results/j_converterperf/${{ matrix.source_text }}/${{ matrix.test_enc }}/${{ matrix.perf }}/output.txt - name: Store performance test results @@ -602,6 +614,10 @@ jobs: ant perf-tests; cd perf-tests; mkdir -p perf/results/j_dateformatperf/${{ matrix.locale }}/${{ matrix.perf }}/${{ env.DDIR }}; + # Delay execution by random number of seconds. Spreading execution of multiple + # tests over 180 secs. minimizes the possibility of push conflicts when storing + # tests results in the data branch. + sleep $(($RANDOM % 180)); java -cp ./out/bin:../tools/misc/out/bin/:../icu4j.jar com.ibm.icu.dev.test.perf.DateFormatPerformanceTest ${{ matrix.perf }} -a -t 2 -p 4 -L ${{ matrix.locale }} ${{ env.PARM }} -r 1 | tee perf/results/j_dateformatperf/${{ matrix.locale }}/${{ matrix.perf }}/${{ env.DDIR }}/output.txt - name: Store performance test results