From b4fc80d372bb1f0754da3ade5a0739a43cc35369 Mon Sep 17 00:00:00 2001 From: Carly Gundy Date: Tue, 3 Dec 2024 11:57:28 +0100 Subject: [PATCH 1/2] chore(IDX): bazel-test-all update --- .github/workflows-source/ci-main.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows-source/ci-main.yml b/.github/workflows-source/ci-main.yml index 62d45aae2cf..5572dcc74a1 100644 --- a/.github/workflows-source/ci-main.yml +++ b/.github/workflows-source/ci-main.yml @@ -99,6 +99,12 @@ jobs: runs-on: group: zh1 labels: dind-large + env: + AWS_SHARED_CREDENTIALS_CONTENT: ${{ secrets.AWS_SHARED_CREDENTIALS_FILE }} + # Only run ci/bazel-scripts/diff.sh on PRs that are not labeled with "CI_ALL_BAZEL_TARGETS". + OVERRIDE_DIDC_CHECK: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_DIDC_CHECK') }} + CI_OVERRIDE_BUF_BREAKING: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_BUF_BREAKING') }} + RUN_ON_DIFF_ONLY: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI_ALL_BAZEL_TARGETS') }} steps: - <<: *checkout - <<: *docker-login @@ -131,7 +137,7 @@ jobs: TEST_TAG_FILTERS=$(IFS=,; echo "${EXCLUDED_TEST_TAGS[*]/#/-}") # Determine BAZEL_EXTRA_ARGS based on event type or branch name BAZEL_EXTRA_ARGS="--test_tag_filters=$TEST_TAG_FILTERS" - if [[ "${{ github.event_name }}" == 'merge_group' ]]; then + if [[ "$CI_EVENT_NAME" == 'merge_group' ]]; then BAZEL_EXTRA_ARGS+=" --test_timeout_filters=short,moderate --flaky_test_attempts=3" elif [[ $BRANCH_NAME =~ ^hotfix-.* ]]; then BAZEL_EXTRA_ARGS+=" --test_timeout_filters=short,moderate" @@ -140,17 +146,9 @@ jobs: fi # Export BAZEL_EXTRA_ARGS to environment echo "BAZEL_EXTRA_ARGS=$BAZEL_EXTRA_ARGS" >> $GITHUB_ENV - env: - RUN_ON_DIFF_ONLY: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI_ALL_BAZEL_TARGETS') }} - name: Run Bazel Test All id: bazel-test-all uses: ./.github/actions/bazel-test-all/ - env: - AWS_SHARED_CREDENTIALS_CONTENT: ${{ secrets.AWS_SHARED_CREDENTIALS_FILE }} - # Only run ci/bazel-scripts/diff.sh on PRs that are not labeled with "CI_ALL_BAZEL_TARGETS". - OVERRIDE_DIDC_CHECK: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_DIDC_CHECK') }} - CI_OVERRIDE_BUF_BREAKING: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_BUF_BREAKING') }} - RUN_ON_DIFF_ONLY: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI_ALL_BAZEL_TARGETS') }} with: BAZEL_COMMAND: "test" BAZEL_TARGETS: "//..." From 181131db664314021c695ca942f82cd8de26fcba Mon Sep 17 00:00:00 2001 From: IDX GitHub Automation Date: Tue, 3 Dec 2024 10:58:53 +0000 Subject: [PATCH 2/2] IDX GitHub Automation --- .github/workflows/ci-main.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 34b5c0ed67a..924f8c0b887 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -39,6 +39,12 @@ jobs: runs-on: group: zh1 labels: dind-large + env: + AWS_SHARED_CREDENTIALS_CONTENT: ${{ secrets.AWS_SHARED_CREDENTIALS_FILE }} + # Only run ci/bazel-scripts/diff.sh on PRs that are not labeled with "CI_ALL_BAZEL_TARGETS". + OVERRIDE_DIDC_CHECK: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_DIDC_CHECK') }} + CI_OVERRIDE_BUF_BREAKING: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_BUF_BREAKING') }} + RUN_ON_DIFF_ONLY: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI_ALL_BAZEL_TARGETS') }} steps: - name: Checkout uses: actions/checkout@v4 @@ -79,7 +85,7 @@ jobs: TEST_TAG_FILTERS=$(IFS=,; echo "${EXCLUDED_TEST_TAGS[*]/#/-}") # Determine BAZEL_EXTRA_ARGS based on event type or branch name BAZEL_EXTRA_ARGS="--test_tag_filters=$TEST_TAG_FILTERS" - if [[ "${{ github.event_name }}" == 'merge_group' ]]; then + if [[ "$CI_EVENT_NAME" == 'merge_group' ]]; then BAZEL_EXTRA_ARGS+=" --test_timeout_filters=short,moderate --flaky_test_attempts=3" elif [[ $BRANCH_NAME =~ ^hotfix-.* ]]; then BAZEL_EXTRA_ARGS+=" --test_timeout_filters=short,moderate" @@ -88,17 +94,9 @@ jobs: fi # Export BAZEL_EXTRA_ARGS to environment echo "BAZEL_EXTRA_ARGS=$BAZEL_EXTRA_ARGS" >> $GITHUB_ENV - env: - RUN_ON_DIFF_ONLY: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI_ALL_BAZEL_TARGETS') }} - name: Run Bazel Test All id: bazel-test-all uses: ./.github/actions/bazel-test-all/ - env: - AWS_SHARED_CREDENTIALS_CONTENT: ${{ secrets.AWS_SHARED_CREDENTIALS_FILE }} - # Only run ci/bazel-scripts/diff.sh on PRs that are not labeled with "CI_ALL_BAZEL_TARGETS". - OVERRIDE_DIDC_CHECK: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_DIDC_CHECK') }} - CI_OVERRIDE_BUF_BREAKING: ${{ contains(github.event.pull_request.labels.*.name, 'CI_OVERRIDE_BUF_BREAKING') }} - RUN_ON_DIFF_ONLY: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI_ALL_BAZEL_TARGETS') }} with: BAZEL_COMMAND: "test" BAZEL_TARGETS: "//..."