Skip to content

tsdb: use Go standard errors - #13155

Merged
SuperQ merged 1 commit into
prometheus:mainfrom
mmorel-35:tsdb
Dec 11, 2023
Merged

SuperQ merged 1 commit into
prometheus:mainfrom
mmorel-35:tsdb

Conversation

@mmorel-35

@mmorel-35 mmorel-35 commented Nov 17, 2023 •

Copy link
Copy Markdown
Contributor

Closes #12960

Signed-off-by: Matthieu MOREL [email protected]

@mmorel-35
mmorel-35 marked this pull request as ready for review November 17, 2023 06:04
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/compact.go Resolved
Comment thread tsdb/head.go Resolved
Comment thread tsdb/head.go Resolved
Comment thread tsdb/head_wal.go Resolved
Comment thread tsdb/wal.go Resolved
Comment thread tsdb/wal.go Resolved
Comment thread tsdb/wal.go Resolved
Comment thread tsdb/wal.go Resolved
Comment thread tsdb/wal.go Resolved
Comment thread tsdb/head_wal.go Resolved
Comment thread tsdb/head_wal.go Resolved
Comment thread tsdb/head_wal.go Resolved
Comment thread tsdb/querier.go Resolved
Comment thread tsdb/querier.go Resolved
Comment thread tsdb/wal.go Resolved
Comment thread tsdb/head_wal.go Resolved
Comment thread tsdb/head_wal.go Resolved
@mmorel-35
mmorel-35 marked this pull request as draft November 23, 2023 12:04
@mmorel-35
mmorel-35 marked this pull request as ready for review December 4, 2023 18:39

@bboreham bboreham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work! Very detailed and diligent.

For the record, I will note there are a few places where this PR replaces err == foo by errors.Is(err, foo), which is strictly a behaviour change, but not one I'm worried about.

Comment thread tsdb/db_test.go Resolved
@mmorel-35

mmorel-35 commented Dec 6, 2023 •

Copy link
Copy Markdown
Contributor Author

There is a golangci-lint linter called testifylint that could help follow best practices with testify.
I created #13254

@mmorel-35
mmorel-35 requested a review from bboreham December 7, 2023 21:28

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@bboreham

Copy link
Copy Markdown
Member

Some refactoring in the created-timestamps PR has given you a new conflict, sorry.

Signed-off-by: Matthieu MOREL <[email protected]>
@mmorel-35

Copy link
Copy Markdown
Contributor Author

@bboreham ,

The rebase is done now. The conflicts are resolved.

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.

use Go standard errors package

4 participants