1.9 KiB
1.9 KiB
Troubleshooting
Build And Test Failures
Symptom
dotnet build or dotnet test fails locally or in CI.
Checks
- Verify .NET 10 SDK is installed.
- Run
dotnet restore. - Run
dotnet format --verify-no-changes. - Re-run tests with
dotnet test CBDD.slnx -c Release.
Resolution
- Fix reported compile/test failures before merge.
- For flaky tests, isolate affected test class and open an issue with reproduction details.
Data File And Recovery Issues
Symptom
Database startup fails or recovery path throws WAL/storage errors.
Checks
- Capture exact exception and stack trace.
- Reproduce with storage/recovery-focused tests.
- Validate rollback path from
deployment.md.
Resolution
- Pin consumers to last known-good package.
- Apply fix and add regression coverage in recovery/transaction tests.
Query And Index Issues
Symptom
Unexpected query performance or incorrect query results.
Checks
- Verify relevant indexes are configured for query predicates.
- Reproduce with test cases in
tests/CBDD.Testsfor query/index modules. - Validate behavior for scan fallback and expression translation.
Resolution
- Add or adjust index definitions and query tests.
- Document any changed query semantics in release notes.
Source Generation Issues
Symptom
Generated mappers missing or serialization behavior differs from expectations.
Checks
- Verify entity attributes and accessibility are valid for source generation.
- Build solution to regenerate mapper output.
- Validate related tests in source generator test coverage.
Resolution
- Update entity annotations or generator logic.
- Add focused regression tests for unsupported pattern handling.
Escalation
If troubleshooting steps do not resolve the issue, follow incident escalation in runbook.md.