summaryrefslogtreecommitdiffstats
path: root/.github/workflows/regression_run_compatibility.yml
blob: 8fde1179cd8ef655273324f19ff9d315a6bcf6cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Regression-run_compatibility
run-name: >- 
          ${{
          inputs.initial_version_ref != '' && inputs.initial_version_ref || 'default-init'}} -> ${{
          inputs.inter_version_ref != '' && inputs.inter_version_ref || 'default-inter'}} -> ${{
          inputs.target_version_ref != '' && inputs.target_version_ref || 'default-target'}}

on:
  schedule:
    - cron: "0 23 * * *"  # At 23:00 every day
  workflow_dispatch:
    inputs:
      pull_request_input:
        description: 'Pull request number (overrides default branches), ex: 12345'
        required: false
        default: ''
      initial_version_ref:
        description: Initial(oldest) version (ex. stable-24-4, should exist on S3)
        type: string
        required: false
      inter_version_ref:
        description: Intermediate version (ex. stable-25-1-2/25.1.1.18, should exist on S3)
        type: string
        required: false
      target_version_ref:
        description: Target(newest) version ("current" - compiles binary from the chosen branch)
        type: string
        required: false
jobs:
  main:
    name: Regression-run_compatibility
    uses: ./.github/workflows/run_tests.yml
    secrets: inherit
    strategy:
      fail-fast: false
      matrix: 
        build_preset: ["relwithdebinfo", "release-asan", "release-tsan", "release-msan"]
    with:
      test_targets: ydb/tests/compatibility/
      branches: ${{ inputs.pull_request_input && format('pull/{0}', inputs.pull_request_input) || github.ref_name }}
      build_preset: ${{ matrix.build_preset }}
      additional_ya_make_args: >-
       ${{inputs.initial_version_ref != '' && format(' -DYDB_COMPAT_INIT_REF={0} ', inputs.initial_version_ref) || ''}}${{
          inputs.inter_version_ref != '' && format(' -DYDB_COMPAT_INTER_REF={0} ', inputs.inter_version_ref) || ''}}${{
          inputs.target_version_ref != '' && format(' -DYDB_COMPAT_TARGET_REF={0}', inputs.target_version_ref) || ''}}