Skip to content

Commit

Permalink
new qa db for analytics actions (#5356)
Browse files Browse the repository at this point in the history
  • Loading branch information
naspirato authored Jun 8, 2024
1 parent 5e75d5b commit cbcee71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/send_build_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


YDBD_PATH = "ydb/apps/ydbd/ydbd"
DATABASE_PATH = "/ru-central1/b1ggceeul2pkher8vhb6/etnvsjbk7kh1jc6bbfi8"
DATABASE_ENDPOINT = "grpcs://lb.etnvsjbk7kh1jc6bbfi8.ydb.mdb.yandexcloud.net:2135"

FROM_ENV_COLUMNS = [
"github_head_ref",
Expand Down Expand Up @@ -62,8 +64,8 @@ def main():
return 0

with ydb.Driver(
endpoint="grpcs://ydb.serverless.yandexcloud.net:2135",
database="/ru-central1/b1ggceeul2pkher8vhb6/etn6d1qbals0c29ho4lf",
endpoint=DATABASE_ENDPOINT,
database=DATABASE_PATH,
credentials=ydb.credentials_from_env_variables()
) as driver:
driver.wait(timeout=10, fail_fast=True)
Expand Down
5 changes: 3 additions & 2 deletions ydb/ci/build_bloat/ydb_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import uuid
import subprocess

DATABASE_PATH = "/ru-central1/b1ggceeul2pkher8vhb6/etn6d1qbals0c29ho4lf"
DATABASE_PATH = "/ru-central1/b1ggceeul2pkher8vhb6/etnvsjbk7kh1jc6bbfi8"
DATABASE_ENDPOINT = "grpcs://lb.etnvsjbk7kh1jc6bbfi8.ydb.mdb.yandexcloud.net:2135"

FROM_ENV_COLUMNS = [
"GITHUB_HEAD_REF",
Expand Down Expand Up @@ -100,7 +101,7 @@ def main():
os.environ["YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS"] = os.environ["CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS"]

with ydb.Driver(
endpoint="grpcs://ydb.serverless.yandexcloud.net:2135",
endpoint=DATABASE_ENDPOINT,
database=DATABASE_PATH,
credentials=ydb.credentials_from_env_variables(),
) as driver:
Expand Down

0 comments on commit cbcee71

Please sign in to comment.