Skip to content

Commit 821a825

Browse files
committed
remove unused
2 parents e91aeb8 + 409ea2f commit 821a825

File tree

1,791 files changed

+52158
-52029
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,791 files changed

+52158
-52029
lines changed

.github/actions/build_ya/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runs:
8585
echo "::debug::get version"
8686
./ya --version
8787
88-
./ya make -k --build "${build_type}" --force-build-depends -D'BUILD_LANGUAGES=CPP PY3 PY2 GO' -T --stat \
88+
./ya make -k --build "${build_type}" --force-build-depends -D'BUILD_LANGUAGES=CPP PY3 PY2 GO' -T --stat -DCONSISTENT_DEBUG \
8989
--log-file "$TMP_DIR/ya_log.txt" --evlog-file "$TMP_DIR/ya_evlog.jsonl" \
9090
--cache-size 512G --link-threads "${{ inputs.link_threads }}" \
9191
"${extra_params[@]}" || (

.github/actions/test_ya/action.yml

Lines changed: 72 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,74 @@ runs:
8282
shell: bash
8383
run: npm install -g @testmo/testmo-cli
8484

85+
- name: Upload tests result to testmo
86+
id: th
87+
if: inputs.testman_token
88+
shell: bash
89+
env:
90+
PR_NUMBER: ${{ github.event.number }}
91+
run: |
92+
RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
93+
BRANCH_TAG="$GITHUB_REF_NAME"
94+
ARCH="${{ runner.arch == 'X64' && 'x86-64' || runner.arch == 'ARM64' && 'arm64' || 'unknown' }}"
95+
96+
BUILD_PRESET="${{ inputs.build_preset }}"
97+
case "$BUILD_PRESET" in
98+
relwithdebinfo)
99+
TESTMO_SOURCE="ya-${ARCH}"
100+
;;
101+
debug)
102+
TESTMO_SOURCE="ya-${ARCH}-debug"
103+
;;
104+
release-*)
105+
TESTMO_SOURCE="ya-${ARCH}-${BUILD_PRESET/release-/}"
106+
;;
107+
*)
108+
echo "Invalid preset: ${{ inputs.build_preset }}"
109+
exit 1
110+
;;
111+
esac
112+
113+
case $GITHUB_EVENT_NAME in
114+
workflow_dispatch)
115+
TESTMO_RUN_NAME="${{ github.run_id }} manual"
116+
EXTRA_TAG="manual"
117+
;;
118+
pull_request | pull_request_target)
119+
TESTMO_RUN_NAME="${{ github.run_id }} PR #${PR_NUMBER}"
120+
EXTRA_TAG="pr"
121+
BRANCH_TAG=""
122+
;;
123+
schedule)
124+
TESTMO_RUN_NAME="${{ github.run_id }} schedule"
125+
EXTRA_TAG="schedule"
126+
;;
127+
push)
128+
TESTMO_RUN_NAME="${{ github.run_id }} POST"
129+
EXTRA_TAG="post-commit"
130+
;;
131+
*)
132+
TESTMO_RUN_NAME="${{ github.run_id }}"
133+
EXTRA_TAG=""
134+
;;
135+
esac
136+
137+
testmo automation:resources:add-link --name build --url "$RUN_URL" --resources testmo.json
138+
testmo automation:resources:add-field --name git-sha --type string --value "${GITHUB_SHA:0:7}" --resources testmo.json
139+
RUN_ID=$(
140+
testmo automation:run:create --instance "$TESTMO_URL" --project-id ${{ inputs.testman_project_id }} \
141+
--name "$TESTMO_RUN_NAME" --source "$TESTMO_SOURCE" --resources testmo.json \
142+
--tags "$BRANCH_TAG" --tags "$EXTRA_TAG"
143+
)
144+
echo "runid=${RUN_ID}" >> $GITHUB_OUTPUT
145+
echo "TEST_HISTORY_URL=${TESTMO_URL}/automation/runs/view/${RUN_ID}" >> $GITHUB_ENV
146+
147+
- name: Print test history link
148+
shell: bash
149+
if: inputs.testman_token
150+
run: |
151+
echo "10 [Test history](${TEST_HISTORY_URL})" >> $SUMMARY_LINKS
152+
85153
- name: set environment variables required by some tests
86154
shell: bash
87155
run: |
@@ -149,7 +217,7 @@ runs:
149217
echo "::debug::start tests"
150218
151219
./ya test "${params[@]}" \
152-
--bazel-remote-put --bazel-remote-username "${{ inputs.bazel_remote_username }}" --bazel-remote-password "${{ inputs.bazel_remote_password }}" \
220+
--bazel-remote-put --bazel-remote-username "${{ inputs.bazel_remote_username }}" --bazel-remote-password "${{ inputs.bazel_remote_password }}" -DCONSISTENT_DEBUG \
153221
--log-file "$LOG_DIR/ya_log_prewarm.txt" --evlog-file "$LOG_DIR/ya_evlog_prewarm.jsonl" \
154222
--dist-cache-evict-bins --cache-tests --no-dir-outputs --test-node-output-limit 100000 --drop-graph-result-before-tests || (
155223
RC=$?
@@ -159,7 +227,7 @@ runs:
159227
160228
echo "::debug::save tests reports"
161229
./ya test "${params[@]}" \
162-
--stat --log-file "$LOG_DIR/ya_log.txt" --evlog-file "$LOG_DIR/ya_evlog.jsonl" \
230+
--stat --log-file "$LOG_DIR/ya_log.txt" --evlog-file "$LOG_DIR/ya_evlog.jsonl" -DCONSISTENT_DEBUG \
163231
--cache-tests --dist-cache-evict-bins --no-dir-outputs --test-node-output-limit 100000 --drop-graph-result-before-tests \
164232
--junit "$JUNIT_REPORT_XML" --output "$OUT_DIR" || (
165233
RC=$?
@@ -199,68 +267,10 @@ runs:
199267
run: |
200268
tar -C $JUNIT_REPORT_PARTS/.. -czf $REPORTS_ARTIFACTS_DIR/junit_parts.xml.tar.gz $(basename $JUNIT_REPORT_PARTS)
201269
202-
- name: Upload tests result to testmo
203-
id: th
270+
- name: Unit test history upload results
204271
if: inputs.testman_token
205272
shell: bash
206-
env:
207-
PR_NUMBER: ${{ github.event.number }}
208273
run: |
209-
RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
210-
BRANCH_TAG="$GITHUB_REF_NAME"
211-
ARCH="${{ runner.arch == 'X64' && 'x86-64' || runner.arch == 'ARM64' && 'arm64' || 'unknown' }}"
212-
213-
BUILD_PRESET="${{ inputs.build_preset }}"
214-
case "$BUILD_PRESET" in
215-
relwithdebinfo)
216-
TESTMO_SOURCE="ya-${ARCH}"
217-
;;
218-
debug)
219-
TESTMO_SOURCE="ya-${ARCH}-debug"
220-
;;
221-
release-*)
222-
TESTMO_SOURCE="ya-${ARCH}-${BUILD_PRESET/release-/}"
223-
;;
224-
*)
225-
echo "Invalid preset: ${{ inputs.build_preset }}"
226-
exit 1
227-
;;
228-
esac
229-
230-
case $GITHUB_EVENT_NAME in
231-
workflow_dispatch)
232-
TESTMO_RUN_NAME="${{ github.run_id }} manual"
233-
EXTRA_TAG="manual"
234-
;;
235-
pull_request | pull_request_target)
236-
TESTMO_RUN_NAME="${{ github.run_id }} PR #${PR_NUMBER}"
237-
EXTRA_TAG="pr"
238-
BRANCH_TAG=""
239-
;;
240-
schedule)
241-
TESTMO_RUN_NAME="${{ github.run_id }} schedule"
242-
EXTRA_TAG="schedule"
243-
;;
244-
push)
245-
TESTMO_RUN_NAME="${{ github.run_id }} POST"
246-
EXTRA_TAG="post-commit"
247-
;;
248-
*)
249-
TESTMO_RUN_NAME="${{ github.run_id }}"
250-
EXTRA_TAG=""
251-
;;
252-
esac
253-
254-
testmo automation:resources:add-link --name build --url "$RUN_URL" --resources testmo.json
255-
testmo automation:resources:add-field --name git-sha --type string --value "${GITHUB_SHA:0:7}" --resources testmo.json
256-
RUN_ID=$(
257-
testmo automation:run:create --instance "$TESTMO_URL" --project-id ${{ inputs.testman_project_id }} \
258-
--name "$TESTMO_RUN_NAME" --source "$TESTMO_SOURCE" --resources testmo.json \
259-
--tags "$BRANCH_TAG" --tags "$EXTRA_TAG"
260-
)
261-
echo "runid=${RUN_ID}" >> $GITHUB_OUTPUT
262-
echo "TEST_HISTORY_URL=${TESTMO_URL}/automation/runs/view/${RUN_ID}" >> $GITHUB_ENV
263-
264274
PROXY_ADDR=127.0.0.1:8888
265275
266276
openssl req -x509 -newkey rsa:2048 \
@@ -277,16 +287,11 @@ runs:
277287
proxy_pid=$!
278288
279289
NODE_TLS_REJECT_UNAUTHORIZED=0 testmo automation:run:submit-thread \
280-
--instance "https://$PROXY_ADDR" --run-id "$RUN_ID" \
290+
--instance "https://$PROXY_ADDR" --run-id "${{ steps.th.outputs.runid }}" \
281291
--results "$JUNIT_REPORT_PARTS/*.xml"
282292
283293
kill $proxy_pid
284294
285-
- name: Print test history link
286-
shell: bash
287-
run: |
288-
echo "10 [Test history](${TEST_HISTORY_URL})" >> $SUMMARY_LINKS
289-
290295
- name: Test history run complete
291296
if: always() && inputs.testman_token
292297
shell: bash

