From 84f2d6ae6c694fbb84d167a530f56d7f822f3789 Mon Sep 17 00:00:00 2001 From: nkozlovskiy Date: Thu, 30 Nov 2023 18:28:03 +0300 Subject: [PATCH] ci: disable put results to cache on PR builds, also disable dump ya make graph --- .github/actions/build_ya/action.yml | 1 - .github/workflows/build_and_test_ya.yml | 9 ++++++--- .github/workflows/build_and_test_ya_ondemand.yml | 4 ++++ .github/workflows/build_and_test_ya_provisioned.yml | 4 ++++ .github/workflows/pr_check.yml | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/actions/build_ya/action.yml b/.github/actions/build_ya/action.yml index a42afee3a769..2583cef94e52 100644 --- a/.github/actions/build_ya/action.yml +++ b/.github/actions/build_ya/action.yml @@ -79,7 +79,6 @@ runs: ./ya make -k --build "${build_type}" --force-build-depends -D'BUILD_LANGUAGES=CPP PY3 PY2 GO' -T --stat \ --log-file "$TMP_DIR/ya_log.txt" --evlog-file "$TMP_DIR/ya_evlog.jsonl" \ - --dump-graph --dump-graph-to-file "$TMP_DIR/ya_graph.json" \ --cache-size 512G --link-threads "${{ inputs.link_threads }}" \ "${extra_params[@]}" diff --git a/.github/workflows/build_and_test_ya.yml b/.github/workflows/build_and_test_ya.yml index 1129069eafe9..48cb78c8c6d4 100644 --- a/.github/workflows/build_and_test_ya.yml +++ b/.github/workflows/build_and_test_ya.yml @@ -42,6 +42,9 @@ on: type: boolean default: false description: "Use cache for tests" + put_build_results_to_cache: + type: boolean + default: true jobs: main: @@ -73,9 +76,9 @@ jobs: with: build_target: ${{ inputs.build_target }} build_preset: ${{ inputs.build_preset }} - bazel_remote_uri: ${{ vars.REMOTE_CACHE_URL_YA || '' }} - bazel_remote_username: ${{ secrets.REMOTE_CACHE_USERNAME }} - bazel_remote_password: ${{ secrets.REMOTE_CACHE_PASSWORD }} + bazel_remote_uri: ${{ inputs.put_build_results_to_cache && vars.REMOTE_CACHE_URL_YA || '' }} + bazel_remote_username: ${{ inputs.put_build_results_to_cache && secrets.REMOTE_CACHE_USERNAME || '' }} + bazel_remote_password: ${{ inputs.put_build_results_to_cache && secrets.REMOTE_CACHE_PASSWORD || '' }} link_threads: ${{ inputs.link_threads }} - name: Run tests diff --git a/.github/workflows/build_and_test_ya_ondemand.yml b/.github/workflows/build_and_test_ya_ondemand.yml index b604ece142de..5fafb20f6e2a 100644 --- a/.github/workflows/build_and_test_ya_ondemand.yml +++ b/.github/workflows/build_and_test_ya_ondemand.yml @@ -83,6 +83,9 @@ on: type: string default: 8 description: "link threads count" + put_build_results_to_cache: + type: boolean + default: true jobs: provide-runner: @@ -141,6 +144,7 @@ jobs: test_type: ${{ inputs.test_type }} link_threads: ${{ inputs.link_threads }} test_threads: ${{ inputs.test_threads }} + put_build_results_to_cache: ${{ inputs.put_build_results_to_cache }} secrets: inherit release-runner: diff --git a/.github/workflows/build_and_test_ya_provisioned.yml b/.github/workflows/build_and_test_ya_provisioned.yml index 3a72d369abac..cc0e39e2e971 100644 --- a/.github/workflows/build_and_test_ya_provisioned.yml +++ b/.github/workflows/build_and_test_ya_provisioned.yml @@ -91,6 +91,9 @@ on: type: boolean default: false description: "Use cache for tests" + put_build_results_to_cache: + type: boolean + default: true jobs: main: uses: ./.github/workflows/build_and_test_ya.yml @@ -105,4 +108,5 @@ jobs: link_threads: ${{ inputs.link_threads }} test_threads: ${{ inputs.test_threads }} cache_tests: ${{ inputs.cache_tests }} + put_build_results_to_cache: ${{ inputs.put_build_results_to_cache }} secrets: inherit diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index e13d956d4d44..d496053d81d4 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -111,5 +111,5 @@ jobs: test_type: "unittest,py3test,py2test,pytest" test_threads: 52 runner_label: auto-provisioned - cache_tests: true + put_build_results_to_cache: false secrets: inherit