aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2023-04-28 15:35:20 +0000
committeralexv-smirnov <alex@ydb.tech>2023-04-28 18:35:20 +0300
commit264bb74bee42b95fdefe44c69e0d78520da6580e (patch)
treeff2fa730b519175a0a9419529c3bb9c2973c3769 /.github/workflows
parent96420874808e5be85bdbe54cdbe3138ed81a8974 (diff)
downloadydb-264bb74bee42b95fdefe44c69e0d78520da6580e.tar.gz
Publish test results to Testmo
Publish test results to Testmo Pull Request resolved: #183
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_and_test_ondemand.yml25
-rw-r--r--.github/workflows/build_and_test_provisioned.yml30
-rw-r--r--.github/workflows/prepare_vm_for_build.yml6
3 files changed, 57 insertions, 4 deletions
diff --git a/.github/workflows/build_and_test_ondemand.yml b/.github/workflows/build_and_test_ondemand.yml
index 123118cc23..eb5e54923e 100644
--- a/.github/workflows/build_and_test_ondemand.yml
+++ b/.github/workflows/build_and_test_ondemand.yml
@@ -9,6 +9,22 @@ on:
test_label_regexp:
required: false
type: string
+ image:
+ type: string
+ required: false
+ default: fd8snjpoq85qqv0mk9gi
+ workflow_dispatch:
+ inputs:
+ sanitizer:
+ required: false
+ type: string
+ test_label_regexp:
+ required: false
+ type: string
+ image:
+ type: string
+ required: false
+ default: fd8snjpoq85qqv0mk9gi
jobs:
@@ -28,7 +44,7 @@ jobs:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
folder-id: ${{secrets.YC_FOLDER}}
- image-id: fd8snjpoq85qqv0mk9gi
+ image-id: ${{inputs.image}}
disk-size: 930GB
disk-type: network-ssd-nonreplicated
cores: 32
@@ -68,10 +84,13 @@ jobs:
- name: Test
uses: ./.github/actions/test
with:
- log_suffix: ${{format('{0}-{1}', 'X64', inputs.sanitizer)}}
+ log_suffix: ${{format('{0}{1}', 'X64', inputs.sanitizer)}}
test_label_regexp: ${{ inputs.test_label_regexp }}
aws_key_id: ${{secrets.AWS_KEY_ID}}
aws_key_value: ${{secrets.AWS_KEY_VALUE}}
+ testman_token: ${{secrets.TESTMO_TOKEN}}
+ testman_url: ${{vars.TESTMO_URL}}
+ testman_project_id: ${{vars.TESTMO_PROJECT_ID}}
release-runner:
name: Release self-hosted YC runner if provided on-demand
@@ -89,4 +108,4 @@ jobs:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
label: ${{ needs.provide-runner.outputs.label }}
instance-id: ${{ needs.provide-runner.outputs.instance-id }}
-
+
diff --git a/.github/workflows/build_and_test_provisioned.yml b/.github/workflows/build_and_test_provisioned.yml
index abfa07ff2a..3af5be215a 100644
--- a/.github/workflows/build_and_test_provisioned.yml
+++ b/.github/workflows/build_and_test_provisioned.yml
@@ -6,9 +6,32 @@ on:
runner_label:
required: true
type: string
+ run_build:
+ type: boolean
+ default: true
sanitizer:
required: false
type: string
+ run_tests:
+ type: boolean
+ default: true
+ test_label_regexp:
+ required: false
+ type: string
+ workflow_dispatch:
+ inputs:
+ runner_label:
+ required: true
+ type: string
+ run_build:
+ type: boolean
+ default: true
+ sanitizer:
+ required: false
+ type: string
+ run_tests:
+ type: boolean
+ default: true
test_label_regexp:
required: false
type: string
@@ -22,12 +45,17 @@ jobs:
uses: actions/checkout@v3
- name: Build
uses: ./.github/actions/build
+ if: inputs.run_build
with:
sanitizer: ${{ inputs.sanitizer }}
- name: Test
uses: ./.github/actions/test
+ if: inputs.run_tests
with:
- log_suffix: ${{format('{0}-{1}', inputs.runner_label, inputs.sanitizer)}}
+ log_suffix: ${{format('{0}{1}', inputs.runner_label, inputs.sanitizer)}}
test_label_regexp: ${{ inputs.test_label_regexp }}
aws_key_id: ${{secrets.AWS_KEY_ID}}
aws_key_value: ${{secrets.AWS_KEY_VALUE}}
+ testman_token: ${{secrets.TESTMO_TOKEN}}
+ testman_url: ${{vars.TESTMO_URL}}
+ testman_project_id: ${{vars.TESTMO_PROJECT_ID}}
diff --git a/.github/workflows/prepare_vm_for_build.yml b/.github/workflows/prepare_vm_for_build.yml
index 6804f87d7b..bfa6d972c3 100644
--- a/.github/workflows/prepare_vm_for_build.yml
+++ b/.github/workflows/prepare_vm_for_build.yml
@@ -9,6 +9,11 @@ on:
secrets:
rc_auth:
required: false
+ workflow_dispatch:
+ inputs:
+ runner_label:
+ required: true
+ type: string
jobs:
prepare:
@@ -25,6 +30,7 @@ jobs:
sudo apt-get -y install git cmake python3-pip ninja-build antlr3 m4 clang-12 lld-12 libidn11-dev libaio1 libaio-dev
sudo pip3 install conan==1.59
- name: Install AllureCtl
+ if: false
shell: bash
run: |
wget https://github.com/allure-framework/allurectl/releases/latest/download/allurectl_linux_386 -O ~/allurectl