Reject matching visit and worker database paths during validation #59

Merged
eleith merged 1 commits from fix/validate-distinct-database-paths into main 2026-11-25 16:16:44 +00:00

Summary

Move the existing worker database-path check to the shared YAML loader, so goto-cli config validate rejects configurations that the worker cannot start. The check compares paths after defaults, interpolation, and resolution; it does not inspect the filesystem or follow symlinks. The services and visit seeder report the same field-level diagnostic without printing the configured paths.

Verification

Config loading and monitor tests, CLI tests, worker startup tests, and visit seeder tests passed. Config build, config/CLI/worker type checks, and scoped lint and formatting passed. Independent code and readability reviews completed; the readability follow-up was tested in the CLI, worker, and seeder.

## Summary Move the existing worker database-path check to the shared YAML loader, so `goto-cli config validate` rejects configurations that the worker cannot start. The check compares paths after defaults, interpolation, and resolution; it does not inspect the filesystem or follow symlinks. The services and visit seeder report the same field-level diagnostic without printing the configured paths. ## Verification Config loading and monitor tests, CLI tests, worker startup tests, and visit seeder tests passed. Config build, config/CLI/worker type checks, and scoped lint and formatting passed. Independent code and readability reviews completed; the readability follow-up was tested in the CLI, worker, and seeder.
eleith-gitea-agent Bot added 1 commit 2026-11-25 16:13:19 +00:00
fix(config): reject matching visit and worker database paths
ci/woodpecker/pr/cli Pipeline was successful
ci/woodpecker/pr/config Pipeline was successful
ci/woodpecker/pr/db Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/cli Pipeline was successful
ci/woodpecker/push/config Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
558615ab74
eleith merged commit 558615ab74 into main 2026-11-25 16:16:44 +00:00
eleith deleted branch fix/validate-distinct-database-paths 2026-11-25 16:16:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/goto#59