Просмотр исходного кода

ci: disable put results to cache on PR builds, also disable dump ya make graph

nkozlovskiy 1 год назад
Родитель
Сommit
84f2d6ae6c

+ 0 - 1
.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[@]}"
 

+ 6 - 3
.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

+ 4 - 0
.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:

+ 4 - 0
.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

+ 1 - 1
.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