Skip to content

Commit 446d135

Browse files
authored
Fix graph path on retry
1 parent 3b1cf4e commit 446d135

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/actions/test_ya/action.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ runs:
278278
fi
279279
280280
git checkout $ORIGINAL_HEAD
281-
params+=(
282-
--build-custom-json=$GRAPH_PATH
283-
--custom-context=$CONTEXT_PATH
284-
)
285281
YA_MAKE_TARGET="ydb"
286282
else
287283
YA_MAKE_TARGET=""
@@ -393,8 +389,14 @@ runs:
393389
monitor_memory &
394390
MONITOR_PID=$!
395391
392+
if [ -z "$GRAPH_PATH" ]; then
393+
GRAPH_OPTS="--build-custom-json=$GRAPH_PATH --custom-context=$CONTEXT_PATH"
394+
else
395+
GRAPH_OPTS=""
396+
fi
397+
396398
set +e
397-
(./ya make ${params[@]} ${CACHE_OPTS[@]} $YA_MAKE_TARGET \
399+
(./ya make ${params[@]} ${CACHE_OPTS[@]} $YA_MAKE_TARGET $GRAPH_OPTS \
398400
$RERUN_FAILED_OPT --log-file "$PUBLIC_DIR/ya_log.txt" \
399401
--evlog-file "$CURRENT_PUBLIC_DIR/ya_evlog.jsonl" \
400402
--junit "$CURRENT_JUNIT_XML_PATH" --build-results-report "$CURRENT_REPORT" --output "$YA_MAKE_OUT_DIR"; echo $? > exit_code) |& cat >> $YA_MAKE_OUTPUT

0 commit comments

Comments
 (0)