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
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def get_checks_fails(client: Client, commit_sha: str, branch_name: str):
report_url as results_link,
task_url
FROM `gh-data`.checks
WHERE commit_sha='{commit_sha}'
WHERE commit_sha='{commit_sha}' AND head_ref IN ('{branch_name}', 'refs/tags/{branch_name}')
GROUP BY check_name, test_name, report_url, task_url
)
WHERE test_status IN ('FAIL', 'ERROR')
Expand Down Expand Up @@ -192,7 +192,7 @@ def get_checks_known_fails(
report_url as results_link,
task_url
FROM `gh-data`.checks
WHERE commit_sha='{commit_sha}'
WHERE commit_sha='{commit_sha}' AND head_ref IN ('{branch_name}', 'refs/tags/{branch_name}')
GROUP BY check_name, test_name, report_url, task_url
)
WHERE test_status='BROKEN'
Expand Down Expand Up @@ -229,7 +229,7 @@ def get_checks_errors(client: Client, commit_sha: str, branch_name: str):
report_url as results_link,
task_url
FROM `gh-data`.checks
WHERE commit_sha='{commit_sha}'
WHERE commit_sha='{commit_sha}' AND head_ref IN ('{branch_name}', 'refs/tags/{branch_name}')
GROUP BY check_name, test_name, report_url, task_url
)
WHERE job_status=='error'
Expand Down
3 changes: 3 additions & 0 deletions tests/broken_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"03203_hive_style_partitioning": {
"reason": "INVESTIGATE - new fail in 24.12"
},
"03315_executable_table_function_threads": {
"reason": "INVESTIGATE - unstable, timeout"
},
"00988_expansion_aliases_limit": {
"reason": "INVESTIGATE - Timeout on TSAN"
},
Expand Down
17 changes: 11 additions & 6 deletions tests/ci/clickhouse_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

import requests

from env_helper import CLICKHOUSE_TEST_STAT_URL, CLICKHOUSE_TEST_STAT_PASSWORD, CLICKHOUSE_TEST_STAT_LOGIN
from env_helper import (
GITHUB_REPOSITORY,
CLICKHOUSE_TEST_STAT_URL,
CLICKHOUSE_TEST_STAT_PASSWORD,
CLICKHOUSE_TEST_STAT_LOGIN,
)
from get_robot_token import get_parameter_from_ssm
from pr_info import PRInfo
from report import TestResults
Expand Down Expand Up @@ -212,11 +217,11 @@ def prepare_tests_results_for_clickhouse(
report_url: str,
check_name: str,
) -> List[dict]:
pull_request_url = "https://github.com/Altinity/ClickHouse/commits/master"
base_ref = "master"
head_ref = "master"
base_repo = pr_info.repo_full_name
head_repo = pr_info.repo_full_name
base_ref = pr_info.base_ref
base_repo = pr_info.base_name
head_ref = pr_info.head_ref
head_repo = pr_info.head_name
pull_request_url = f"https://github.com/{GITHUB_REPOSITORY}/commits/{head_ref}"
if pr_info.number != 0:
pull_request_url = pr_info.pr_html_url

Expand Down
Loading