Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
alexv-smirnov committed Mar 25, 2024
1 parent 20841d3 commit 9d65723
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
9 changes: 1 addition & 8 deletions .github/actions/build_and_test_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,9 @@ inputs:
folder_prefix:
type: string
default: "ya-"
cache_tests:
type: boolean
default: false
description: "Use cache for tests"
put_build_results_to_cache:
type: boolean
default: true
commit_sha:
type: string
default: ""
secs:
type: string
default: ""
Expand All @@ -64,7 +57,7 @@ runs:
# tricky: we are searching job with name that contains build_preset
check_url=$(curl -s $jobs_url | jq --arg n "$BUILD_PRESET" -r '.jobs[] | select(.name | contains($n)) | .html_url')
echo "Pre-commit [check]($check_url) for ${{ inputs.commit_sha }} has started." | .github/scripts/tests/comment-pr.py --rewrite
echo "Pre-commit [check]($check_url) for $(git rev-parse HEAD) has started." | .github/scripts/tests/comment-pr.py --rewrite
- name: Prepare s3cmd
uses: ./.github/actions/s3cmd
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/graph_compare/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: graph_compare
description: Compare graphs between merge commit and its base, and list affected tests in ya.make
description: Compare graphs between current and previous commits (merge commit base in case of a merge commit), and list affected tests in ya.make
runs:
using: "composite"
steps:
Expand All @@ -11,7 +11,7 @@ runs:
- name: generate_ya_make
shell: bash
run: |
./.github/scripts/graph_compare.sh ${{ steps.oref.outputs.value }}^1 ${{ steps.oref.outputs.value }}
./.github/scripts/graph_compare.sh ${{ steps.oref.outputs.value }}~1 ${{ steps.oref.outputs.value }}
- name: restore_ref
shell: bash
run: |
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/postcommit_relwithdebinfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,25 @@ jobs:
runner_label: auto-provisioned
put_build_results_to_cache: true
secrets: inherit
build_and_test:
runs-on: [ self-hosted, auto-provisioned, build-preset-relwithdebinfo ]
name: Build and test relwithdebinfo
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Build and test
uses: ./.github/actions/build_and_test_ya
with:
build_preset: ${{ matrix.build_preset }}
build_target: "ydb/"
run_tests: true
test_size: "small,medium"
test_type: "unittest,py3test,py2test,pytest"
test_threads: 52
put_build_results_to_cache: true
secs: ${{ format('{{"TESTMO_TOKEN":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
secrets.TESTMO_TOKEN, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}
1 change: 0 additions & 1 deletion .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ jobs:
test_type: "unittest,py3test,py2test,pytest"
test_threads: 52
put_build_results_to_cache: true
commit_sha: ${{ needs.check-running-allowed.outputs.commit_sha }}
secs: ${{ format('{{"TESTMO_TOKEN":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
secrets.TESTMO_TOKEN, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
Expand Down

0 comments on commit 9d65723

Please sign in to comment.