Skip to content

Comments

fix(dvcr): improve importer logging#2016

Open
hardcoretime wants to merge 1 commit intomainfrom
fix/dvcr/improve-importer-logging
Open

fix(dvcr): improve importer logging#2016
hardcoretime wants to merge 1 commit intomainfrom
fix/dvcr/improve-importer-logging

Conversation

@hardcoretime
Copy link
Contributor

@hardcoretime hardcoretime commented Feb 20, 2026

Description

  • Ensure upload layer errors are not missed.
  • Wrap "DVCR is out of space" error.

Why do we need it, and what problem does it solve?

This is required to improve user experience because the current message is not clear enough to indicate that DVCR is out of space.

What is the expected result?

When DVCR is out of space, a resource will contain a clearer message about it in the condition.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: dvcr
type: fix
summary: "When DVCR is out of space, a resource will contain a clearer message about it in the condition."

@hardcoretime hardcoretime added this to the v1.6.0 milestone Feb 20, 2026
@hardcoretime hardcoretime force-pushed the fix/dvcr/improve-importer-logging branch 4 times, most recently from 9550884 to 47db2cc Compare February 24, 2026 13:02
- Ensure upload layer errors are not missed.
- Wrap "DVCR is out of space" error.

Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime force-pushed the fix/dvcr/improve-importer-logging branch from 47db2cc to 7a7c810 Compare February 24, 2026 13:19
@hardcoretime hardcoretime marked this pull request as ready for review February 24, 2026 13:40
@hardcoretime hardcoretime added e2e/run Run e2e test on cluster of PR author labels Feb 24, 2026
@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Feb 24, 2026
@hardcoretime hardcoretime added the e2e/run Run e2e test on cluster of PR author label Feb 24, 2026
@deckhouse-BOaTswain
Copy link
Contributor

Workflow has started.
Follow the progress here: Workflow Run

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Feb 24, 2026
@hardcoretime hardcoretime added the e2e/run Run e2e test on cluster of PR author label Feb 24, 2026
@deckhouse-BOaTswain
Copy link
Contributor

Workflow has started.
Follow the progress here: Workflow Run

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Feb 24, 2026
"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-containerregistry/pkg/name"
"github.com/google/go-containerregistry/pkg/v1"
v1 "github.com/google/go-containerregistry/pkg/v1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Alias is not needed if it matches the package directory

resultCh := make(chan error, 2)

go func() {
resultCh <- p.inspectAndStreamSourceImage(
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrap the errors so it’s clear where they come from.

return p.inspectAndStreamSourceImage(ctx, sourceImageFilename, sourceImageSize, progressMeter, pipeWriter, informer)
})
errsGroup.Go(func() error {
resultCh := make(chan error, 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

errsCh


informer := NewImageInformer()

errsGroup, ctx := errgroup.WithContext(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Lost the context cancellation if one of the goroutines returns an error.

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