Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

improves error message in cache#38

Open
jschicktanz wants to merge 1 commit into
mainfrom
improve-error-msg
Open

improves error message in cache#38
jschicktanz wants to merge 1 commit into
mainfrom
improve-error-msg

Conversation

@jschicktanz

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
improves error message in the cache. the "not cached" msg was misleading, as the actual error was that the blob content didn't match with the descriptor data

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

@jschicktanz
jschicktanz requested review from a team, enrico-kaack-comp and schrodit August 26, 2021 08:58
@ghost ghost added needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Aug 26, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 26, 2021
@ghost ghost added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Aug 26, 2021
Comment thread ociclient/cache/types.go
ErrNotFound = errors.New("not cached")

// ErrInvalidBlob is an error that indicates that a blob is invalid
ErrInvalidBlob = errors.New("invalid blob")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

not sure if we need a dedicated error for this.
MAybe it would be more helpful to return the real error with fmt.Errorf("invalid blob: %w", err)

@ghost ghost added the needs/changes Needs (more) changes label Aug 26, 2021
@ghost

ghost commented Aug 29, 2021

Copy link
Copy Markdown

@jschicktanz You have pull request review with status CHANGES_REQUESTED, please check

@ghost

ghost commented Aug 29, 2021

Copy link
Copy Markdown

@enrico-kaack-comp You have pull request review open invite, please check

@gardener-ci-robot

Copy link
Copy Markdown

The Gardener project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed
    You can:
  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close

/lifecycle stale

@ghost

ghost commented Feb 9, 2022

Copy link
Copy Markdown

@gardener-ci-robot Command /add is not available to you but only to a Maintainer, Member, Author.

@ghost ghost added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Aug 9, 2022
@ghost ghost added lifecycle/rotten Nobody worked on this for 12 months (final aging stage) and removed lifecycle/stale Nobody worked on this for 6 months (will further age) labels Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lifecycle/rotten Nobody worked on this for 12 months (final aging stage) needs/changes Needs (more) changes needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants