Skip to content

Стабилизировать нестабильные тесты (аллокации backup, ожидание процесса) - #504

Merged
github-actions[bot] merged 2 commits into
developerfrom
fix/backup-allocation-test-flaky
Nov 22, 2026
Merged

github-actions[bot] merged 2 commits into
developerfrom
fix/backup-allocation-test-flaky

Conversation

@endercodezz

Copy link
Copy Markdown
Owner

Closes #503

Что сделано

  • Тесты, которые меряют аллокации (BackupBufferTests, BackupCopyTests), выполняются в непараллельной коллекции AllocationMeasurements.
  • Сравнение экспорта с прежней реализацией берёт минимум из трёх замеров: единичный прогон мог потерять прогретый буфер ArrayPool.Shared. Порог не ослаблен.

Как проверено

  • scripts/check.sh с BYDLO_SAFE_DEV=1 и -warnaserror: 1808 пройдено, 11 пропущено, 0 ошибок.

Run allocation-measuring tests in a non-parallel collection and compare
the best of three runs, so a pool trim or a parallel renter no longer
fails the export comparison. Thresholds are unchanged.

Closes #503
SessionSecretsCleanupTests crashed runner.Last after Task.Delay(100); on
a slow runner the process was not started yet and the test failed with a
null reference. Wait for the condition like the neighbouring tests do.
@endercodezz endercodezz changed the title Стабилизировать тест аллокаций экспорта backup Стабилизировать нестабильные тесты (аллокации backup, ожидание процесса) Nov 22, 2026
@github-actions
github-actions Bot merged commit b1aef74 into developer Nov 22, 2026
29 checks passed
@github-actions
github-actions Bot deleted the fix/backup-allocation-test-flaky branch November 22, 2026 02:23
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.

1 participant