Browse Source

Split postcommits in two workflows

Split postcommits in two workflows

Pull Request resolved: https://github.com/ydb-platform/ydb/pull/518
Alexander Smirnov 1 year ago
parent
commit
7604a0f075

+ 4 - 7
.github/workflows/postcommit.yml → .github/workflows/postcommit_asan.yml

@@ -1,4 +1,5 @@
-name: Postcommit check
+
+name: Postcommit_asan
 on: 
   push:
     branches:
@@ -10,14 +11,10 @@ on:
       - '*'
 jobs:
   build_and_test:
-    strategy:
-      fail-fast: false
-      matrix:
-        build_preset: ["relwithdebinfo", "release-asan"]
-    name: Build and test ${{ matrix.build_preset }}
+    name: Build and test release-asan
     uses: ./.github/workflows/build_and_test_ya_provisioned.yml
     with:
-      build_preset: ${{ matrix.build_preset }}
+      build_preset: "release-asan"
       build_target: "ydb/"
       test_size: "small,medium"
       test_type: "unittest,py3test,py2test,pytest"

+ 23 - 0
.github/workflows/postcommit_relwithdebinfo.yml

@@ -0,0 +1,23 @@
+name: Postcommit_relwithdebinfo
+on: 
+  push:
+    branches:
+      - 'main'
+      - 'stable-*'
+    paths-ignore:
+      - 'ydb/docs/**'
+      - '.github/**'
+      - '*'
+jobs:
+  build_and_test:
+    name: Build and test relwithdebinfo
+    uses: ./.github/workflows/build_and_test_ya_provisioned.yml
+    with:
+      build_preset: "relwithdebinfo"
+      build_target: "ydb/"
+      test_size: "small,medium"
+      test_type: "unittest,py3test,py2test,pytest"
+      test_threads: 52
+      runner_label: auto-provisioned
+      put_build_results_to_cache: true
+    secrets: inherit

+ 2 - 1
.mapping.json

@@ -43,7 +43,8 @@
   ".github/workflows/docs_preview.yaml":"ydb/github_toplevel/.github/workflows/docs_preview.yaml",
   ".github/workflows/docs_release.yaml":"ydb/github_toplevel/.github/workflows/docs_release.yaml",
   ".github/workflows/nightly_run.yaml":"ydb/github_toplevel/.github/workflows/nightly_run.yaml",
-  ".github/workflows/postcommit.yml":"ydb/github_toplevel/.github/workflows/postcommit.yml",
+  ".github/workflows/postcommit_asan.yml":"ydb/github_toplevel/.github/workflows/postcommit_asan.yml",
+  ".github/workflows/postcommit_relwithdebinfo.yml":"ydb/github_toplevel/.github/workflows/postcommit_relwithdebinfo.yml",
   ".github/workflows/pr_check.yml":"ydb/github_toplevel/.github/workflows/pr_check.yml",
   ".github/workflows/prewarm-ccache.yml":"ydb/github_toplevel/.github/workflows/prewarm-ccache.yml",
   ".github/workflows/prewarm-debug.yaml":"ydb/github_toplevel/.github/workflows/prewarm-debug.yaml",