Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/actions/build_and_test_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,17 @@ runs:
fi

exit 1


- name: build_stats
shell: bash
continue-on-error: true
if: always()
run: |
set -x
export build_preset="${{ inputs.build_preset }}"
python3 -m pip install ydb ydb[yc]
python3 .github/scripts/send_build_stats.py

- name: comment-if-cancel
shell: bash
if: cancelled() && (github.event_name == 'pull_request' || github.event_name == 'pull_request_target')
Expand Down
9 changes: 0 additions & 9 deletions .github/actions/build_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ runs:
echo "Build successful." | .github/scripts/tests/comment-pr.py --ok
fi

- name: build_stats
shell: bash
continue-on-error: true
run: |
set -x
export build_preset="${{ inputs.build_preset }}"
python3 -m pip install ydb ydb[yc]
python3 .github/scripts/send_build_stats.py

- name: show free space
if: always()
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/send_build_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def main():
print("Env variable YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS is missing, skipping")
return 1

if not os.path.exists(YDBD_PATH):
# can be possible due to incremental builds and ydbd itself is not affected by changes
print("{} not exists, skipping".format(YDBD_PATH))
return 1

with ydb.Driver(
endpoint="grpcs://ydb.serverless.yandexcloud.net:2135",
database="/ru-central1/b1ggceeul2pkher8vhb6/etn6d1qbals0c29ho4lf",
Expand Down