Skip to content

Commit 2012c46

Browse files
committed
Merge remote-tracking branch 'upstream/master' into azure-remove-redundant-list
2 parents 527ec9e + 16579a9 commit 2012c46

File tree

290 files changed

+4598
-1504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+4598
-1504
lines changed

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ jobs:
776776
fi
777777
778778
build_amd_compat:
779-
runs-on: [self-hosted, builder-aarch64]
779+
runs-on: [self-hosted, builder]
780780
needs: [config_workflow, dockers_build_amd_and_merge, build_amd_tidy, build_amd_debug, build_amd_release, build_amd_asan, build_amd_tsan, build_amd_msan, build_amd_ubsan, build_amd_binary, build_arm_release, build_arm_asan]
781781
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'QnVpbGQgKGFtZF9jb21wYXQp') }}
782782
name: "Build (amd_compat)"

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ jobs:
930930
fi
931931
932932
build_amd_compat:
933-
runs-on: [self-hosted, builder-aarch64]
933+
runs-on: [self-hosted, builder]
934934
needs: [config_workflow, dockers_build_amd_and_merge, build_amd_debug, build_amd_release, build_amd_asan, build_amd_tsan, build_amd_msan, build_amd_ubsan, build_amd_binary, build_arm_release, build_arm_asan]
935935
if: ${{ !failure() && !cancelled() && !contains(fromJson(needs.config_workflow.outputs.data).cache_success_base64, 'QnVpbGQgKGFtZF9jb21wYXQp') }}
936936
name: "Build (amd_compat)"

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,18 @@ Please feel free to reach out to tyler `<at>` clickhouse `<dot>` com.
4747
You can also peruse [ClickHouse Events](https://clickhouse.com/company/news-events) for a list of all upcoming trainings, meetups, speaking engagements, etc.
4848

4949
Upcoming meetups
50-
* [Sydney Meetup](https://www.meetup.com/clickhouse-australia-user-group/events/306549810/) - April 1, 2025
51-
* [Oslo Meetup](https://www.meetup.com/open-source-real-time-data-warehouse-real-time-analytics/events/306414327/) - April 8, 2025
52-
* [Ho Chi Minh Meetup with AWS & Infinite Lambda](https://www.meetup.com/clickhouse-vietnam-meetup-group/events/306810105/) - April 12, 2025
5350
* [Tokyo Meetup with Confluent](https://www.meetup.com/clickhouse-tokyo-user-group/events/306832118/) - April 15, 2025
5451
* [Kuala Lumper Meetup with CNCF](https://www.meetup.com/clickhouse-malaysia-meetup-group/events/306697678/) - April 16, 2025
5552
* [Jakarta Meetup with AWS](https://www.meetup.com/clickhouse-indonesia-user-group/events/306973747/) - April 22, 2025
53+
* [Denver Meetup](https://www.meetup.com/clickhouse-denver-user-group/events/306934991/) - April 23, 2025
54+
* [Austin Meetup](https://www.meetup.com/clickhouse-austin-user-group/events/307289908) - May 13, 2025
5655
* [London Meetup](https://www.meetup.com/clickhouse-london-user-group/events/306047172/) - May 14, 2025
5756
* [Istanbul Meetup](https://www.meetup.com/clickhouse-turkiye-meetup-group/events/306978337/) - May 15, 2025
5857

5958
Recent meetups
59+
* [Ho Chi Minh Meetup with AWS & Infinite Lambda](https://www.meetup.com/clickhouse-vietnam-meetup-group/events/306810105/) - April 12, 2025
60+
* [Oslo Meetup](https://www.meetup.com/open-source-real-time-data-warehouse-real-time-analytics/events/306414327/) - April 8, 2025
61+
* [Sydney Meetup](https://www.meetup.com/clickhouse-australia-user-group/events/306549810/) - April 1, 2025
6062
* [Washington DC Meetup](https://www.meetup.com/clickhouse-dc-user-group/events/306439995) - March 27, 2025
6163
* [New York Meetup](https://www.meetup.com/clickhouse-new-york-user-group/events/305916369) - March 26, 2025
6264
* [Tel Aviv Meetup](https://www.meetup.com/clickhouse-meetup-israel/events/306434754/) - March 26, 2025
@@ -76,11 +78,7 @@ Recent meetups
7678
* [Auckland Meetup](https://www.meetup.com/clickhouse-auckland-meetup-group/events/305666103/) - Feb 19, 2025
7779
* [Dubai Meetup](https://www.meetup.com/clickhouse-dubai-meetup-group/events/303096989/) - Feb 10, 2025
7880
* [Bangalore Meetup](https://www.meetup.com/clickhouse-bangalore-user-group/events/305497951/) - Feb 8, 2025
79-
* [London Meetup](https://www.meetup.com/clickhouse-london-user-group/events/305146729/) - Feb 5, 2025
80-
* [FOSDEM Dinner](https://clickhouse.com/company/events/202502-emea-brussels-fosdem-dinner) - Feb 1, 2025
81-
* [Mumbai Meetup](https://www.meetup.com/clickhouse-mumbai-user-group/events/305497320/) - Feb 1, 2025
82-
* [Zagreb Meetup](https://www.meetup.com/clickhouse-croatia-user-group/events/305455877/) - Jan 30, 2025
83-
* [Tokyo Meetup](https://www.meetup.com/clickhouse-tokyo-user-group/events/305126993/) - Jan 23, 2025
81+
8482

8583

8684
## Recent Recordings

base/base/BFloat16.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ class BFloat16
155155
res.x = x ^ 0b1000000000000000;
156156
return res;
157157
}
158+
159+
constexpr const UInt16 & raw() const
160+
{
161+
return x;
162+
}
158163
};
159164

160165

base/poco/NetSSL_OpenSSL/src/Context.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,18 +504,18 @@ void Context::createSSLContext()
504504
* if TLS1.x was removed at OpenSSL library build time via Configure options.
505505
*/
506506
case TLSV1_1_CLIENT_USE:
507-
_pSSLContext = SSL_CTX_new(TLSv1_1_client_method());
507+
_pSSLContext = SSL_CTX_new(TLS_client_method());
508508
break;
509509
case TLSV1_1_SERVER_USE:
510-
_pSSLContext = SSL_CTX_new(TLSv1_1_server_method());
510+
_pSSLContext = SSL_CTX_new(TLS_server_method());
511511
break;
512512
#endif
513513
#if defined(SSL_OP_NO_TLSv1_2) && !defined(OPENSSL_NO_TLS1)
514514
case TLSV1_2_CLIENT_USE:
515-
_pSSLContext = SSL_CTX_new(TLSv1_2_client_method());
515+
_pSSLContext = SSL_CTX_new(TLS_client_method());
516516
break;
517517
case TLSV1_2_SERVER_USE:
518-
_pSSLContext = SSL_CTX_new(TLSv1_2_server_method());
518+
_pSSLContext = SSL_CTX_new(TLS_server_method());
519519
break;
520520
#endif
521521
default:

ci/defs/job_configs.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class JobConfigs:
273273
RunnerLabels.BUILDER_ARM, # BuildTypes.ARM_V80COMPAT,
274274
RunnerLabels.BUILDER_AMD, # BuildTypes.AMD_FREEBSD,
275275
RunnerLabels.BUILDER_ARM, # BuildTypes.PPC64LE,
276-
RunnerLabels.BUILDER_ARM, # BuildTypes.AMD_COMPAT,
276+
RunnerLabels.BUILDER_AMD, # BuildTypes.AMD_COMPAT,
277277
RunnerLabels.BUILDER_AMD, # BuildTypes.AMD_MUSL,
278278
RunnerLabels.BUILDER_ARM, # BuildTypes.RISCV64,
279279
RunnerLabels.BUILDER_AMD, # BuildTypes.S390X,
@@ -738,6 +738,9 @@ class JobConfigs:
738738
name=JobNames.ASTFUZZER,
739739
runs_on=["..params.."],
740740
command=f"cd ./tests/ci && python3 ci.py --run-from-praktika",
741+
digest_config=Job.CacheDigestConfig(
742+
include_paths=["./docker/test/fuzzer", "./tests/ci/ci_fuzzer_check.py"],
743+
),
741744
allow_merge_on_failure=True,
742745
).parametrize(
743746
parameter=[
@@ -766,6 +769,9 @@ class JobConfigs:
766769
name=JobNames.BUZZHOUSE,
767770
runs_on=["..params.."],
768771
command=f"cd ./tests/ci && python3 ci.py --run-from-praktika",
772+
digest_config=Job.CacheDigestConfig(
773+
include_paths=["./docker/test/fuzzer", "./tests/ci/ci_fuzzer_check.py"],
774+
),
769775
allow_merge_on_failure=True,
770776
).parametrize(
771777
parameter=[

ci/jobs/performance_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def run_test(
162162
f"./tests/performance/scripts/perf.py --host localhost localhost \
163163
--port {cls.LEFT_SERVER_PORT} {cls.RIGHT_SERVER_PORT} \
164164
--runs {runs} --max-queries {max_queries} \
165-
--profile-seconds 0 \
165+
--profile-seconds 10 \
166166
{test_file}",
167167
verbose=True,
168168
)
@@ -621,7 +621,7 @@ def too_many_slow(msg):
621621
# attach all logs with errors
622622
Shell.check(f"rm -f {perf_wd}/logs.tar.zst")
623623
Shell.check(
624-
f'cd {perf_wd} && find . -type f \( -name "*.log" -o -name "*.tsv" -o -name "*.txt" -o -name "*.rep" \) ! -path "*/db/*" ! -path "*/db0/*" -print0 | tar --null -T - -cf - | zstd -o ./logs.tar.zst',
624+
f'cd {perf_wd} && find . -type f \( -name "*.log" -o -name "*.tsv" -o -name "*.txt" -o -name "*.rep" -o -name "*.svg" \) ! -path "*/db/*" ! -path "*/db0/*" -print0 | tar --null -T - -cf - | zstd -o ./logs.tar.zst',
625625
verbose=True,
626626
)
627627
if Path(f"{perf_wd}/logs.tar.zst").is_file():

ci/jobs/scripts/perf/compare.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ do
11041104
| cut -f 5- \
11051105
| sed 's/\t/ /g' \
11061106
| tee "report/tmp/$query_file.stacks.$version.tsv" \
1107-
| ~/fg/flamegraph.pl --hash > "$query_file.$version.svg" &
1107+
| /fg/flamegraph.pl --hash > "$query_file.$version.svg" &
11081108
done
11091109
done
11101110
wait
@@ -1113,10 +1113,10 @@ unset IFS
11131113
# Create differential flamegraphs.
11141114
while IFS= read -r query_file
11151115
do
1116-
~/fg/difffolded.pl "report/tmp/$query_file.stacks.left.tsv" \
1116+
/fg/difffolded.pl "report/tmp/$query_file.stacks.left.tsv" \
11171117
"report/tmp/$query_file.stacks.right.tsv" \
11181118
| tee "report/tmp/$query_file.stacks.diff.tsv" \
1119-
| ~/fg/flamegraph.pl > "$query_file.diff.svg" &
1119+
| /fg/flamegraph.pl > "$query_file.diff.svg" &
11201120
done < report/query-files.txt
11211121
wait
11221122

ci/jobs/scripts/workflow_hooks/store_data.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from ci.jobs.scripts.clickhouse_version import CHVersion
1+
import copy
2+
3+
from ci.defs.job_configs import JobConfigs
4+
from ci.praktika.digest import Digest
25
from ci.praktika.info import Info
36
from ci.praktika.utils import Shell
47

@@ -19,6 +22,13 @@
1922
changed_files = changed_files_str.split("\n")
2023
info.store_custom_data("changed_files", changed_files)
2124

25+
# hack to get build digest
26+
some_build_job = copy.deepcopy(JobConfigs.build_jobs[0])
27+
some_build_job.run_in_docker = ""
28+
some_build_job.provides = []
29+
digest = Digest().calc_job_digest(some_build_job, {}, {}).split("-")[0]
30+
info.store_custom_data("build_digest", digest)
31+
2232
if info.git_branch == "master" and info.repo_name == "ClickHouse/ClickHouse":
2333
# store previous commits for perf tests
2434
raw = Shell.get_output(

ci/praktika/_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def from_env(cls) -> "_Environment":
5656
RUN_URL = f"https://github.com/{REPOSITORY}/actions/runs/{RUN_ID}"
5757
BASE_BRANCH = os.getenv("GITHUB_BASE_REF", "")
5858
USER_LOGIN = ""
59-
FORK_NAME = ""
59+
FORK_NAME = REPOSITORY
6060
PR_BODY = ""
6161
PR_TITLE = ""
6262
PR_LABELS = []

0 commit comments

Comments
 (0)