Skip to content

sync: report identifying config context on success and failure - #64

Merged
Odilhao merged 1 commit into
mainfrom
issue-63-sync-report-context
Aug 14, 2026
Merged

Odilhao merged 1 commit into
mainfrom
issue-63-sync-report-context

Conversation

@Odilhao

@Odilhao Odilhao commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

When sync fails partway through, the failure could not be traced back to the config entry that caused it, and neither report format confirmed which config file was even in play.

  • RepoResult/RepoEvent now carry the group name a repo belongs to, so same-named repos in different groups are distinguishable in a run's results.
  • The human-readable report's FAIL line now prints path and group, matching what the OK line already showed.
  • The live-progress line printed during a run now shows the actual error text on failure, not just the outcome word.
  • Identity/signing validation errors (e.g. a typo'd signing_method) are now wrapped with repo name, path, and group, so they're traceable without hand-bisecting the TOML.
  • Both report formats now state the resolved config file path used for the run, once per run.
  • --json output gains a group field per repo and a top-level config field — purely additive, no existing field renamed or removed.

Test plan

  • gofmt -l ., go vet ./..., go test ./... -race -count=1 -v all pass
  • New tests cover: group name propagation, a misconfigured signing_method producing a traceable error, the resolved config path appearing in both a successful and a failing report (for both sync and status), the FAIL line's path/group content, and the progress line's error text

Closes #63

RepoResult/RepoEvent now carry the group name a repo belongs to, so
two repos with the same name in different groups can be told apart
in a run's report. printReport's FAIL line prints path and group the
same way OK already does, and the live progress line prints the
actual error text on failure instead of just the outcome. Identity
validation errors (e.g. an invalid signing_method) are wrapped with
repo/group/path so a typo can be traced back to its config entry
without hand-bisecting the TOML. Both the human-readable and --json
reports state the resolved config file path used for the run, and
--json gains additive group/config fields.

Closes #63
@Odilhao
Odilhao merged commit ac50f97 into main Aug 14, 2026
3 checks passed
@Odilhao
Odilhao deleted the issue-63-sync-report-context branch August 14, 2026 03:06
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.

sync: report identifying config context (repo/group/config file) on success and failure

1 participant