118118convert-startup-benchmarks :
119119 extends : .convert-benchmarks
120120 stage : benchmark-conversion
121- needs : []
121+ needs :
122+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
123+ job : linux-java-spring-petclinic-microbenchmark-startup-tracing
124+ artifacts : true
125+ ref : sarahchen6/migrate-java-microbenchmarks
126+ optional : true
127+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
128+ job : linux-java-spring-petclinic-microbenchmark-startup-profiling
129+ artifacts : true
130+ ref : sarahchen6/migrate-java-microbenchmarks
131+ optional : true
132+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
133+ job : linux-java-spring-petclinic-microbenchmark-startup-appsec
134+ artifacts : true
135+ ref : sarahchen6/migrate-java-microbenchmarks
136+ optional : true
137+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
138+ job : linux-java-spring-petclinic-microbenchmark-startup-iast
139+ artifacts : true
140+ ref : sarahchen6/migrate-java-microbenchmarks
141+ optional : true
142+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
143+ job : linux-java-insecure-bank-microbenchmark-startup-tracing
144+ artifacts : true
145+ ref : sarahchen6/migrate-java-microbenchmarks
146+ optional : true
147+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
148+ job : linux-java-insecure-bank-microbenchmark-startup-iast
149+ artifacts : true
150+ ref : sarahchen6/migrate-java-microbenchmarks
151+ optional : true
122152 rules :
123153 - if : ' $POPULATE_CACHE'
124154 when : never
@@ -134,6 +164,11 @@ convert-startup-benchmarks:
134164 - !reference [.convert-benchmarks, before_script]
135165 - |
136166 echo "=== Converting startup benchmark artifacts ==="
167+ # Check if artifacts directory exists
168+ if [ ! -d "artifacts" ]; then
169+ echo "WARNING: artifacts directory not found. No startup benchmark artifacts to convert."
170+ exit 0
171+ fi
137172 # Find all startup benchmark artifacts
138173 # Artifacts are in artifacts/startup-{app}/{variant}/startup_*.csv
139174 find artifacts -type d -name "startup-*" 2>/dev/null | while read app_dir; do
@@ -183,14 +218,44 @@ convert-startup-benchmarks:
183218 done
184219 - |
185220 if [ ! -d "${CONVERTED_DIR}/startup" ] || [ -z "$(find "${CONVERTED_DIR}/startup" -name "*.json" 2>/dev/null)" ]; then
186- echo "WARNING: No startup benchmark artifacts were converted"
221+ echo "WARNING: No startup benchmark artifacts were converted. This is expected if benchmark jobs didn't run. "
187222 fi
188223
189224# Convert dacapo benchmark artifacts
190225convert-dacapo-benchmarks :
191226 extends : .convert-benchmarks
192227 stage : benchmark-conversion
193- needs : []
228+ needs :
229+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
230+ job : linux-java-dacapo-microbenchmark-baseline
231+ artifacts : true
232+ ref : sarahchen6/migrate-dacapo-microbenchmarks
233+ optional : true
234+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
235+ job : linux-java-dacapo-microbenchmark-tracing
236+ artifacts : true
237+ ref : sarahchen6/migrate-dacapo-microbenchmarks
238+ optional : true
239+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
240+ job : linux-java-dacapo-microbenchmark-profiling
241+ artifacts : true
242+ ref : sarahchen6/migrate-dacapo-microbenchmarks
243+ optional : true
244+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
245+ job : linux-java-dacapo-microbenchmark-appsec
246+ artifacts : true
247+ ref : sarahchen6/migrate-dacapo-microbenchmarks
248+ optional : true
249+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
250+ job : linux-java-dacapo-microbenchmark-iast
251+ artifacts : true
252+ ref : sarahchen6/migrate-dacapo-microbenchmarks
253+ optional : true
254+ - project : ' DataDog/apm-reliability/apm-sdks-benchmarks'
255+ job : linux-java-dacapo-microbenchmark-iast_GLOBAL
256+ artifacts : true
257+ ref : sarahchen6/migrate-dacapo-microbenchmarks
258+ optional : true
194259 rules :
195260 - if : ' $POPULATE_CACHE'
196261 when : never
@@ -206,6 +271,11 @@ convert-dacapo-benchmarks:
206271 - !reference [.convert-benchmarks, before_script]
207272 - |
208273 echo "=== Converting dacapo benchmark artifacts ==="
274+ # Check if artifacts directory exists
275+ if [ ! -d "artifacts" ]; then
276+ echo "WARNING: artifacts directory not found. No dacapo benchmark artifacts to convert."
277+ exit 0
278+ fi
209279 # Find all dacapo benchmark artifacts
210280 # Artifacts are in artifacts/dacapo/{variant}/{benchmark}/
211281 find artifacts -type d -path "*/dacapo/*" 2>/dev/null | while read dacapo_dir; do
@@ -261,7 +331,7 @@ convert-dacapo-benchmarks:
261331 done
262332 - |
263333 if [ ! -d "${CONVERTED_DIR}/dacapo" ] || [ -z "$(find "${CONVERTED_DIR}/dacapo" -name "*.json" 2>/dev/null)" ]; then
264- echo "WARNING: No dacapo benchmark artifacts were converted"
334+ echo "WARNING: No dacapo benchmark artifacts were converted. This is expected if benchmark jobs didn't run. "
265335 fi
266336
267337# Convert load benchmark artifacts
0 commit comments