Skip to content

Conversation

@serbel324
Copy link
Collaborator

@serbel324 serbel324 commented Dec 12, 2025

Changelog entry

Add ctor with named args for TEvPut, remove unsafe ctor.

Changelog category

  • Not for changelog (changelog entry is not required)

Copilot AI review requested due to automatic review settings December 12, 2025 14:10
@github-actions
Copy link

github-actions bot commented Dec 12, 2025

2025-12-12 14:11:06 UTC Pre-commit check linux-x86_64-relwithdebinfo for 24714fe has started.
2025-12-12 14:11:19 UTC Artifacts will be uploaded here
2025-12-12 14:12:40 UTC ya make is running...
🔴 2025-12-12 14:47:45 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

2025-12-12 14:11:31 UTC Pre-commit check linux-x86_64-release-asan for 24714fe has started.
2025-12-12 14:11:49 UTC Artifacts will be uploaded here
2025-12-12 14:15:18 UTC ya make is running...
🔴 2025-12-12 14:51:40 UTC Build failed, see the logs. Also see fail summary

@ydbot
Copy link
Collaborator

ydbot commented Dec 12, 2025

Run Extra Tests

Run additional tests for this PR. You can customize:

  • Test Size: small, medium, large (default: all)
  • Test Targets: any directory path (default: ydb/)
  • Sanitizers: ASAN, MSAN, TSAN
  • Coredumps: enable for debugging (default: off)
  • Additional args: custom ya make arguments

▶  Run tests

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

🟢 2025-12-12 14:16:37 UTC The validation of the Pull Request description is successful.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the TEvBlobStorage::TEvPut constructor API to use a named parameters pattern via a new TParameters struct, while maintaining backward compatibility through delegating constructors. The unsafe constructor with many positional parameters (including externalRelevanceWatcher) has been removed in favor of the more explicit TParameters approach.

  • Introduced TParameters struct with named fields for safer and more readable constructor calls
  • Refactored existing convenience constructors to delegate to the TParameters-based constructor
  • Updated test code to demonstrate the new usage pattern with named parameters

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
ydb/core/base/blobstorage.h Added TParameters struct and refactored TEvPut constructors to use it, removing the unsafe constructor with positional parameters
ydb/core/blobstorage/ut_blobstorage/cancellation.cpp Updated test to use the new TParameters constructor with named arguments for better clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

2025-12-12 15:24:26 UTC Pre-commit check linux-x86_64-release-asan for 9dc7baa has started.
2025-12-12 15:24:42 UTC Artifacts will be uploaded here
2025-12-12 15:26:54 UTC ya make is running...
🟡 2025-12-12 17:13:56 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
13476 13379 0 73 7 17

🟢 2025-12-12 17:14:04 UTC Build successful.
🟢 2025-12-12 17:14:35 UTC ydbd size 3.9 GiB changed* by +4.9 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 9885800 merge: 9dc7baa diff diff %
ydbd size 4 134 704 632 Bytes 4 134 709 688 Bytes +4.9 KiB +0.000%
ydbd stripped size 1 534 656 920 Bytes 1 534 656 472 Bytes -448 Bytes -0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Dec 12, 2025

2025-12-12 15:25:39 UTC Pre-commit check linux-x86_64-relwithdebinfo for 9dc7baa has started.
2025-12-12 15:25:56 UTC Artifacts will be uploaded here
2025-12-12 15:28:05 UTC ya make is running...
🟡 2025-12-12 17:42:37 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41903 38951 0 2 2918 32

2025-12-12 17:42:51 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-12-12 17:55:15 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
82 (only retried tests) 70 0 0 0 12

🟢 2025-12-12 17:55:23 UTC Build successful.
🟢 2025-12-12 17:55:47 UTC ydbd size 2.3 GiB changed* by -3.0 KiB, which is <= 0 Bytes vs main: OK

ydbd size dash main: 9885800 merge: 9dc7baa diff diff %
ydbd size 2 469 110 800 Bytes 2 469 107 744 Bytes -3.0 KiB -0.000%
ydbd stripped size 525 386 880 Bytes 525 385 792 Bytes -1.1 KiB -0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants