Skip to content

Commit ef82275

Browse files
committed
Merge branch 'fix-cores' into per-query-limits
2 parents 689d2a3 + 4d48f87 commit ef82275

File tree

1,512 files changed

+88792
-67498
lines changed

Some content is hidden

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

1,512 files changed

+88792
-67498
lines changed

.github/config/muted_ya.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ydb/core/kqp/ut/query KqpLimits.QueryReplySize
1717
ydb/core/kqp/ut/query KqpQuery.QueryTimeout
1818
ydb/core/kqp/ut/scan KqpRequestContext.TraceIdInErrorMessage
1919
ydb/core/kqp/ut/scheme [*/*]*
20+
ydb/core/kqp/ut/scheme KqpOlapScheme.DropThenAddColumn
2021
ydb/core/kqp/ut/scheme KqpOlapScheme.TenThousandColumns
2122
ydb/core/kqp/ut/scheme KqpScheme.AlterAsyncReplication
2223
ydb/core/kqp/ut/scheme KqpScheme.QueryWithAlter

.github/scripts/analytics/flaky_tests_history_n_runs.py

Lines changed: 70 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ def callee(session):
3434
`build_type` Utf8 NOT NULL,
3535
`branch` Utf8 NOT NULL,
3636
`runs_window` Uint64 NOT NULL,
37+
`first_run` Timestamp,
38+
`last_run` Timestamp ,
39+
`owners` Utf8 NOT NULL,
3740
`history` String,
3841
`history_class` String,
3942
`pass_count` Uint64,
@@ -59,6 +62,9 @@ def bulk_upsert(table_client, table_path, rows):
5962
.add_column("branch", ydb.OptionalType(ydb.PrimitiveType.Utf8))
6063
.add_column("full_name", ydb.OptionalType(ydb.PrimitiveType.Utf8))
6164
.add_column("date_window", ydb.OptionalType(ydb.PrimitiveType.Date))
65+
.add_column("first_run", ydb.OptionalType(ydb.PrimitiveType.Timestamp))
66+
.add_column("last_run", ydb.OptionalType(ydb.PrimitiveType.Timestamp))
67+
.add_column("owners", ydb.OptionalType(ydb.PrimitiveType.Utf8))
6268
.add_column("runs_window", ydb.OptionalType(ydb.PrimitiveType.Uint64))
6369
.add_column("history", ydb.OptionalType(ydb.PrimitiveType.String))
6470
.add_column("history_class", ydb.OptionalType(ydb.PrimitiveType.String))
@@ -128,15 +134,15 @@ def main():
128134
except StopIteration:
129135
break
130136

131-
if results[0] and results[0].get( 'max_date_window', default_start_date) is not None:
132-
last_date = results[0].get(
133-
'max_date_window', default_start_date).strftime('%Y-%m-%d')
137+
if results[0] and results[0].get( 'max_date_window', default_start_date) is not None and results[0].get( 'max_date_window', default_start_date) > default_start_date:
134138
last_datetime = results[0].get(
135139
'max_date_window', default_start_date)
140+
136141
else:
137-
last_date = default_start_date.strftime('%Y-%m-%d')
138142
last_datetime = default_start_date
139-
143+
144+
last_date = last_datetime.strftime('%Y-%m-%d')
145+
140146
print(f'last hisotry date: {last_date}')
141147
today = datetime.date.today()
142148
date_list = [today - datetime.timedelta(days=x) for x in range((today - last_datetime).days+1)]
@@ -148,48 +154,80 @@ def main():
148154
build_type,
149155
branch,
150156
history_list,
151-
dist_hist,
157+
if(dist_hist = '','no_runs',dist_hist) as dist_hist,
152158
suite_folder,
153-
test_name
159+
test_name,
160+
owners,
161+
first_run,
162+
last_run
154163
from (
155164
select
156165
full_name,
157166
date_base,
158167
build_type,
159168
branch,
160169
AGG_LIST(status) as history_list ,
161-
String::JoinFromList( AGG_LIST_DISTINCT(status) ,',') as dist_hist,
170+
String::JoinFromList( ListSort(AGG_LIST_DISTINCT(status)) ,',') as dist_hist,
162171
suite_folder,
163-
test_name
172+
test_name,
173+
owners,
174+
min(run_timestamp) as first_run,
175+
max(run_timestamp) as last_run
164176
from (
165177
select * from (
166-
select t1.test_name, t1.suite_folder, t1.full_name,
167-
Date('{date}') as date_base,
168-
'{build_type}' as build_type,
169-
'{branch}' as branch
178+
select
179+
t1.suite_folder,
180+
t1.test_name,
181+
t1.full_name,
182+
t1.owners,
183+
Date('{date}') as date_base,
184+
'{build_type}' as build_type,
185+
'{branch}' as branch
170186
from `test_results/analytics/testowners` as t1
171187
) as test_and_date
172188
left JOIN (
173189
select * from (
174-
select
175-
suite_folder || '/' || test_name as full_name,
176-
run_timestamp,
177-
status ,
178-
ROW_NUMBER() OVER (PARTITION BY test_name ORDER BY run_timestamp DESC) AS run_number
179-
from `test_results/test_runs_column`
180-
where
181-
run_timestamp <= Date('{date}')
182-
and run_timestamp >= Date('{date}') -14*Interval("P1D")
183-
and job_name in ('Postcommit_relwithdebinfo','Postcommit_asan')
184-
and build_type = '{build_type}'
185-
and status != 'skipped'
186-
and branch = '{branch}'
187-
)
188-
where run_number <= {history_for_n_runs}
190+
select * from (
191+
select * from (
192+
select
193+
suite_folder || '/' || test_name as full_name,
194+
run_timestamp,
195+
status ,
196+
ROW_NUMBER() OVER (PARTITION BY suite_folder,test_name ORDER BY run_timestamp DESC) AS run_number
197+
from `test_results/test_runs_column`
198+
where
199+
run_timestamp <= Date('{date}') + Interval("P1D")
200+
and run_timestamp >= Date('{date}') -13*Interval("P1D")
201+
and job_name in ('Postcommit_relwithdebinfo','Postcommit_asan')
202+
and build_type = '{build_type}'
203+
and status != 'skipped'
204+
and branch = '{branch}'
205+
)
206+
where run_number <= {history_for_n_runs}
207+
)
208+
Union all
209+
select * from (
210+
select
211+
suite_folder || '/' || test_name as full_name,
212+
run_timestamp,
213+
status ,
214+
ROW_NUMBER() OVER (PARTITION BY suite_folder,test_name ORDER BY run_timestamp DESC) AS run_number
215+
from `test_results/test_runs_column`
216+
where
217+
run_timestamp <= Date('{date}') + Interval("P1D")
218+
and run_timestamp >= Date('{date}') -13*Interval("P1D")
219+
and job_name in ('Postcommit_relwithdebinfo','Postcommit_asan')
220+
and build_type = '{build_type}'
221+
and status = 'skipped'
222+
and branch = '{branch}'
223+
)
224+
where run_number <= {history_for_n_runs}
225+
)
226+
order by full_name,run_timestamp
189227
) as hist
190228
ON test_and_date.full_name=hist.full_name
191229
)
192-
GROUP BY full_name,suite_folder,test_name,date_base,build_type,branch
230+
GROUP BY full_name,suite_folder,test_name,date_base,build_type,branch,owners
193231
194232
)
195233
"""
@@ -217,6 +255,9 @@ def main():
217255
prepared_for_update_rows.append({
218256
'suite_folder': row['suite_folder'],
219257
'test_name': row['test_name'],
258+
'first_run': row['first_run'],
259+
'last_run': row['last_run'],
260+
'owners': row['owners'],
220261
'full_name': row['full_name'],
221262
'date_window': row['date_base'],
222263
'build_type': row['build_type'],

.github/workflows/collect_analytics.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,19 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python3 -m pip install ydb ydb[yc] codeowners
30-
31-
# Every 2 runs = every 1 hours
3230
- name: Collect testowners
33-
if: ${{ (github.event.schedule || '') == '' || (github.run_number % 2) == 1 }}
3431
run: python3 .github/scripts/analytics/upload_testowners.py
35-
# Every 4 runs = every 4 hours
3632
- name: Collect test history data with window 5 days
37-
if: ${{ (github.event.schedule || '') == '' || (github.run_number % 4) == 1 }}
3833
run: python3 .github/scripts/analytics/flaky_tests_history.py --days-window=5
3934
- name: Collect test history data with window 1 day
40-
if: ${{ (github.event.schedule || '') == '' || (github.run_number % 4) == 1 }}
4135
run: python3 .github/scripts/analytics/flaky_tests_history.py --days-window=1
42-
# Every 4 runs = every 4 hours
4336
- name: Collect test history data with window 10 run relwithdebinfo for main
44-
if: ${{ (github.event.schedule || '') == '' || (github.run_number % 4) == 1 }}
4537
run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=10
4638
- name: Collect test history data with window 10 run release-asan for main
47-
if: ${{ (github.event.schedule || '') == '' || (github.run_number % 4) == 1 }}
4839
run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=10 --build_type=release-asan
40+
- name: Collect test history data with window 50 run relwithdebinfo for main
41+
run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=50
42+
- name: Collect test history data with window 50 run release-asan for main
43+
run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=50 --build_type=release-asan
4944

5045

build/conf/fbs.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FLATC=contrib/libs/flatbuffers/flatc
2-
FLATC64=contrib/tools/flatc64
2+
FLATC64=contrib/libs/flatbuffers64/flatc
33

44
# tag:fbs
55
FLATC_FLAGS_VALUE=

build/conf/java.conf

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,11 @@ _PACK_JDK=
11211121
DO_GEN_JAVA_RUN_SH=
11221122
_SOURCE_JARS=
11231123
_SOURCE_JARS_CPLIST=
1124-
GEN_JAVA_RUN_SH=$SCRIPTGEN_RESOURCE_GLOBAL/scriptgen --java $JDK_RESOURCE/bin/java --output ${output:"run.sh"} -D GENERATE_DEFAULT_RUNNER=yes -D JAR_NAME=${REALPRJNAME}.jar -D CLASSPATH=${nopath;join;pre="::":MANAGED_PEERS_CLOSURE} -D PROJECT_DIR=${REALPRJNAME} -D JAR_BASENAME=${REALPRJNAME}
1124+
_GEN_JAVA_RUN_SH_OUTPUT=run.sh
1125+
when ($HOST_OS_WINDOWS == "yes") {
1126+
_GEN_JAVA_RUN_SH_OUTPUT=run.bat
1127+
}
1128+
GEN_JAVA_RUN_SH=$SCRIPTGEN_RESOURCE_GLOBAL/scriptgen --java $JDK_RESOURCE/bin/java --output ${output:_GEN_JAVA_RUN_SH_OUTPUT} -D GENERATE_DEFAULT_RUNNER=yes -D JAR_NAME=${REALPRJNAME}.jar -D CLASSPATH=${nopath;join;pre="::":MANAGED_PEERS_CLOSURE} -D PROJECT_DIR=${REALPRJNAME} -D JAR_BASENAME=${REALPRJNAME}
11251129
GEN_RUN_CP=${WRITER_PY} --file ${BINDIR}/run-bf.txt -Q -m --ya-start-command-file ${nopath;qe;pre=$REALPRJNAME/:MANAGED_PEERS_CLOSURE} --ya-end-command-file && ${YMAKE_PYTHON} ${input:"build/scripts/make_manifest_from_bf.py"} ${BINDIR}/run-bf.txt ${TARGET}
11261130
COLLECT_JAR_PROGRAM_CP=$FS_TOOLS link_or_copy_to_dir --ya-start-command-file ${ext=.jar:MANAGED_PEERS_CLOSURE} ${ext=.so:MANAGED_PEERS_CLOSURE} ${ext=.dll:MANAGED_PEERS_CLOSURE} ${ext=.dylib:MANAGED_PEERS_CLOSURE} ${_SOURCE_JARS} --ya-end-command-file ${BINDIR}/${REALPRJNAME} ${hide;late_out;nopath;ext=.jar;pre=$BINDIR/$REALPRJNAME/:MANAGED_PEERS_CLOSURE} ${hide;late_out;nopath;ext=.so;pre=$BINDIR/$REALPRJNAME/:MANAGED_PEERS_CLOSURE} ${hide;late_out;nopath;ext=.dll;pre=$BINDIR/$REALPRJNAME/:MANAGED_PEERS_CLOSURE} ${hide;late_out;nopath;ext=.dylib;pre=$BINDIR/$REALPRJNAME/:MANAGED_PEERS_CLOSURE}
11271131
MAKE_JAR_PROGRAM_CPLST=${MAKE_JAVA_CLASSPATH_FILE} --from-args ${output;pre=$MODULE_PREFIX;suf=${MODULE_SUFFIX}.cplst:REALPRJNAME} --ya-start-command-file ${nopath;rootrel;ext=.jar;pre=$BINDIR/$REALPRJNAME/:MANAGED_PEERS_CLOSURE} ${_SOURCE_JARS_CPLIST} --ya-end-command-file
@@ -1330,14 +1334,14 @@ when (!$USE_SYSTEM_ERROR_PRONE) {
13301334
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_18_0_RESOURCE_GLOBAL
13311335
}
13321336
elsewhen ($JDK_REAL_VERSION == "21") {
1333-
ERROR_PRONE_VERSION=2.18.0
1334-
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.18.0
1335-
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_18_0_RESOURCE_GLOBAL
1337+
ERROR_PRONE_VERSION=2.30.0
1338+
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.30.0
1339+
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_30_0_RESOURCE_GLOBAL
13361340
}
13371341
elsewhen ($JDK_REAL_VERSION == "22") {
1338-
ERROR_PRONE_VERSION=2.18.0
1339-
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.18.0
1340-
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_18_0_RESOURCE_GLOBAL
1342+
ERROR_PRONE_VERSION=2.30.0
1343+
ERROR_PRONE_PEERDIR=build/platform/java/error_prone/2.30.0
1344+
ERROR_PRONE_RESOURCE=$ERROR_PRONE_2_30_0_RESOURCE_GLOBAL
13411345
}
13421346
otherwise {
13431347
ERROR_PRONE_VERSION=2.7.1

build/conf/ts/ts.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,22 @@ NOTS_TOOL_BASE_ARGS=\
4040

4141
NOTS_TOOL_BUILD_ENV=
4242

43+
# All variable that potentially can affect CMD are listed for UID generation
44+
# Requirements does not have effect on output
45+
# By adding __NO_UID__ suffix we show that this variable is not a part of the UID
46+
NOTS_TOOL_BUILD_REQUIREMENTS__NO_UID__=
47+
48+
when($AUTOCHECK == "yes") {
49+
# we don't want to have requirements for local runs
50+
NOTS_TOOL_BUILD_REQUIREMENTS__NO_UID__=${requirements;hide:"cpu:4"}
51+
}
52+
4353
# Arguments for builders' commands, passed after the command
4454
NOTS_TOOL_COMMON_BUILDER_ARGS=\
4555
--output-file ${output:TS_OUTPUT_FILE} ${output;hide:TS_OUTPUT_FILE_UUID} \
4656
--tsconfigs $TS_CONFIG_PATH \
4757
--vcs-info "${VCS_INFO_FILE}" \
58+
$NOTS_TOOL_BUILD_REQUIREMENTS__NO_UID__ \
4859
$NOTS_TOOL_BUILD_ENV
4960

5061
ERM_PACKAGES_PATH=devtools/frontend_build_platform/erm/erm-packages.json

build/conf/ts/ts_next.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ TS_NEXT_CMD=$TOUCH_UNIT \
4040
$_NODE_MODULES_INOUTS ${hide:PEERS} \
4141
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
4242
${output;hide:"package.json"} \
43-
${requirements;hide:"cpu:2"} \
4443
${kv;hide:"pc magenta"} ${kv;hide:"p TS_NXT"}
4544

4645
### @usage: TS_NEXT([name])

build/conf/ts/ts_proto.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ _TS_PROTO_IMPL_CMD=$TOUCH_UNIT \
99
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
1010
${output;hide:"package.json"} \
1111
${hide:PROTO_FAKEID} \
12-
${requirements;hide:"cpu:2"} \
1312
${kv;hide:"pc magenta"} ${kv;hide:"p TS_PRO"}
1413

1514

build/conf/ts/ts_tsc.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ TS_TSC_CMD=$TOUCH_UNIT \
44
$_NODE_MODULES_INOUTS ${hide:PEERS} \
55
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
66
${output;hide:"package.json"} \
7-
${requirements;hide:"cpu:2"} \
87
${kv;hide:"pc magenta"} ${kv;hide:"p TS_TSC"}
98

109
### @usage: TS_TSC([name])

build/conf/ts/ts_vite.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ TS_VITE_CMD=$TOUCH_UNIT \
4242
$_NODE_MODULES_INOUTS ${hide:PEERS} \
4343
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
4444
${output;hide:"package.json"} \
45-
${requirements;hide:"cpu:2"} \
4645
${kv;hide:"pc magenta"} ${kv;hide:"p TS_VIT"}
4746

4847
### @usage: TS_VITE([name])

0 commit comments

Comments
 (0)