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 dependencies #2044

Merged
merged 4 commits into from
Nov 13, 2023
Merged

Conversation

fredcarle
Copy link
Collaborator

@fredcarle fredcarle commented Nov 11, 2023

Relevant issue(s)

Resolves #2043

Description

This PR updates go dependencies that couldn't be done by dependabot for different reasons. One of which is the result of deprecating libpeer.ID.Pretty from libp2p.

An update to libp2p also made it no longer valid to connect to a peer on 0.0.0.0. We now need to use 127.0.0.1 for our tests.

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?

Make test

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

  • MacOS

@fredcarle fredcarle added the dependencies Related to dependencies label Nov 11, 2023
@fredcarle fredcarle added this to the DefraDB v0.8 milestone Nov 11, 2023
@fredcarle fredcarle requested a review from a team November 11, 2023 02:58
@fredcarle fredcarle self-assigned this Nov 11, 2023
@fredcarle fredcarle force-pushed the fredcarle/chore/update-dependencies branch from 6c96e23 to ebf354e Compare November 11, 2023 19:09
Copy link

codecov bot commented Nov 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (988b178) 73.78% compared to head (a901e85) 73.87%.
Report is 1 commits behind head on develop.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2044      +/-   ##
===========================================
+ Coverage    73.78%   73.87%   +0.09%     
===========================================
  Files          248      248              
  Lines        24801    24801              
===========================================
+ Hits         18297    18320      +23     
+ Misses        5237     5220      -17     
+ Partials      1267     1261       -6     
Flag Coverage Δ
all-tests 73.87% <100.00%> (+0.09%) ⬆️

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

Files Coverage Δ
cli/start.go 25.62% <ø> (ø)
datastore/badger/v4/datastore.go 79.77% <ø> (+1.34%) ⬆️
datastore/badger/v4/iterator.go 7.36% <ø> (ø)
net/dialer.go 100.00% <100.00%> (ø)
net/node.go 89.16% <ø> (ø)
net/server.go 71.30% <100.00%> (ø)
request/graphql/parser.go 87.50% <ø> (ø)
request/graphql/parser/commit.go 78.57% <ø> (ø)
request/graphql/parser/filter.go 54.19% <ø> (ø)
request/graphql/parser/introspection.go 73.33% <ø> (ø)
... and 8 more

... and 6 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 4277abd...a901e85. Read the comment docs.

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 :)

Since libp2p/go-libp2p#2560, `0.0.0.0` is no longer valid as a peer connection address. This is causing issues for our tests so we change the IP to `127.0.0.1`.
@fredcarle fredcarle force-pushed the fredcarle/chore/update-dependencies branch from ebf354e to 97fdea2 Compare November 13, 2023 22:05
@fredcarle fredcarle force-pushed the fredcarle/chore/update-dependencies branch from 97fdea2 to a901e85 Compare November 13, 2023 22:08
@fredcarle fredcarle merged commit 87415d6 into develop Nov 13, 2023
31 checks passed
@fredcarle fredcarle deleted the fredcarle/chore/update-dependencies branch November 13, 2023 22:31
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
## Relevant issue(s)

Resolves sourcenetwork#2043 

## Description

This PR updates go dependencies that couldn't be done by dependabot for
different reasons. One of which is the result of deprecating
`libpeer.ID.Pretty` from `libp2p`.

An [update](libp2p/go-libp2p#2560) to `libp2p`
also made it no longer valid to connect to a peer on `0.0.0.0`. We now
need to use `127.0.0.1` for our tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Related to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update dependencies before 0.8 release
2 participants