Skip to content

Commit 7b8bbf6

Browse files
committed
Merge branch 'main' into YQ-3655-add-block-splitting-in-s3-source
2 parents 6f6f197 + 37532cc commit 7b8bbf6

File tree

9,478 files changed

+155752
-2842466
lines changed

Some content is hidden

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

9,478 files changed

+155752
-2842466
lines changed

.github/actions/update_changelog/update_changelog.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def update_changelog(changelog_path, pr_data):
123123
if validate_pr_description(pr["body"], is_not_for_cl_valid=False):
124124
category = extract_changelog_category(pr["body"])
125125
category = match_pr_to_changelog_category(category)
126-
body = extract_changelog_body(pr["body"])
126+
dirty_body = extract_changelog_body(pr["body"])
127+
body = dirty_body.replace("\r", "")
127128
if category and body:
128129
body += f" [#{pr['number']}]({pr['url']})"
129130
body += f" ([{pr['name']}]({pr['user_url']}))"
@@ -190,12 +191,13 @@ def fetch_user_details(username):
190191
try:
191192
pr_details = fetch_pr_details(pr["id"])
192193
user_details = fetch_user_details(pr_details["user"]["login"])
194+
name = user_details.get("name", None)
193195
if validate_pr_description(pr_details["body"], is_not_for_cl_valid=False):
194196
pr_data.append({
195197
"number": pr_details["number"],
196198
"body": pr_details["body"].strip(),
197199
"url": pr_details["html_url"],
198-
"name": user_details.get("name", pr_details["user"]["login"]), # Use login if name is not available
200+
"name": name or pr_details["user"]["login"], # Use login if name is not available
199201
"user_url": pr_details["user"]["html_url"]
200202
})
201203
except Exception as e:

.github/config/muted_ya.txt

Lines changed: 116 additions & 50 deletions
Large diffs are not rendered by default.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Assign a reviewer for documentation
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
assign-docs-reviewer:
9+
runs-on: ubuntu-latest
10+
if: contains(github.event.pull_request.body, '* Documentation') && !contains(github.event.pull_request.body, '* New feature')
11+
steps:
12+
- name: Assign a random documentation reviewer, excluding the PR author and busy members
13+
uses: actions/github-script@v7
14+
with:
15+
github-token: ${{ secrets.YDBOT_TOKEN }}
16+
script: |
17+
const teamSlug = "primary-docs-reviewers";
18+
const org = "ydb-platform";
19+
20+
// Get team members
21+
const teamMembers = await github.paginate("GET /orgs/{org}/teams/{team_slug}/members", {
22+
org,
23+
team_slug: teamSlug
24+
});
25+
if (teamMembers.length === 0) {
26+
core.setFailed("No team members found in the team.");
27+
}
28+
29+
// Get the PR author
30+
const prAuthor = context.payload.pull_request.user.login;
31+
32+
// Function to check if a user is busy:
33+
// It checks for "busy" in their status message OR if they have limitedAvailability set (checkbox).
34+
async function isBusy(login) {
35+
const query = `
36+
query($login: String!) {
37+
user(login: $login) {
38+
status {
39+
message
40+
indicatesLimitedAvailability
41+
}
42+
}
43+
}
44+
`;
45+
try {
46+
const result = await github.graphql(query, { login });
47+
const status = result.user.status;
48+
if (!status) return false;
49+
// Consider user busy if limitedAvailability is true or message contains "busy"
50+
return status.indicatesLimitedAvailability === true ||
51+
(status.message && status.message.toLowerCase().includes("busy"));
52+
} catch (error) {
53+
console.log(`Error checking status for ${login}: ${error}`);
54+
return false; // On error, assume not busy
55+
}
56+
}
57+
58+
// Filter out the PR author and busy members
59+
const availableMembers = [];
60+
for (const member of teamMembers) {
61+
if (member.login === prAuthor) {
62+
console.log(`Skipping the author ${member.login}.`);
63+
continue;
64+
}
65+
if (await isBusy(member.login)) {
66+
console.log(`Skipping ${member.login} as they appear busy.`);
67+
continue;
68+
}
69+
availableMembers.push(member);
70+
}
71+
72+
if (availableMembers.length === 0) {
73+
core.setFailed("No available team members after excluding PR author and busy members.");
74+
}
75+
76+
// Pick a random available member
77+
const randomIndex = Math.floor(Math.random() * availableMembers.length);
78+
const randomMember = availableMembers[randomIndex].login;
79+
80+
// Get the PR number from the event context
81+
const prNumber = context.payload.pull_request.number;
82+
// Assign the PR to the selected team member
83+
await github.rest.issues.addAssignees({
84+
owner: context.repo.owner,
85+
repo: context.repo.repo,
86+
issue_number: prNumber,
87+
assignees: [randomMember]
88+
});
89+
console.log(`Assigned PR #${prNumber} to ${randomMember}`);

