-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/cscli-network-flag
- Loading branch information
Showing
486 changed files
with
16,486 additions
and
8,206 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Run this from the repository root: | ||
# | ||
# .github/generate-codecov-yml.sh >> .github/codecov.yml | ||
|
||
cat <<EOT | ||
# we measure coverage but don't enforce it | ||
# https://docs.codecov.com/docs/codecov-yaml | ||
codecov: | ||
require_ci_to_pass: false | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
target: 0% | ||
project: | ||
default: | ||
target: 0% | ||
# if a directory is ignored, there is no way to un-ignore files like pkg/models/helpers.go | ||
# so we make a full list | ||
ignore: | ||
EOT | ||
|
||
find . -name "*.go" | while read -r file; do | ||
if head -n 1 "$file" | grep -q "Code generated by"; then | ||
echo " - \"$file\"" | ||
fi | ||
done |
This file contains 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -34,16 +34,20 @@ jobs: | |
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.4" | ||
go-version: "1.23" | ||
|
||
- name: Build | ||
run: | | ||
make build BUILD_RE2_WASM=1 | ||
- name: Generate codecov configuration | ||
run: | | ||
.github/generate-codecov-yml.sh >> .github/codecov.yml | ||
- name: Run tests | ||
run: | | ||
go install github.com/kyoh86/[email protected] | ||
go test -coverprofile coverage.out -covermode=atomic ./... > out.txt | ||
go test -tags expr_debug -coverprofile coverage.out -covermode=atomic ./... > out.txt | ||
if(!$?) { cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter; Exit 1 } | ||
cat out.txt | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter | ||
|
@@ -55,12 +59,8 @@ jobs: | |
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
version: v1.62 | ||
args: --issues-exit-code=1 --timeout 10m | ||
only-new-issues: false | ||
# the cache is already managed above, enabling it here | ||
# gives errors when extracting | ||
skip-pkg-cache: true | ||
skip-build-cache: true |
This file contains 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 |
---|---|---|
|
@@ -126,13 +126,40 @@ jobs: | |
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.4" | ||
go-version: "1.23" | ||
|
||
- name: Run "go generate" and check for changes | ||
run: | | ||
set -e | ||
# ensure the version of 'protoc' matches the one that generated the files | ||
PROTOBUF_VERSION="21.12" | ||
# don't pollute the repo | ||
pushd $HOME | ||
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip | ||
unzip protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -d $HOME/.protoc | ||
popd | ||
export PATH="$HOME/.protoc/bin:$PATH" | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
go generate ./... | ||
protoc --version | ||
if [[ $(git status --porcelain) ]]; then | ||
echo "Error: Uncommitted changes found after running 'make generate'. Please commit all generated code." | ||
git diff | ||
exit 1 | ||
else | ||
echo "No changes detected after running 'make generate'." | ||
fi | ||
- name: Create localstack streams | ||
run: | | ||
aws --endpoint-url=http://127.0.0.1:4566 --region us-east-1 kinesis create-stream --stream-name stream-1-shard --shard-count 1 | ||
aws --endpoint-url=http://127.0.0.1:4566 --region us-east-1 kinesis create-stream --stream-name stream-2-shards --shard-count 2 | ||
- name: Generate codecov configuration | ||
run: | | ||
.github/generate-codecov-yml.sh >> .github/codecov.yml | ||
- name: Build and run tests, static | ||
run: | | ||
sudo apt -qq -y -o=Dpkg::Use-Pty=0 install build-essential libre2-dev | ||
|
@@ -142,6 +169,11 @@ jobs: | |
make build BUILD_STATIC=1 | ||
make go-acc | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter | ||
# check if some component stubs are missing | ||
- name: "Build profile: minimal" | ||
run: | | ||
make build BUILD_PROFILE=minimal | ||
- name: Run tests again, dynamic | ||
run: | | ||
make clean build | ||
|
@@ -156,12 +188,8 @@ jobs: | |
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.59 | ||
version: v1.62 | ||
args: --issues-exit-code=1 --timeout 10m | ||
only-new-issues: false | ||
# the cache is already managed above, enabling it here | ||
# gives errors when extracting | ||
skip-pkg-cache: true | ||
skip-build-cache: true |
This file contains 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 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.