Skip to content

Fixed tests for RBO fallback info issue - #807

Merged
KirillKurdyukov merged 2 commits into
masterfrom
fix-values-read-issues
Dec 4, 2026
Merged

KirillKurdyukov merged 2 commits into
masterfrom
fix-values-read-issues

Conversation

@KirillKurdyukov

@KirillKurdyukov KirillKurdyukov commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

local-ydb:trunk now returns an extra INFO issue "Compilation with the new RBO failed" first, so issue asserts in table/query tests are shifted by one.

@KirillKurdyukov KirillKurdyukov changed the title Fixed ValuesReadTest for servers with informational issues Fixed tests for RBO fallback info issue Dec 3, 2026
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.16%. Comparing base (5d86a79) to head (b026337).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #807      +/-   ##
============================================
+ Coverage     76.06%   76.16%   +0.10%     
- Complexity     3886     3892       +6     
============================================
  Files           399      399              
  Lines         17251    17251              
  Branches       1825     1825              
============================================
+ Hits          13122    13140      +18     
+ Misses         3503     3493      -10     
+ Partials        626      618       -8     

☔ View full report in Codecov by Harness.
📢 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.

@pnv1 pnv1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[ИИ-ревью]

PR сдвигает индексы ожидаемых диагностик в пяти интеграционных тестах Query и Table, чтобы учесть сообщение о переходе на прежний оптимизатор.

Замечания (1)

Assert.assertEquals("#1060 Execution (S_WARNING)\n 15:1 - 15:1: "
+ "#2503 Given predicate is not suitable for used index: idx_value (S_WARNING)",
reader.getIssueList().get(0).toString()
reader.getIssueList().get(1).toString()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Medium Тест падает, когда сервер возвращает только ожидаемое предупреждение

Сервер добавляет INFO перед остальными сообщениями только при переходе на прежний оптимизатор. Если запрос сразу скомпилировался и вернул одно предупреждение об индексе, проверка на непустой список проходит, а get(1) бросает IndexOutOfBoundsException. До PR такой ответ проходил проверку с get(0). Прежние проверки падали при появлении INFO, а после сдвига индексов все пять тестов требуют её присутствия. Как сервер формирует список

Можно сохранить исходные проверки и перед ними исключать только запись с уровнем INFO, кодом 0 и префиксом Compilation with the new RBO failed: . Тогда оба варианта ответа пройдут, а тесты по-прежнему проверят ожидаемые предупреждения и ошибки. Такой фильтр в тестах YDB

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Хочется щас не городить доп логику, это надо делать со всеми подобными тестами с issues

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ну смотри сам. Прост конкретно эта проблема появилась в этом PR

@KirillKurdyukov
KirillKurdyukov merged commit 0a2a16c into master Dec 4, 2026
18 of 26 checks passed
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.

2 participants