Skip to content

Commit 726b44a

Browse files
authored
perf: split speech tests into 2 parallel jobs (#2528)
Split the single speech UnitTests matrix entry into speech1 and speech2, each targeting specific test classes. SpeechToTextSDKSuite runs alone in speech1 (it's the heaviest), while the remaining 4 suites share speech2. Add TEST_CLASSES variable support to the test execution step: when set, the sbt testOnly command uses the specified classes instead of the default package wildcard. This is backwards-compatible — existing matrix entries without TEST_CLASSES use the same PACKAGE.** pattern as before.
1 parent 70392c1 commit 726b44a

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

pipeline.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,14 @@ jobs:
667667
PACKAGE: "services.search.split2"
668668
FFMPEG: "true"
669669
FLAKY: "true"
670-
speech:
670+
speech1:
671671
PACKAGE: "services.speech"
672+
TEST_CLASSES: "com.microsoft.azure.synapse.ml.services.speech.SpeechToTextSDKSuite"
673+
FFMPEG: "true"
674+
FLAKY: "true"
675+
speech2:
676+
PACKAGE: "services.speech"
677+
TEST_CLASSES: "com.microsoft.azure.synapse.ml.services.speech.ConversationTranscriptionSuite com.microsoft.azure.synapse.ml.services.speech.SpeechToTextSuite com.microsoft.azure.synapse.ml.services.speech.TextToSpeechSuite com.microsoft.azure.synapse.ml.services.speech.SpeakerEmotionInferenceSuite"
672678
FFMPEG: "true"
673679
FLAKY: "true"
674680
text:
@@ -764,8 +770,9 @@ jobs:
764770
export SBT_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xss2M -Duser.timezone=GMT"
765771
# Only run coverage on PRs, master, or tag builds
766772
if [ "$(runCoverage)" = "True" ]; then COV_CMD="coverage"; else COV_CMD=""; fi
767-
(timeout 30m sbt $COV_CMD "testOnly com.microsoft.azure.synapse.ml.$(PACKAGE).**") ||
768-
(${FLAKY:-false} && timeout 30m sbt $COV_CMD "testOnly com.microsoft.azure.synapse.ml.$(PACKAGE).**")
773+
TEST_SPEC="${TEST_CLASSES:-com.microsoft.azure.synapse.ml.$(PACKAGE).**}"
774+
(timeout 30m sbt $COV_CMD "testOnly $TEST_SPEC") ||
775+
(${FLAKY:-false} && timeout 30m sbt $COV_CMD "testOnly $TEST_SPEC")
769776
- task: PublishTestResults@2
770777
displayName: 'Publish Test Results'
771778
inputs:

0 commit comments

Comments
 (0)