Skip to content

Conversation

@kprokopenko
Copy link
Collaborator

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Other information

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

summary

Inferred base version: v3.121.0
Suggested version: v3.121.1

@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 94.44444% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.91%. Comparing base (65ead76) to head (492f487).

Files with missing lines Patch % Lines
...rnal/topic/topicreaderinternal/batch_tx_storage.go 92.50% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1968      +/-   ##
==========================================
- Coverage   73.92%   73.91%   -0.02%     
==========================================
  Files         394      395       +1     
  Lines       34454    34498      +44     
==========================================
+ Hits        25471    25500      +29     
- Misses       7855     7866      +11     
- Partials     1128     1132       +4     
Flag Coverage Δ
experiment 73.59% <94.44%> (+0.01%) ⬆️
go-1.21.x 72.65% <94.44%> (-0.03%) ⬇️
go-1.25.x 73.88% <94.44%> (-0.04%) ⬇️
integration 54.96% <90.74%> (-0.19%) ⬇️
macOS 47.35% <92.59%> (+0.05%) ⬆️
ubuntu 73.91% <94.44%> (-0.02%) ⬇️
unit 47.35% <92.59%> (+0.04%) ⬆️
windows 47.33% <92.59%> (+0.04%) ⬆️
ydb-24.4 54.10% <90.74%> (-0.01%) ⬇️
ydb-25.2 54.75% <90.74%> (-0.01%) ⬇️
ydb-latest 54.58% <90.74%> (-0.20%) ⬇️
ydb-nightly 73.59% <94.44%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kprokopenko kprokopenko marked this pull request as ready for review December 8, 2025 10:42
@kprokopenko kprokopenko added the SLO label Dec 8, 2025
@kprokopenko kprokopenko requested a review from rekby December 8, 2025 12:52
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

🌋 SLO Test Results

Status: 🟡 6 workloads tested • 3 workloads with warnings

Workload Metrics Regressions Improvements Links
🟢 native-table-over-query-service 8 1 0 ReportCheck
🟢 native-query 8 0 0 ReportCheck
🟡 native-bulk-upsert 8 0 0 ReportCheck
🟡 database-sql-table 8 0 0 ReportCheck
🟢 native-table 8 0 0 ReportCheck
🟡 database-sql-query 8 0 0 ReportCheck

Generated by ydb-slo-action

@github-actions github-actions bot removed the SLO label Dec 8, 2025

req := r.createUpdateOffsetRequest(ctx, batch, tx)
updateOffsetInTransactionErr := retry.Retry(ctx, func(ctx context.Context) (err error) {
if r.batchTxStorage.Add(tx, batch) {
Copy link
Member

Choose a reason for hiding this comment

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

непонятное для чтения


tx.OnBeforeCommit(r.txBeforeCommitFn(tx))

tx.OnCompleted(func(err error) {
Copy link
Member

Choose a reason for hiding this comment

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

Получится тоже вынести в отдельный метод?

po := &partitionOffsets[i]
info, ok := sessionInfoMap[po.PartitionSessionID]
if !ok {
// Skip if session info not found (should not happen in normal flow)
Copy link
Member

Choose a reason for hiding this comment

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

Вот тут тогда надо кидать ошибку, чтобы не скрывать внутренние ошибки если они появятся.

пропущенный коммит отлаживать будет заметно сложнее, чем явную ошибку.

)

type BatchTxStorageTestSuite struct {
suite.Suite
Copy link
Member

Choose a reason for hiding this comment

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

Нужны ли тут suite? этот способ запуска тестов новый для go sdk

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants