Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Badger version to v4 #1740

Conversation

fredcarle
Copy link
Collaborator

Relevant issue(s)

Resolves #1702

Description

This PR updates the Badger version to v4.

It includes a temporary fix to our badger os.Exit issue that is costing us time when managing PRs. This should be reverted or properly fixed before releasing v0.7.

Tasks

  • I made sure the code is well commented, particularly hard-to-understand areas.
  • I made sure the repository-held documentation is changed accordingly.
  • I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in tools/configs/chglog/config.yml).
  • I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ...

How has this been tested?

multiple runs of env DEFRA_DETECT_DATABASE_CHANGES=true gotestsum -- ./tests/integration/query/one_to_many_to_one -shuffle=on -p 1

Specify the platform(s) on which this was tested:

  • MacOS

@fredcarle fredcarle added area/datastore Related to the datastore / storage engine system dependencies Related to dependencies labels Aug 1, 2023
@fredcarle fredcarle added this to the DefraDB v0.7 milestone Aug 1, 2023
@fredcarle fredcarle requested a review from a team August 1, 2023 17:03
@fredcarle fredcarle self-assigned this Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (602134e) 75.42% compared to head (8c50398) 75.42%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1740      +/-   ##
===========================================
- Coverage    75.42%   75.42%   -0.00%     
===========================================
  Files          208      208              
  Lines        21801    21801              
===========================================
- Hits         16443    16442       -1     
  Misses        4210     4210              
- Partials      1148     1149       +1     
Flag Coverage Δ
all-tests 75.42% <ø> (-<0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
cli/serverdump.go 53.49% <ø> (ø)
cli/start.go 60.81% <ø> (ø)
config/config.go 74.17% <ø> (ø)
datastore/badger/v4/compat_logger.go 0.00% <ø> (ø)
datastore/badger/v4/datastore.go 77.29% <ø> (ø)
datastore/badger/v4/errors.go 100.00% <ø> (ø)
datastore/badger/v4/iterator.go 53.99% <ø> (ø)
logging/logger.go 87.31% <ø> (ø)
net/server.go 75.68% <ø> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 602134e...8c50398. Read the comment docs.

go.mod Outdated Show resolved Hide resolved
@AndrewSisley
Copy link
Contributor

question: Has the fork been reviewed?

@fredcarle
Copy link
Collaborator Author

question: Has the fork been reviewed?

Initial review has been done and it's not going to be the way to fix this but the badger team is also looking into it. Hopefully we get a proper fix before the end of this cycle.

Copy link
Contributor

@AndrewSisley AndrewSisley left a comment

Choose a reason for hiding this comment

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

Requesting changes as I don't think we should get into the habit of committing personal-fork dependencies into the codebase

@fredcarle fredcarle force-pushed the fredcarle/fix/1702-update-badger-version branch from 07b60c7 to 8c50398 Compare August 1, 2023 19:00
Copy link
Contributor

@AndrewSisley AndrewSisley left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for switching to the source fork :)

@fredcarle fredcarle merged commit 5e68f54 into sourcenetwork:develop Aug 1, 2023
12 checks passed
@fredcarle fredcarle deleted the fredcarle/fix/1702-update-badger-version branch August 1, 2023 19:17
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
## Relevant issue(s)

Resolves sourcenetwork#1702

## Description

This PR updates the Badger version to v4.

It includes a temporary fix to our badger `os.Exit` issue that is
costing us time when managing PRs. This should be reverted or properly
fixed before releasing v0.7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datastore Related to the datastore / storage engine system dependencies Related to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestQueryOneToOneRelations flaky in CI
2 participants