Skip to content

Conversation

@SuperSandro2000
Copy link
Member

No description provided.

@majewsky majewsky changed the title Test Habor+ghcr.io error code special handling Test Harbor+ghcr.io error code special handling Dec 15, 2025
@SuperSandro2000 SuperSandro2000 marked this pull request as ready for review January 13, 2026 16:14
@SuperSandro2000 SuperSandro2000 requested a review from a team as a code owner January 13, 2026 16:14
Copy link
Contributor

@majewsky majewsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two nitpicks:

Comment on lines 115 to 118
var errStr strings.Builder
for _, e := range data.Errors {
errStr.WriteString(e.Error() + "; ")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This produces an extra trailing "; " at the end. Please use errext.ErrorSet and then errs.Join("; ").

Co-authored-by: Stefan Majewsky <[email protected]>
(cherry picked from commit d56dab0)
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/keppel/internal/api/registry 85.70% (ø)
github.com/sapcc/keppel/internal/client 44.66% (+1.52%) 👍
github.com/sapcc/keppel/internal/keppel 84.81% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/keppel/internal/client/auth_challenge.go 67.31% (+1.92%) 260 175 (+5) 85 (-5) 👍
github.com/sapcc/keppel/internal/client/repo_client.go 86.05% (+3.12%) 215 (+10) 185 (+15) 30 (-5) 👍
github.com/sapcc/keppel/internal/keppel/errors.go 91.84% (ø) 490 450 40

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/sapcc/keppel/internal/api/registry/replication_test.go

@majewsky majewsky merged commit 0a97bae into master Jan 14, 2026
6 checks passed
@majewsky majewsky deleted the test-habor branch January 14, 2026 16:35
majewsky added a commit that referenced this pull request Jan 15, 2026
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.

3 participants