-
Notifications
You must be signed in to change notification settings - Fork 1.3k
chore(deps): Update go toolchain 1.24.5 and other deps #2216
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
Draft
matthewmcneely
wants to merge
10
commits into
main
Choose a base branch
from
matthewmcneely/update-toolchain-1.24.5-and-other-deps
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e467e7b
Update changelog
matthewmcneely bdd80ea
Update deps
matthewmcneely 5301e5e
Add logic to skip generation if protoc is missing or not the version …
matthewmcneely 225b5b8
Capture out from script run
matthewmcneely 5ab2523
Update go version for linter
matthewmcneely b225598
Satisfy trunk linter
matthewmcneely cbe997f
Install necessary util
matthewmcneely 64d277d
Release the buffer only once
matthewmcneely 84dbfef
Adapt the script to run on OS-X (as well as Linux)
matthewmcneely 88d4f27
Update changelog
matthewmcneely File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ plugins: | |
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) | ||
runtimes: | ||
enabled: | ||
- go@1.23.5 | ||
- go@1.24.5 | ||
- [email protected] | ||
- [email protected] | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Run this script from its directory, so that badgerpb4.proto is where it's expected to | ||
# be. | ||
# be. Only run this script if you've made changes to the API in badgerpb4.proto. | ||
|
||
# Check if protoc version matches expected version first | ||
EXPECTED_PROTOC_VERSION="3.21.12" | ||
ACTUAL_PROTOC_VERSION=$(protoc --version 2>/dev/null | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+' || true) | ||
|
||
if [[ ${ACTUAL_PROTOC_VERSION} != "${EXPECTED_PROTOC_VERSION}" ]]; then | ||
echo "Warning: protoc version mismatch" | ||
echo "Expected: ${EXPECTED_PROTOC_VERSION}" | ||
echo "Actual: ${ACTUAL_PROTOC_VERSION:-'not found'}" | ||
echo "Skipping generation" | ||
exit 0 | ||
fi | ||
|
||
go install google.golang.org/protobuf/cmd/[email protected] | ||
|
||
# Get the GOPATH and add the bin directory to PATH | ||
GOPATH=$(go env GOPATH) | ||
export PATH="${GOPATH}/bin:${PATH}" | ||
|
||
protoc --go_out=. --go_opt=paths=source_relative badgerpb4.proto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -743,7 +743,6 @@ func TestStreamWriterIncremental(t *testing.T) { | |
t.Run("multiple incremental with older data first", func(t *testing.T) { | ||
runBadgerTest(t, nil, func(t *testing.T, db *DB) { | ||
buf := z.NewBuffer(10<<20, "test") | ||
defer func() { require.NoError(t, buf.Release()) }() | ||
KVToBuffer(&pb.KV{ | ||
Key: []byte("a1"), | ||
Value: []byte("val1"), | ||
|
@@ -755,7 +754,6 @@ func TestStreamWriterIncremental(t *testing.T) { | |
require.NoError(t, sw.Flush(), "sw.Flush() failed") | ||
|
||
buf = z.NewBuffer(10<<20, "test") | ||
defer func() { require.NoError(t, buf.Release()) }() | ||
KVToBuffer(&pb.KV{ | ||
Key: []byte("a2"), | ||
Value: []byte("val2"), | ||
|
@@ -766,6 +764,9 @@ func TestStreamWriterIncremental(t *testing.T) { | |
require.NoError(t, sw.Write(buf), "sw.Write() failed") | ||
require.NoError(t, sw.Flush(), "sw.Flush() failed") | ||
|
||
// Single defer at the end to release the final buffer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there are two different buffers that we are trying to release. This does not seem right |
||
defer func() { require.NoError(t, buf.Release()) }() | ||
|
||
// This will move the maxTs to 10 (earlier, without the fix) | ||
require.NoError(t, db.Update(func(txn *Txn) error { | ||
return txn.Set([]byte("a1"), []byte("val3")) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the harm in running it anyway?