.github/workflows/pr_labels.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request_target:
44
branches:
55
- 'main'
6+
- 'docs-**'
67
types:
78
- 'opened'
89
- 'edited'

.github/workflows/prewarm-debug.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
build_preset: ["relwithdebinfo", "release-asan", "debug"]
11+
build_preset: ["release", "relwithdebinfo", "release-asan", "debug"]
1212
runs-on: [ self-hosted, auto-provisioned, "${{ format('build-preset-{0}', matrix.build_preset) }}" ]
1313
name: Build and test ${{ matrix.build_preset }}
1414
steps:

.github/workflows/regression_whitelist_run.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
- build_preset: relwithdebinfo
2020
threads_count: 52
2121
timeout: 300
22-
build_target: "ydb/tests/sql/ ydb/tests/stress"
22+
build_target: "ydb/tests/sql/ ydb/tests/stress ydb/tests/functional/tpc ydb/tests/functional/benchmarks_init"
2323
test_size: small,medium,large
2424
test_type: unittest,py3test,py2test,pytest
2525
- build_preset: release-asan
2626
threads_count: 20
2727
timeout: 480
28-
build_target: "ydb/tests/sql/ ydb/tests/stress"
28+
build_target: "ydb/tests/sql/ ydb/tests/stress ydb/tests/functional/tpc ydb/tests/functional/benchmarks_init"
2929
test_size: small,medium,large
3030
test_type: unittest,py3test,py2test,pytest
3131
- build_preset: release-msan
@@ -37,7 +37,7 @@ jobs:
3737
- build_preset: release-tsan
3838
threads_count: 10
3939
timeout: 600
40-
build_target: "ydb/tests/sql/ ydb/tests/stress"
40+
build_target: "ydb/tests/sql/ ydb/tests/stress ydb/tests/functional/tpc ydb/tests/functional/benchmarks_init"
4141
test_size: small,medium
4242
test_type: unittest,py3test,py2test,pytest
4343

.github/workflows/validate_pr_description.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
branches:
1010
- main
11+
- stable-*
1112

1213
jobs:
1314
validate-pr-description:
@@ -16,6 +17,8 @@ jobs:
1617
steps:
1718
- name: Check out the repository
1819
uses: actions/checkout@v4
20+
with:
21+
ref: main
1922

2023
- name: Use custom PR validation action
2124
id: validate

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ __pycache__/
3333

3434
# MacOS specific
3535
.DS_Store
36+
*.dSYM
3637

3738
# clangd cache
3839
/.cache

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Unreleased
2+
3+
### Functionality
4+
* 15186:Increased the query text limit size in system views from 4 KB to 10 KB. [#15186](https://github.com/ydb-platform/ydb/pull/15186) ([spuchin](https://github.com/spuchin))
5+
6+
### Bug fixes
7+
* 15160:Fixed the issue of the transaction hanging if a user performs a control plane operation with a topic (for example, adding partitions or a consumer) and the PQ tablet moves to another node. The transaction is now completed successfully. [#15070](https://github.com/ydb-platform/ydb/issues/15070) [#15160](https://github.com/ydb-platform/ydb/pull/15160) ([Alek5andr-Kotov](https://github.com/Alek5andr-Kotov))

build/conf/autoincludes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
"devtools/ya",
33
"library/cpp/geo",
4-
"util"
4+
"util",
5+
"yql/essentials"
56
]
67

0 commit comments

Comments
 (0)