Repository navigation
fix: isolate sync tests and clarify ignore checks - #248
pedronauck merged 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughTwo tests are updated: the durability README test verifies index-independent gitignore commands, and the sync transport service test configures its home environment variable from the test environment. ChangesREADME Verification
Daemon Test Environment
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Filename | Overview |
|---|---|
| extensions/cy-capture-decisions/README.md | Documents complete ignore verification commands that work for tracked and untracked decision-log files. |
| extensions/cy-capture-decisions/packaging/readme_test.go | Checks both complete copy-and-paste verification commands, including their target paths. |
| internal/daemon/sync_transport_service_test.go | Scopes database resolution to the temporary test home before sync operations run. |
Reviews (2): Last reviewed commit: "fix: require complete ignore verificatio..." | Re-trigger Greptile
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@extensions/cy-capture-decisions/packaging/readme_test.go`:
- Around line 18-20: Wrap the verboseCheck assertion in the surrounding test
with a named t.Run subtest using the required “Should...” naming pattern,
keeping the existing command check and failure message unchanged inside the
subtest.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 114e0740-97a6-4313-80e8-64c735869035
⛔ Files ignored due to path filters (1)
extensions/cy-capture-decisions/README.mdis excluded by!**/*.md
📒 Files selected for processing (2)
extensions/cy-capture-decisions/packaging/readme_test.gointernal/daemon/sync_transport_service_test.go
Reverts six PRs that rode along on this branch but are independent of the Task Groups feature (verified: no task-group code depends on them): - compozy#234 cy-qa-workflow module + host.tasks.create v2 (extension SDK) - compozy#237 cy-capture-decisions extension - compozy#226 Kiro CLI ACP model handling - compozy#248 sync-test isolation (touched cy-capture-decisions) - compozy#252 release v0.2.15 prep - compozy#253 test-daemon reaping Kept the task-group-relevant infra: compozy#230 (multi-run recovery), compozy#236 (reviews-fix progress), compozy#241 (parallel task status), compozy#250 (task artifacts).
Summary
COMPOZY_HOMEgit check-ignore -v --no-indexso negation checks work for tracked and untracked decision-log filesRoot cause
The sync test injected a temporary
GlobalDB, butSyncDirectstill resolved its database through the ambientCOMPOZY_HOME. That made the test read a developer's real database and fail when its schema was newer than the checked-out binary.The follow-up review on #237 is partially correct:
-vcan show a matching negation rule for an untracked path, but Git omits already tracked paths unless--no-indexis supplied. The updated command is unambiguous in both states.Verification
make verify— PASSSummary by CodeRabbit