test: replace late portfolio sleep with started and done barriers (WealthLedger/backend#63) #99
Closed
codex-bot
wants to merge 4 commits from
test/63-deterministic-source-races into refactor/62-remove-dead-sync-orchestration
pull from: test/63-deterministic-source-races
merge into: :refactor/62-remove-dead-sync-orchestration
:develop
:refactor/55-rub-only-squashed
:refactor/55-rub-only
:main
:release/2.4.1
No Reviewers
Labels
Clear labels
Kind/Dependencies
Kind/Investigation
Kind/Process
Kind/Refactor
audit/2026-10-11
kind/investigation
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Dependency update or dependency-management work
Research or decision required before implementation
Developer workflow, CI/CD, tooling, or process improvement
Internal code or configuration restructuring without new product behavior
Technical Audit Remediation — 2026-10-11
Нужна проверка evidence до решения; runtime-дефект не утверждается
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: WealthLedger/backend#99
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refs #63
Ветка основана на
refactor/62-remove-dead-sync-orchestration(PR #98): producer-only тесты уже удалены там. Этот PR нужно мержить после #98 (или перебазировать на develop после его мержа).Что изменено
tbank-local-reads(late portfolio after connection replacement): вместоdelay(20)и локального GET (который не запускает upstream) реальный producer запускается черезPortfolioService.request. Barrierstartedподтверждает, что upstream начат до замены соединения;late.done- барьер завершения вместо таймера.tbank-portfolio-publish(новый): контрольный тестPortfolioRepository.publishна реальной SQLite-транзакции для running attempt текущей revision.Что проверено
npm run verify: 40 suites, 268 tests, зелёные.npm run test:e2e: все SQLite suites зелёные.claimed-fence вpublishНЕ ловитсяtbank-local-reads.Ограничения (важно, #63 не закрывается этим PR)
publishпри устаревшем attempt написать нельзя: FKtbankSyncWork -> tbankConnectionи каскад изputне допускают состояния «работа есть, соединение с этим revision уже другое». Защита сейчас обеспечивается двумя слоями (каскадputиclaimed), и доказатьclaimedотдельно не получилось. Это надо решать отдельно (например, через инъекцию падения между репозиторными шагами).value-history,metadata,catalog,operations-sync,portfolio.service.spec) и rollback fault после первой Portfolio write в этом PR не сделаны.Closes.d5e6c3eb7btobf7414b800bf7414b800toefc13a9f67Pull request closed