Skip to content

Commit ff61f89

Browse files
authored
[SW-224648] Fix test logs redirection (vllm-project#1027)
Fixed test logs redirection
1 parent 5dbefd6 commit ff61f89

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/trigger_jenkins.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ jobs:
220220
RELEASED_SYNAPSE_VERSION: ${{ vars.RELEASED_SYNAPSE_VERSION }}
221221
BASE_BRANCH: ${{ needs.read_codeowners.outputs.pr_branch }}
222222
run: |
223-
LOG_REDIRECTION=">"
223+
LOG_REDIRECTION="\&>"
224224
version_regex='^v([0-9]+)\.([0-9]+)\.([0-9]+)_next$'
225225
if [[ $TARGET_BRANCH =~ $version_regex ]]; then
226226
synapse_version=${TARGET_BRANCH#v}
227227
synapse_version=${synapse_version%_*}
228228
else
229229
synapse_version=${RELEASED_SYNAPSE_VERSION#v}
230-
LOG_REDIRECTION="\| tee"
230+
LOG_REDIRECTION="2>\&1 \| tee"
231231
fi
232232
echo "Using SynapseAI version ${synapse_version}"
233233
synapse_build=$(curl "https://dms.habana-labs.com/api/v1.1/branch/info/v$synapse_version" | jq -r ".release_id")
@@ -248,14 +248,18 @@ jobs:
248248
run: |
249249
random_string=$(tr -dc 'a-z0-9' </dev/urandom | head -c 10)
250250
pod_name="vllm-fork-${{github.event.issue.number}}-${random_string}"
251+
set +e
251252
hlctl create containers \
252253
--file=pod.yml \
253254
--flavor=${{ matrix.tests.flavor}} \
254255
--name="${pod_name}" \
255256
--namespace="framework" \
256257
--retry \
257258
--shm=10240
259+
test_status=$?
260+
set -e
258261
echo "Logs are available at https://logs-browser.k8s-infra.habana-labs.com/files/${pod_name}-tfjob"
262+
exit $test_status
259263
- name: Create Commit Status(Failure)
260264
uses: actions/github-script@v7
261265
if: failure()

0 commit comments

Comments
 (0)