Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: break up build steps to improve stability #2208

Merged
merged 5 commits into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ jobs:
- template: templates/conda.yml
- template: templates/kv.yml
- task: AzureCLI@2
displayName: 'Test R Code'
displayName: 'Prepare for tests'
retryCountOnTaskFailure: 1
timeoutInMinutes: 60
inputs:
Expand All @@ -469,16 +469,24 @@ jobs:
export SBT_OPTS="-Xms2G -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=4G -Xss5M -Duser.timezone=GMT"
source activate synapseml
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
# tests in opencv and deep-learning source R wrappers from core, so core wrappers must exist
if [[ $(PACKAGE) -eq "opencv" || $(PACKAGE) -eq "deepLearning" ]]; then
(sbt "project core" rCodegen) || (echo "retrying" && sbt "project core" rCodegen) || (echo "retrying" && sbt "project core" rCodegen)
fi
sbt codegen
sbt publishM2

SPARK_VERSION=3.4.1
HADOOP_VERSION=3
wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz
(timeout 20m sbt "project $(PACKAGE)" coverage testR) || (echo "retrying" && timeout 20m sbt "project $(PACKAGE)" coverage testR) || (echo "retrying" && timeout 20m sbt "project $(PACKAGE)" coverage testR)
- task: AzureCLI@2
displayName: 'Test R Code'
retryCountOnTaskFailure: 3
timeoutInMinutes: 20
inputs:
azureSubscription: 'SynapseML Build'
scriptLocation: inlineScript
scriptType: bash
inlineScript: |
set -e
export SBT_OPTS="-Xms2G -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=4G -Xss5M -Duser.timezone=GMT"
source activate synapseml
timeout 20m sbt -DskipCodegen=true "project $(PACKAGE)" coverage testR
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
Expand Down Expand Up @@ -701,6 +709,9 @@ jobs:
scriptType: bash
inlineScript: |
(timeout 30s pip install requests) || (echo "retrying" && timeout 30s pip install requests)
(${FFMPEG:-false} && sudo apt-get update && \
sudo apt-get install ffmpeg libgstreamer1.0-0 \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly -y)
(timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup) || (echo "retrying" && timeout 5m sbt setup)
- task: AzureCLI@2
displayName: 'Unit Test'
Expand All @@ -712,9 +723,6 @@ jobs:
scriptType: bash
inlineScript: |
ulimit -c unlimited
(${FFMPEG:-false} && sudo apt-get update && \
sudo apt-get install ffmpeg libgstreamer1.0-0 \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly -y)
export SBT_OPTS="-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M -Duser.timezone=GMT"
(timeout 30m sbt coverage "testOnly com.microsoft.azure.synapse.ml.$(PACKAGE).**") ||
(${FLAKY:-false} && timeout 30m sbt coverage "testOnly com.microsoft.azure.synapse.ml.$(PACKAGE).**")
Expand Down
Loading