Skip to content

Commit

Permalink
Do not modify SHELLOPTS env var (ydb-platform#4169)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximyurchuk authored Apr 30, 2024
1 parent 9bcbbd6 commit 65ed5d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/actions/build_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ runs:
env:
build_preset: ${{ inputs.build_preset }}
run: |
echo "SHELLOPTS=xtrace" >> $GITHUB_ENV
export TMP_DIR=$(pwd)/tmp_build
echo "TMP_DIR=$TMP_DIR" >> $GITHUB_ENV
Expand All @@ -54,6 +53,7 @@ runs:
id: build
shell: bash
run: |
set -x
extra_params=()
if [ ! -z "${{ inputs.build_target }}" ]; then
Expand Down Expand Up @@ -128,6 +128,7 @@ runs:
if: always()
shell: bash
run: |
set -x
echo "::group::s3-sync"
s3cmd sync --acl-private --exclude="ya_make.log" --no-progress --stats --no-check-md5 "$TMP_DIR/" "$S3_BUCKET_PATH/build_logs/"
s3cmd sync --acl-public --no-progress --stats --no-check-md5 "$TMP_DIR/ya_make.log" "$S3_BUCKET_PATH/build_logs/"
Expand All @@ -137,6 +138,7 @@ runs:
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
shell: bash
run: |
set -x
if [ "${{ steps.build.outputs.status }}" == "failed" ]; then
echo "Build failed. see the [build logs]($LOG_URL)." | .github/scripts/tests/comment-pr.py --fail
else
Expand Down
9 changes: 8 additions & 1 deletion .github/actions/test_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ runs:
id: init
shell: bash
run: |
echo "SHELLOPTS=xtrace" >> $GITHUB_ENV
export TMP_DIR=$(pwd)/tmp
echo "TMP_DIR=$TMP_DIR" >> $GITHUB_ENV
echo "LOG_DIR=$TMP_DIR/logs" >> $GITHUB_ENV
Expand All @@ -54,6 +53,7 @@ runs:
- name: prepare
shell: bash
run: |
set -x
rm -rf $TMP_DIR $JUNIT_REPORT_XML $JUNIT_REPORT_PARTS $REPORTS_ARTIFACTS_DIR
mkdir -p $TMP_DIR $OUT_DIR $ARTIFACTS_DIR $TEST_ARTIFACTS_DIR $LOG_DIR $JUNIT_REPORT_PARTS $REPORTS_ARTIFACTS_DIR
Expand All @@ -73,6 +73,7 @@ runs:
env:
PR_NUMBER: ${{ github.event.number }}
run: |
set -x
RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
BRANCH_TAG="$GITHUB_REF_NAME"
ARCH="${{ runner.arch == 'X64' && 'x86-64' || runner.arch == 'ARM64' && 'arm64' || 'unknown' }}"
Expand Down Expand Up @@ -141,6 +142,7 @@ runs:
- name: ya test
shell: bash
run: |
set -x
readarray -d ',' -t test_size < <(printf "%s" "${{ inputs.test_size }}")
params=(
Expand Down Expand Up @@ -214,6 +216,7 @@ runs:
- name: postprocess junit report
shell: bash
run: |
set -x
.github/scripts/tests/transform-ya-junit.py -i \
-m .github/config/muted_ya.txt \
--ya-out "$OUT_DIR" \
Expand All @@ -234,6 +237,7 @@ runs:
if: inputs.testman_token
shell: bash
run: |
set -x
PROXY_ADDR=127.0.0.1:8888
openssl req -x509 -newkey rsa:2048 \
Expand Down Expand Up @@ -265,6 +269,7 @@ runs:
shell: bash
if: always()
run: |
set -x
mkdir $ARTIFACTS_DIR/summary/
cat $SUMMARY_LINKS | python3 -c 'import sys; print(" | ".join([v for _, v in sorted([l.strip().split(" ", 1) for l in sys.stdin], key=lambda a: (int(a[0]), a))]))' >> $GITHUB_STEP_SUMMARY
Expand All @@ -280,6 +285,7 @@ runs:
if: always()
shell: bash
run: |
set -x
echo "::group::s3-sync"
s3cmd sync -r --follow-symlinks --acl-public --no-progress --stats --no-check-md5 "$ARTIFACTS_DIR/" "$S3_BUCKET_PATH/"
s3cmd sync -r --follow-symlinks --acl-public --no-progress --stats --no-check-md5 "$TEST_ARTIFACTS_DIR/" "$S3_TEST_ARTIFACTS_BUCKET_PATH/"
Expand All @@ -289,6 +295,7 @@ runs:
if: always()
shell: bash
run: |
set -x
echo "::group::s3-sync"
s3cmd sync --follow-symlinks --acl-private --no-progress --stats --no-check-md5 "$LOG_DIR/" "$S3_BUCKET_PATH/test_logs/"
echo "::endgroup::"
Expand Down

0 comments on commit 65ed5d1

Please sign in to comment.