Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
395 commits
Select commit Hold shift + click to select a range
90f2fba
Use batch pool for transfer (#23390)
nshestakov Aug 22, 2025
0b3169d
fix do retries for the scheme error on the bulk upload (#23458)
nshestakov Aug 25, 2025
021679e
Fixed the race between creating a reading session and destroying the …
nshestakov Aug 25, 2025
f1d347f
25-1: Retry `OperationAborted` error, common retry function (#23473)
CyberROFL Aug 25, 2025
00dad16
Skip false positive msan for CancelAfterRoTxWithFollowerStreamLookupD…
Hor911 Aug 25, 2025
f55c8bb
Fix potential max thread count in actor system (#23422)
kruall Aug 25, 2025
6763010
Set default for EnableTableDatetime64 to true.
spuchin Aug 25, 2025
9e7221b
Enable CDC support for topic data handler (#23127) (#23213)
FloatingCrowbar Aug 25, 2025
e4921d7
Bugfix of the transfer (#23487)
nshestakov Aug 25, 2025
9f23e76
[OLAP] Disable Olap aggregate pushdown by default (#22977)
denis0x0D Aug 20, 2025
14ba6d6
YQ-4569 fixed federated queries providers registration (#23491)
GrigoriyPA Aug 25, 2025
f7e26bf
Set default for EnableTableDatetime64 to true. (#23498)
spuchin Aug 25, 2025
0576464
move feature flag (#23469)
xyliganSereja Aug 25, 2025
ad73b9d
fix merge conflict
Aug 25, 2025
bcc6b60
merge to stable-25-1 YQ-4569 fixed external sources feature flags che…
maximyurchuk Aug 25, 2025
273cc34
Sync branches 250826-0051
ydbot Aug 26, 2025
cf4a304
[stable-25-1] Fix potential max thread count in actor system (#23495)
kruall Aug 26, 2025
48ca774
Fix RENAME TABLE on reboot (#23533)
zverevgeny Aug 26, 2025
0f95db5
Skip false positive msan test (#23493)
Hor911 Aug 26, 2025
51f4cb6
Fix RENAME TABLE on reboot to 25.1 (#23533) (#23555)
maximyurchuk Aug 26, 2025
4e52ed2
Add seed nodes option to ydbd (#19344)
mregrock Aug 20, 2025
756a2f8
reserve flag (#23546)
xyliganSereja Aug 26, 2025
4c7729a
fix merge conflict
Aug 26, 2025
02290e2
[C++ SDK] Improved wide date types
Gazizonoki Aug 19, 2025
e87e439
fix
Gazizonoki Aug 19, 2025
fa47abc
fix
Gazizonoki Aug 19, 2025
286a1c5
fix
Gazizonoki Aug 20, 2025
c794162
fix
Gazizonoki Aug 20, 2025
e96d300
Replace duration to time_point for timestamp types
Gazizonoki Aug 20, 2025
47c5e64
Fix date print in viewer
Gazizonoki Aug 22, 2025
31415c6
rename flag (#23602)
xyliganSereja Aug 26, 2025
d71d869
move feature flag (#23469) (#23522)
maximyurchuk Aug 27, 2025
33251c2
Add seed nodes option to ydbd (#19344) (#23233)3
maximyurchuk Aug 27, 2025
d022d46
mute viewer tests
iddqdex Aug 27, 2025
13f44ff
mute viewer tests (#23618)
iddqdex Aug 27, 2025
f7c8171
mute test_alter_compression.py.TestAlterCompression.test[alter_compre…
iddqdex Aug 27, 2025
8de24f6
[OLAP] Add table service config flag to enable push down aggregate (#…
denis0x0D Aug 27, 2025
561101e
Add a test for vector index query with a variable of an optional type
vitalif Aug 21, 2025
6741448
Fix rewriting TCoTop keySelector lambda for the case without Unwrap()
vitalif Apr 29, 2025
62253de
init
naspirato Aug 27, 2025
c95db78
[KQP] Tests for AddColumsWithDefaults (#23067, without simple_queue)
dahbka-lis Aug 27, 2025
1aed0ef
use `body` instead of `content` field
ubyte Aug 26, 2025
120ed09
[KQP] New tests and fixes for DefaultFromLiteral building columns (#2…
dahbka-lis Aug 27, 2025
005d71b
mute test_alter_compression.py.TestAlterCompression.test[alter_compre…
iddqdex Aug 27, 2025
adfd68b
fixed loop on retryable error on target discovery (#23565)
nshestakov Aug 27, 2025
847bea3
fixed added the alias "active" to "standby" (#23480)
nshestakov Aug 25, 2025
d92cdf3
Merge new mute rules to stable (stable-25-1) (#23643)
naspirato Aug 27, 2025
c7848bf
Don't use optional::transform
ubyte Aug 27, 2025
14eb919
[25-1] Fix #17746 - rewriting TCoTop keySelector lambda for some case…
vitalif Aug 27, 2025
62c7bf0
EvWrite: Overloaded (#22615)
nikvas0 Aug 27, 2025
68d4450
Replica nodes addition TopicMetadata response (#23591)
nerhneiro Aug 27, 2025
b5e1718
Topic metadata nodes addition main (#23646)
nerhneiro Aug 27, 2025
66d3792
[25.1] Fix cancellation and (u)int16 types for AddColumsWithDefaults …
dahbka-lis Aug 27, 2025
ca2dd17
fix
nikvas0 Aug 27, 2025
5651ef7
Bugfix of the transfer (#23650)
nshestakov Aug 27, 2025
17910d8
return an error and deny access if the POST content unexpectedly term…
ubyte Aug 27, 2025
df9270f
Sync branches 250828-0050
ydbot Aug 28, 2025
e226136
Replica nodes addition TopicMetadata response (#23661)
nerhneiro Aug 28, 2025
596b468
fix
nikvas0 Aug 28, 2025
06de10f
Infinity retries for retriable errors for write to table (#23682)
nshestakov Aug 28, 2025
575c4ea
Update muted_ya.txt in stable-25-1 (#23258)
ydbot Aug 28, 2025
8fa41b8
Topic compactification fix and tests
FloatingCrowbar Aug 28, 2025
4653cf3
[stable-25-1] EvWrite Overloaded (#23660)
nikvas0 Aug 28, 2025
1f09e3f
Fixed StartProducerWithCDSAndPreferUnknownCluster test (#17585)
nshestakov Apr 23, 2025
0d0f355
Infinity retries for retriable errors for write to table (#23682) (#2…
nshestakov Aug 28, 2025
114485a
Fixed StartProducerWithCDSAndPreferUnknownCluster test (#17585) (#23710)
nshestakov Aug 28, 2025
45cc6e7
fix regression run naming (whitespaces) (#16086)
naspirato Mar 22, 2025
1c3fb14
stable-25-1: fix regression run naming (whitespaces) (#23727)
maximyurchuk Aug 28, 2025
d71593b
fixed YT provider state leak
Aug 26, 2025
e950c98
Topic compactification fix and tests (#23693)
FloatingCrowbar Aug 28, 2025
48c709e
Fix uninitialized memory in TEvNextValResult and TEvGetSequenceResult…
Copilot Aug 28, 2025
a759d90
Fix uninitialized memory in TEvNextValResult (#23749)
gridnevvvit Aug 28, 2025
36fce0f
Sync branches 250829-0050
ydbot Aug 29, 2025
8d01cf5
merge to stable-25-1 YQ-4558 fix YT state leak (#23746)
GrigoriyPA Aug 29, 2025
5d0947e
[docs] backport #19307 and #20611 to stable-25-1 (#22745)
blinkov Aug 29, 2025
f9572e0
[KQP] Fix flaky tests for BATCH operations with gvit's single partiti…
dahbka-lis Aug 29, 2025
bcffd41
Merge fix
dahbka-lis Aug 29, 2025
e85cdde
Test cs simple reader: many changes with no compaction (#22574)
kirillvasilenko Aug 15, 2025
e4b76b3
Fixing slow UPDATES for Column Tables (#23689)
kirillvasilenko Aug 28, 2025
a4c3a54
Codec addition in fetch actor (#23779)
nerhneiro Aug 29, 2025
973ea75
make metadata response be sent after topic response is recieved
Aug 29, 2025
cd347eb
add required response
Aug 29, 2025
86de312
fix Pending requests flag
Aug 29, 2025
95d9fc9
Yql fixes from main to 25 1 (#23333)
Hor911 Aug 29, 2025
c65004d
[25.1] Fix support BATCH ranges in the virtual table partitioning (#2…
dahbka-lis Aug 29, 2025
84fe1f7
Fix ignored messages on CS table rename (#23765)
zverevgeny Aug 29, 2025
5f55c6b
Codec addition in fetch actor (#23800)
nerhneiro Aug 29, 2025
8fc8e63
Make metadata response be sent after topic response is received (#23802)
nerhneiro Aug 29, 2025
780b76b
[Olap] Disable aggregate push down by default (#23488)
denis0x0D Aug 29, 2025
b4e8cbf
Fix slow updates (#23794)
kirillvasilenko Aug 29, 2025
0ecaa86
Fix ignored messages on CS table rename to 25.1 (#23810)
zverevgeny Aug 29, 2025
67c726d
fixed viewer build due to old libc++
Gazizonoki Aug 29, 2025
b5d365a
Sync branches 250830-0050
ydbot Aug 30, 2025
7518ce5
Cherry-pick: [C++ SDK] Improved wide date types (#23593)
Gazizonoki Aug 30, 2025
f005da3
Sync branches 250831-0051
ydbot Aug 31, 2025
502256c
compaction and other fixes (#23548)
dorooleg Aug 30, 2025
70962e8
subscribe on overload has been tmp fixed (#23757)
dorooleg Aug 30, 2025
068d9ac
subscribe on overload has been fixed (#23841)
dorooleg Aug 31, 2025
ca69c08
CS flags 2
dorooleg Sep 1, 2025
0ef5854
write
nikvas0 Sep 1, 2025
efa5514
Cs fixes stable 25 1 (#23898)
dorooleg Sep 1, 2025
6919184
CS flags 2 (#23902)
dorooleg Sep 1, 2025
c6898a5
[prestable-25-2] Enable OLAP RW (#23904)
nikvas0 Sep 1, 2025
9ec9959
add health check overload shard hint (#14416)
adameat Mar 12, 2025
d41c8a7
stable-25-2: initial commit (#23923)
maximyurchuk Sep 2, 2025
e664f54
add health check overload shard hint (#14416) (#23917)
adameat Sep 2, 2025
9d9c913
Rollback transaction fix (#23628)
XJIE6 Aug 30, 2025
ccb0b21
Rollback transaction fix (#23628) (#23967)
XJIE6 Sep 2, 2025
24f0847
Enable transfer for all binaries
nshestakov Sep 2, 2025
a7ee5bb
Fix limit without deduplication (#23676)
Vladilen Sep 2, 2025
ab9c641
Enable transfer for all binaries (#23983)
nshestakov Sep 2, 2025
5e0d365
Transaction race fix (#23819)
XJIE6 Sep 2, 2025
edae650
Fix limit without deduplication (#23676) (#23988)
Vladilen Sep 3, 2025
80c33a2
Transaction race fix (#23819) (#24004)
XJIE6 Sep 3, 2025
dd50b86
fix deduplication context destruction (#23908)
swalrus1 Sep 3, 2025
aeab0e9
fix DatabasePath
Sep 3, 2025
eb2000e
Fix huge blob scrubbing logic
alexvru Sep 3, 2025
894903d
Process reseve requests when OutOfSpace changed (#23941)
nshestakov Sep 2, 2025
5e61d7c
fix for access denied in /viewer/capabilities handler (#24030)
adameat Sep 3, 2025
4c36998
Change DatabasePath in TKqpTxHelper. (#24046)
alexnick88 Sep 3, 2025
bfa961b
Process reseve requests when OutOfSpace changed (#23941) (#24068)
nshestakov Sep 3, 2025
738306d
compaction settings improvement (#23995)
dorooleg Sep 3, 2025
c6e5432
gml optimizations and fixes (#23948)
dorooleg Sep 3, 2025
997c5a4
Fix huge blob scrubbing logic (#24057)
serbel324 Sep 3, 2025
6042e12
fix for access denied in /viewer/capabilities handler (#24030) (#24078)
adameat Sep 3, 2025
8b3f48b
Stable 25 2 gml comp fixes (#24083)
dorooleg Sep 3, 2025
4fd2f9b
Decrease WriteInflightSize when replied with error (#24075)
nshestakov Sep 3, 2025
41a9b29
@ydb-platform/ci as codeowner for /.github
maximyurchuk Sep 3, 2025
d4dee14
fix
maximyurchuk Sep 3, 2025
793e4ff
Decrease WriteInflightSize when replied with error (#24075) (#24095)
nshestakov Sep 4, 2025
bc86194
@ydb-platform/ci as codeowner for /.github in stables (#24122)
maximyurchuk Sep 4, 2025
9e4585b
fix deduplication context destruction (#23908) (#24038)
swalrus1 Sep 4, 2025
40a3a2c
disable asan test of prototype spilling
lll-phill-lll Sep 3, 2025
3ea97c1
fix for pr body limit (#24089)
naspirato Sep 3, 2025
067f084
[Stable-25-2] Disable asan test of prototype spilling (#24165)
lll-phill-lll Sep 4, 2025
0f92ed4
stable-25-2: fix for pr body limit (#24170)
naspirato Sep 4, 2025
d7b864d
CTAS: more tests (#22408)
nikvas0 Aug 6, 2025
2b320dd
Better error text (#23582)
nikvas0 Aug 27, 2025
105254f
Test for CTAS with params & named expressions (#23632)
nikvas0 Aug 27, 2025
5cae6db
Fix write actor config update (#23690)
nikvas0 Aug 29, 2025
f0b92a3
Fix CTAS Database (#23915)
nikvas0 Sep 2, 2025
69020b4
Fix error text (#23953)
nikvas0 Sep 3, 2025
7b5a382
Fixed #23771 (#23958)
nikvas0 Sep 3, 2025
68927d9
Fixed memory leak in tests (#24177)
nshestakov Sep 4, 2025
7b33451
Fixed memory leak in tests (#24177) (#24186)
nshestakov Sep 4, 2025
becb5e2
Do not create a block kernel for binary op with same column (#19087)
denis0x0D Jul 28, 2025
215b8af
Do not create a block kernel for binary op with same column (#19087)
denis0x0D Jul 28, 2025
a5dba60
Stable-25-2 issue 23561 (#24224)
xyliganSereja Sep 4, 2025
bb1f3f0
Remove duplicated checks (#24200)
nshestakov Sep 5, 2025
37df881
Remove duplicated checks and correct decrease WriteInflightSize (#242…
nshestakov Sep 5, 2025
c5b4da5
Don't allow SetActivityType after actor registration (#24205)
snaury Sep 5, 2025
80b43d6
space watcher memory leak has been fixed (#24042)
dorooleg Sep 4, 2025
23c909e
Data race has been fixed between two TEvProposeTransaction (#24088)
dorooleg Sep 5, 2025
09de1d6
AddVersion validation has been improved (#24150)
dorooleg Sep 5, 2025
3e4e8c8
RunDropTable has been fixed (#24151)
dorooleg Sep 5, 2025
d76fdf6
batch size limitation has been supported (#24213)
dorooleg Sep 5, 2025
ed4a218
Fixed CPU limiting in composite conveyor
GrigoriyPA Sep 5, 2025
9a04691
Fixed processing kafka batch v0 with many messages
nshestakov Sep 5, 2025
95ae5dc
25-2: Don't allow SetActivityType after actor registration (#24238)
snaury Sep 5, 2025
4664926
[Stable-25-2] Fixes for OLAP (#24180)
nikvas0 Sep 5, 2025
0f7f083
Don't allow StaleRO/OnlineRO for Olap (#24064)
nikvas0 Sep 5, 2025
a063939
Fix tests crash (#24203)
nikvas0 Sep 5, 2025
b004a7b
Fix #24146 (#24253)
nikvas0 Sep 5, 2025
ae43896
Stable 25 2 fixes (#24260)
dorooleg Sep 5, 2025
ea0aa3f
Fix race in ICB (#24251)
SammyVimes Sep 5, 2025
2723e99
Fixed processing kafka batch v0 with many messages (#24281)
nshestakov Sep 5, 2025
40ec576
merge to stable-25-2 YQ-4639 fixed CPU limiting in composite conveyor…
GrigoriyPA Sep 5, 2025
e601d32
[Stable-25-2] olap fixes (#24284)
nikvas0 Sep 5, 2025
f7d0dc9
Fix race in ICB (#24288)
SammyVimes Sep 5, 2025
b457050
Unpoison trace id to prevent false msan alert (#24282)
alexvru Sep 5, 2025
44cbbff
Optimized message serialization on each board update in discovery cac…
Gazizonoki Sep 5, 2025
f05ef0a
Cherry-pick: Optimized message serialization on each board update in …
Gazizonoki Sep 5, 2025
61a8bfe
Unpoison trace id to prevent false msan alert (merge from main #24282…
alexvru Sep 5, 2025
dfb9fe8
add new key to Context
Sep 4, 2025
599b385
resolve .metadata tables paths
Sep 5, 2025
8c28111
make ResourceDatabasePath by default be equal to DatabasePath
Sep 5, 2025
b8e6737
security: change clusteradmin weak check
ijon Sep 4, 2025
e512b31
25-2: security: change clusteradmin weak check (#24339)
ijon Sep 6, 2025
e63b0c9
Deleted information about S3 tiering
anton-bobkov Sep 8, 2025
d26d231
make wakeup callback thread safe (#24344)
lll-phill-lll Sep 7, 2025
bfe243c
[Stable-25-2] Make spilling wakeup callback thread safe (#24394)
lll-phill-lll Sep 8, 2025
412f04e
fix duplication filter building (#22808)
ivanmorozov333 Aug 15, 2025
746630f
Fix skiping visible uncommitted changes in duplicates manager (#23087)
zverevgeny Aug 20, 2025
6f77028
identify intersections by rows in deduplication (#24072)
swalrus1 Sep 8, 2025
6300d10
25-2: Optimized message serialization on each board update in discove…
Gazizonoki Sep 8, 2025
2a943ba
Fixed possible verify (#24422)
nshestakov Sep 8, 2025
7eb501f
Fixed unauthorized unswer for request with local proxy (#24417)
nshestakov Sep 9, 2025
e43dc95
bring TBackoff
nshestakov Sep 9, 2025
af97340
Update muted_ya.txt
swalrus1 Sep 9, 2025
a45a541
[-] shared ownership of DeletedKeys
Alek5andr-Kotov Sep 9, 2025
8abdee3
Transfer fixes (#24464)
nshestakov Sep 9, 2025
a7e5701
add check database and tenant name for tests and one node bases
Sep 8, 2025
0b6c401
add initialization for storage nodes fix
Sep 8, 2025
cb4ba3d
Revert "add initialization for storage nodes fix"
Sep 8, 2025
bef4c16
add tables initialization for storage nodes fix
Sep 8, 2025
07ec235
turn off RedirectRequired flag
Sep 8, 2025
adba460
fix incorrect kqp session creation
Sep 8, 2025
f4f684c
remove extra line
Sep 9, 2025
2d8baea
remove surplus variable, better indents
Sep 9, 2025
f70d849
rename request state
Sep 9, 2025
e6b2b42
Shared ownership of DeletedKeys (#24469)
Alek5andr-Kotov Sep 9, 2025
3652e3e
CTAS Datashard flag (#24440)
nikvas0 Sep 9, 2025
d49031f
disable-flag
nikvas0 Sep 9, 2025
db7bf3e
Update muted_ya.txt
swalrus1 Sep 9, 2025
b260182
resolve bug with tables creation
Sep 9, 2025
53f322c
add path canonization
Sep 9, 2025
39815c2
fix
nikvas0 Sep 9, 2025
f8cdd63
move canonization
Sep 9, 2025
3402933
fix error
Sep 9, 2025
83cad9a
cs deduplication optimization (#24431)
swalrus1 Sep 9, 2025
a343825
added shared mutex #24149 (#24286)
xyliganSereja Sep 9, 2025
28a43e7
revert
Sep 9, 2025
029cfe0
create fix for tests
Sep 9, 2025
a49e5db
Fix race 25 2 (#24524)
xyliganSereja Sep 9, 2025
612c1e3
Fix kafka api read bug static nodes (#24335)
alexnick88 Sep 10, 2025
ff5e97b
Fixed BaseTimestamp and BaseOffset values of kafka batch
nshestakov Sep 10, 2025
4f08375
Fixed BaseTimestamp and BaseOffset values of kafka batch (#24545)
nshestakov Sep 10, 2025
c124d19
Fix database for native kafka balancing
nshestakov Sep 10, 2025
1bc8f2a
[Stable-25-2] CTAS oltp flag (#24482)
nikvas0 Sep 10, 2025
5c8a5d0
more fixes
nshestakov Sep 10, 2025
7270a2a
Increase query service default query timeout to 2h. (#24456)
spuchin Sep 10, 2025
b8cda6f
Update muted_ya.txt in stable-25-2 (#24125)
ydbot Sep 10, 2025
ff63cb3
Fix database for native kafka balancing (#24576)
nshestakov Sep 10, 2025
ff8dd51
[NBS] Actualize config (#24454)
ya-ksgamora Sep 10, 2025
c2e480f
Fixed possible not utf8 metric name
nshestakov Sep 10, 2025
eb747bc
Fixed possible not utf8 metric name (#24611)
nshestakov Sep 10, 2025
64ac5fe
Expanded constant folding to hide the problem with If pushdown into C…
pavelvelikhov Sep 10, 2025
1f47033
Increase query service default query timeout to 2h. (#24456) (#24581)
maximyurchuk Sep 10, 2025
34de5fc
Expanded constant folding to hide the problem with If pushdown into C…
pavelvelikhov Sep 10, 2025
eb2e243
Validate shard lists on write in CS (#23586)
zverevgeny Aug 27, 2025
53f0833
TEvInternalScan::ToString for investigation (#23843)
zverevgeny Sep 1, 2025
bb7aa92
Fix concurrent duplicate keys insertions (#23575)
zverevgeny Sep 5, 2025
cde02a1
Send dst path for renamed column tables (#24287)
zverevgeny Sep 6, 2025
1c324c9
Switch CS to DS TEvCancelTransactionProposal (#24345)
zverevgeny Sep 7, 2025
5cf272b
Fail commit to renamed CS table (#24366)
zverevgeny Sep 9, 2025
6cd4f35
Check read locks for rename (#24595)
zverevgeny Sep 10, 2025
2c19c6f
fix ut build
zverevgeny Sep 11, 2025
07329f7
Do not mix scalar and block HashShuffle connections (#24033)
abyss7 Sep 8, 2025
9a1e1bc
Fix build
abyss7 Sep 11, 2025
2af0ab6
Cs tx changes to 25.2 (#24652)
zverevgeny Sep 11, 2025
f35c0f0
[NBS] Actualize config (#24454) (#24607)
maximyurchuk Sep 11, 2025
36d55b2
Fixed double closing of the read session
nshestakov Sep 11, 2025
88a6a0d
Turned off hash propagation when shuffle elimination is off
Sep 11, 2025
1513407
Fixed double closing of the read session (#24716)
nshestakov Sep 11, 2025
fdf4c1f
Turned off hash propagation when shuffle elimination is off (#24724)
pavelvelikhov Sep 11, 2025
3d6c69c
Deleted information about S3 tiering (#24382)
CyberROFL Sep 12, 2025
33b0569
Enable EnableTopicCompactificationByKey
nshestakov Sep 12, 2025
1c9de78
Do not mix scalar and block HashShuffle connections (#24033) (#24665)
abyss7 Sep 12, 2025
1ca7da4
mute
nshestakov Sep 12, 2025
32b712e
Enable EnableTopicCompactificationByKey (#24766)
nshestakov Sep 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* @ydb-platform/ReleaseApprovers
* @ydb-platform/ReleaseApprovers
/.github @ydb-platform/ci
130 changes: 59 additions & 71 deletions .github/config/muted_ya.txt

Large diffs are not rendered by default.

68 changes: 63 additions & 5 deletions .github/scripts/create_or_update_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,77 @@ def read_body_from_file(file_path):
return file.read()


def get_body_content(body_input):
def create_gist_for_large_content(content, github_token, title="PR Body Content"):
"""Creates a GitHub gist for large content and returns the gist URL."""
from github import Github

g = Github(github_token)

# Create gist with the full content
gist = g.get_user().create_gist(
public=False,
files={
f"{title}.md": {
"content": content
}
},
description=f"Large content for {title}"
)

print(f"Created gist: {gist.html_url}")
return gist.html_url


def get_body_content(body_input, github_token=None):
"""Determines if the body content is a file path or direct text."""
if os.path.isfile(body_input):
print(f"Body content will be read from file: {body_input}.")
return read_body_from_file(body_input)
content = read_body_from_file(body_input)
else:
print(f"Body content will be taken directly: '{body_input}.'")
return body_input
content = body_input

# GitHub has a 65,536 character limit for PR body, so we use half of it to leave some space for the summary and closed issues
MAX_BODY_LENGTH = 65536 // 2

if len(content) > MAX_BODY_LENGTH:
print(f"Warning: PR body content is {len(content)} characters, exceeding GitHub's limit of {MAX_BODY_LENGTH}")

if github_token:
print("Creating GitHub gist for large content...")
gist_url = create_gist_for_large_content(content, github_token, "Muted Tests Update Details")

# Create a summary body with link to gist
summary_content = f"""# Muted tests update

This PR contains a large number of test changes. Full details are available in the [GitHub Gist]({gist_url}).

## Summary
- **Total content size**: {len(content):,} characters
- **Content type**: Muted tests update details
- **Full details**: [View complete details in Gist]({gist_url})

---
*This summary was automatically generated due to content size limitations.*"""

print(f"Created summary body with gist link: {len(summary_content)} characters")
return summary_content
else:
print("No GitHub token available for gist creation. Truncating content...")
# Fallback to truncation if no token
truncation_notice = "\n\n---\n**Note: Content truncated due to length limits. See workflow logs for full details.**"
available_length = MAX_BODY_LENGTH - len(truncation_notice)
content = content[:available_length] + truncation_notice
print(f"Truncated content to {len(content)} characters")

return content


def create_or_update_pr(args, repo):
current_pr = None
pr_number = None
body = get_body_content(args.body)
github_token = os.getenv('GITHUB_TOKEN')
body = get_body_content(args.body, github_token)

owner = repo.owner.login
head_format = f"{owner}:{args.branch_for_pr}"
Expand Down Expand Up @@ -55,7 +112,8 @@ def create_or_update_pr(args, repo):


def append_to_pr_body(args, repo):
body_to_append = get_body_content(args.body)
github_token = os.getenv('GITHUB_TOKEN')
body_to_append = get_body_content(args.body, github_token)

print(f"Looking for PR by number: {args.pr_number}")
pr = repo.get_pull(args.pr_number)
Expand Down
Loading
Loading