Skip to content

Commit

Permalink
Merge pull request #347 from Altinity/fix_events_db
Browse files Browse the repository at this point in the history
23.8 Using 'gh-data' instead of 'default' for CI/CD events reporting
  • Loading branch information
Enmk authored Dec 25, 2023
2 parents 3d7b4f9 + 166cd20 commit 193c1f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/ci/build_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def main():
log_url,
f"Build ({build_name})",
)
ch_helper.insert_events_into(db="default", table="checks", events=prepared_events)
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)

# Fail the build job if it didn't succeed
if build_status != SUCCESS:
Expand Down
2 changes: 1 addition & 1 deletion tests/ci/install_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def filter_artifacts(path: str) -> bool:
args.check_name,
)

ch_helper.insert_events_into(db="default", table="checks", events=prepared_events)
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)

if state == FAILURE:
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion tests/ci/sqlancer_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def main():
report_url,
check_name,
)
ch_helper.insert_events_into(db="default", table="checks", events=prepared_events)
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion tests/ci/sqltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def main():
check_name,
)

ch_helper.insert_events_into(db="default", table="checks", events=prepared_events)
ch_helper.insert_events_into(db="gh-data", table="checks", events=prepared_events)

logging.info("Result: '%s', '%s', '%s'", status, description, report_url)
print(f"::notice ::Report url: {report_url}")
Expand Down

0 comments on commit 193c1f9

Please sign in to comment.