.github/config/muted_functest.txt

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
::sqs.cloud.test_yandex_cloud_mode
2-
::suite_tests.test_postgres
3-
::suite_tests.test_sql_logic
4-
::suite_tests.test_stream_query
5-
ydb/tests/functional/sqs/common/test_queue_attributes_validation.py::TestQueueAttributesValidation::*
6-
ydb/tests/functional/sqs/common/test_queues_managing.py::TestQueuesManagingWithPathTestQueuesManagingWithPath::*
7-
ydb/tests/functional/sqs/common/test_queues_managing.py::TestQueuesManagingWithTenant::*
8-
ydb/tests/functional/sqs/messaging/test_fifo_messaging.py::TestSqsFifoMessagingWithTenant::*
9-
ydb/tests/functional/sqs/messaging/test_fifo_messaging.py::TestSqsFifoMessagingWithPath::*
10-
ydb/tests/functional/sqs/large/test_leader_start_inflight.py::TestSqsMultinodeCluster::*
11-
ydb/tests/functional/sqs/with_quotas/test_quoting.py::TestSqsQuotingWithKesus::*
12-
ydb/tests/functional/suite_tests/test_stream_query.py::TestStreamQuery::test_sql_suite[results-window.test]
1+
ydb/tests/functional/postgresql::test_postgres.py.TestPostgresSuite.test_postgres_suite*
132
ydb/tests/functional/tenants/test_dynamic_tenants.py::*
143
ydb/tests/functional/tenants/test_storage_config.py::TestStorageConfig::*
154
ydb/tests/functional/tenants/test_tenants.py::*
5+
ydb/tests/functional/audit/*
6+
ydb/tests/functional/clickbench::test.py.test_plans*
7+
ydb/tests/fq/s3*
8+
ydb/tests/fq/yds/test_metrics_cleanup.py::TestCleanup*test_cleanup[v1]

.github/config/muted_shard.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ydb-core-blobstorage-pdisk-ut_2
2-
ydb-core-blobstorage-ut_blobstorage_9
3-
ydb-core-blobstorage-ut_vdisk2_0
4-
ydb-core-tx-schemeshard-ut_replication_reboots_0
5-
ydb-core-cms-ut_sentinel
2+
ydb-core-blobstorage-ut_blobstorage_4
3+
ydb-core-blobstorage-ut_blobstorage_5
4+
ydb-core-blobstorage-ut_blobstorage_6
5+
ydb-services-persqueue_v1-ut_3

.github/config/muted_test.txt

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,12 @@
1-
ydb-core-blobstorage-pdisk-ut/TPDiskTest::TestMultipleLogSpliceNonceJump
21
ydb-core-blobstorage-pdisk-ut/TSectorMap::*
3-
ydb-core-blobstorage-ut_blobstorage/CountingEvents::Get_Mirror3of4
42
ydb-core-blobstorage-ut_blobstorage/SpaceCheckForDiskReassign::*
5-
ydb-core-blobstorage-ut_pdiskfit-ut/TPDiskFIT::*
6-
ydb-core-blobstorage-ut_vdisk/TBsHuge::*
7-
ydb-core-blobstorage-ut_vdisk/THugeMigration::RollbackMap_HugeBlobs
8-
ydb-core-cms-ut/TCmsTest::TestProcessingQueue
9-
ydb-core-cms-ut_sentinel/TSentinelTests::*
10-
ydb-core-cms-ut_sentinel/TSentinelTests::PDiskErrorState
11-
ydb-core-cms-ut_sentinel/TSentinelTests::PDiskFaultyState
12-
ydb-core-kqp-runtime-ut/KqpSpillingFileTests::StartError
13-
ydb-core-kqp-ut-service/KqpQueryService::CancelScriptExecution
14-
ydb-core-tx-schemeshard-ut_external_data_source/TExternalDataSourceTest::SchemeErrors
15-
ydb-core-tx-schemeshard-ut_reboots/IntermediateDirsReboots::CreateKesusWithIntermediateDirs
16-
ydb-core-tx-schemeshard-ut_replication_reboots/TReplicationWithRebootsTests::CreateDropRecreate
17-
ydb-library-yql-minikql-ut/TMiniKQLAllocTest::TestDeallocated
18-
ydb-library-yql-utils-backtrace-ut/TEST_BACKTRACE_AND_SYMBOLIZE::TEST_NO_KIKIMR
19-
ydb-public-sdk-cpp-client-ydb_topic-ut/Describe::Statistics
203
ydb-services-ydb-sdk_sessions_pool_ut/YdbSdkSessionsPool::StressTestSync10
21-
ydb-tests-functional-kqp-kqp_indexes/ConsistentIndexRead::InteractiveTx
22-
ydb-tests-functional-kqp-kqp_indexes/KqpExtTest::SecondaryIndexSelectUsingScripting
234
ydb-tests-functional-kqp-kqp_query_session/KqpQuerySession::NoLocalAttach
24-
ydb-library-yql-providers-yt-codec-codegen-ut/*
25-
ydb-library-yql-providers-yt-comp_nodes-ut/YtWriterTests::FlattenSkiff+LLVM
26-
ydb-library-yql-providers-yt-comp_nodes-ut/YtWriterTests::SimpleSkiff+LLVM
275
ydb-core-blobstorage-ut_blobstorage/VDiskAssimilation::Test
28-
ydb-services-ydb-sdk_credprovider_ut/SdkCredProvider::PingFromProviderSyncDiscovery
29-
ydb-library-yql-minikql-codegen-ut/*
30-
ydb-library-yql-minikql-computation-ut/ComputationPatternCache::Smoke
31-
ydb-tests-functional-kqp-kqp_indexes/ConsistentIndexRead::InteractiveTx
32-
ydb-core-tx-replication-ydb_proxy-ut/YdbProxyTests::ReadTopic
336
ydb-core-tx-columnshard-ut_schema/TColumnShardTestSchema::ForgetAfterFail
347
ydb-core-tx-columnshard-ut_schema/TColumnShardTestSchema::RebootForgetAfterFail
8+
ydb-core-kqp-ut-federated_query-generic/*
9+
ydb-core-client-ut/TClientTest::FollowerOfflineBoot
10+
ydb-library-yql-sql-pg-ut/PgSqlParsingAutoparam::AutoParamValues_DifferentTypes
11+
ydb-core-blobstorage-ut_blobstorage/[6/10]*
12+
ydb/core/blobstorage/ut_blobstorage/Defragmentation::DoesItWork

.github/scripts/tests/transform-ya-junit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def add_unittest(self, fn):
2222
with open(fn, "r") as fp:
2323
for line in fp:
2424
line = line.strip()
25-
path, rest = line.split("/")
25+
path, rest = line.split("/", maxsplit=1)
2626
path = path.replace("-", "/")
2727
rest = rest.replace("::", ".")
2828
self.populate(f"{path}/{rest}")
@@ -101,7 +101,7 @@ def get_logs(self, cls, name):
101101
def filter_empty_logs(logs):
102102
result = {}
103103
for k, v in logs.items():
104-
if os.stat(v).st_size == 0:
104+
if not os.path.isfile(v) or os.stat(v).st_size == 0:
105105
continue
106106
result[k] = v
107107
return result

.github/workflows/allowed_dirs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ name: CheckAllowedDirs
22

33
on:
44
push:
5-
branches: [ main ]
65
pull_request:
7-
branches: [ main ]
86

97
jobs:
108
build:
11-
if: ${{ vars.CHECKS_SWITCH != '' && fromJSON(vars.CHECKS_SWITCH).allowed_dirs == true}}
129
runs-on: ubuntu-latest
1310

1411
steps:

.github/workflows/pr_check.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- 'stable-*'
77
paths-ignore:
88
- 'ydb/docs/**'
9-
- '.github/**'
109
- '*'
1110
types:
1211
- 'opened'
@@ -122,5 +121,5 @@ jobs:
122121
test_type: "unittest,py3test,py2test,pytest"
123122
test_threads: 52
124123
runner_label: auto-provisioned
125-
put_build_results_to_cache: false
124+
put_build_results_to_cache: true
126125
secrets: inherit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ __pycache__/
3434
/build-*
3535

3636
.idea/
37+
.vscode/
3738

3839
# KDevelop IDE
3940
*.kdev4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## YDB
88

99
[Website](https://ydb.tech) |
10-
[Documentation](https://ydb.tech/en/docs) |
10+
[Documentation](https://ydb.tech/docs/en/) |
1111
[Official Repository](https://github.com/ydb-platform/ydb) |
1212
[Blog](https://blog-redirect.ydb.tech) |
1313
[YouTube](https://www.youtube.com/c/YDBPlatform) |

0 commit comments

Comments
 (0)