Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into eric/lsm-split
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed Jan 31, 2025
2 parents 93b6a02 + 20fca1c commit 8cf8f07
Show file tree
Hide file tree
Showing 16 changed files with 130 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix goreleaser config to generate Linux builds again. ([\#3506](https://github.com/cosmos/gaia/pull/3506))
1 change: 1 addition & 0 deletions .changelog/v22.0.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*January 10, 2025*
45 changes: 40 additions & 5 deletions .github/workflows/interchain-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
echo "tag_name=${{ github.event.client_payload.tag_name }}" | tee -a $GITHUB_OUTPUT
else
echo "ref_name=${{ github.ref_name }}" | tee -a $GITHUB_OUTPUT
echo "tag_name=${{ github.ref_name }}" | tee -a $GITHUB_OUTPUT
echo "tag_name=${{ github.ref_name }}" | sed 's~/~-~g' | tee -a $GITHUB_OUTPUT
fi
- name: Check out repository code
uses: actions/checkout@v4
Expand Down Expand Up @@ -57,8 +57,43 @@ jobs:
TEST_NEW_GAIA_IMAGE_VERSION: "${{ matrix.test_version }}"
TEST_UPGRADE_NAME: "${{ matrix.upgrade_name }}"
run: |
# This docker pull/tag is a quick hack only necessary for v19, since there were no official v18 images built.
# Once we're testing 19 -> 20 this can be removed
docker pull "ghcr.io/hyphacoop/gaia:v18.1.0" && docker tag "ghcr.io/hyphacoop/gaia:v18.1.0" "ghcr.io/${{ github.repository_owner }}/gaia:v18.1.0"
cd ./tests/interchain
go test -v ./... -failfast -p 1 -timeout 5h -run="^${{ matrix.test_name }}"
go install github.com/mfridman/tparse@latest
set -o pipefail
go test -v ./... -failfast -p 1 -timeout 5h -run="^${{ matrix.test_name }}" -json | tee ../../output-${{ matrix.previous_version }}-${{ matrix.test_name }}.json | tparse -follow -all
- name: Upload output
uses: actions/upload-artifact@v4
if: always()
with:
name: output-${{ matrix.previous_version }}-${{ matrix.test_name }}
path: output-${{ matrix.previous_version }}-${{ matrix.test_name }}.json
test-report:
needs: [test, prepare-matrix]
if: always()
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: ./outputs
- name: Setup go
uses: actions/setup-go@v5
- name: Prep report
env:
TEST_MATRIX: ${{ needs.prepare-matrix.outputs.matrix }}
run: |
go install github.com/becheran/go-testreport@latest
TEST_VERSION=$(echo "$TEST_MATRIX" | jq -r '.test_version[0]')
UPGRADE_NAME=$(echo "$TEST_MATRIX" | jq -r '.upgrade_name[0]')
echo "$TEST_MATRIX" | jq -r '.previous_version[]' | while read PREV_VERSION; do
cat ./outputs/output-${PREV_VERSION}-*/*.json > combined-${PREV_VERSION}.json
go-testreport -vars="Title:${PREV_VERSION} -> ${UPGRADE_NAME} (${TEST_VERSION})" "test-report-${PREV_VERSION}.md" < "combined-${PREV_VERSION}.json" || true
echo '' >> test-report-${PREV_VERSION}.md
done
cat test-report-*.md > test-report.md
cat test-report.md > $GITHUB_STEP_SUMMARY
- name: Upload output
uses: actions/upload-artifact@v4
with:
name: test-report
path: test-report.md
43 changes: 42 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,54 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm
- -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.TM_VERSION }}

- id: gaiad-linux-amd64
main: ./cmd/gaiad
binary: gaiad
builder: go
gobinary: "go"
env:
- CGO_ENABLED=1
- CC=/opt/musl-cross/bin/x86_64-linux-musl-gcc
- LD=/opt/musl-cross/bin/x86_64-linux-musl-ld
- CGO_LDFLAGS=-L/lib
goos:
- linux
goarch:
- amd64
tags:
- muslc
- ledger
hooks:
pre:
- wget -O /lib/libwasmvm_muslc.x86_64.a https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a
- echo "a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a" | sha256sum -c
- cp /lib/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
- curl -LO https://musl.cc/x86_64-linux-musl-cross.tgz
- tar xf x86_64-linux-musl-cross.tgz
- mv x86_64-linux-musl-cross /opt/musl-cross
ldflags:
- -s -w
- -linkmode=external
- -extldflags "-Wl,-z,muldefs -static"
- -X main.commit={{.Commit}}
- -X main.date={{ .CommitDate }}
- -X github.com/cosmos/cosmos-sdk/version.Name=gaia
- -X github.com/cosmos/cosmos-sdk/version.AppName=gaiad
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=muslc,ledger
- -X github.com/cometbft/cometbft/version.TMCoreSemVer={{ .Env.TM_VERSION }}

universal_binaries:
- id: gaiad-darwin-universal
ids:
- gaiad-darwin-arm64
- gaiad-darwin-amd64
replace: false
- id: gaiad-linux-universal
ids:
- gaiad-linux-amd64
replace: false

archives:
# disables archiving; to enable use commented lines below
Expand All @@ -102,6 +142,7 @@ archives:
builds:
- gaiad-darwin-arm64
- gaiad-darwin-amd64
- gaiad-linux-amd64
wrap_in_directory: false
files:
- none*
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# CHANGELOG

## v22.0.0

*January 10, 2025*

### DEPENDENCIES

- Bump [ibc-go](https://github.com/cosmos/ibc-go) to
[v8.5.2](https://github.com/cosmos/ibc-go/releases/tag/v8.5.2)
([\#3370](https://github.com/cosmos/gaia/pull/3370))
- Bump [cometbft](https://github.com/cometbft/cometbft) to
[v0.38.15](https://github.com/cometbft/cometbft/releases/tag/v0.38.15)
([\#3370](https://github.com/cosmos/gaia/pull/3370))
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to
[v0.50.11-lsm](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.11-lsm)
([\#3454](https://github.com/cosmos/gaia/pull/3454))
- Bump [wasmd](https://github.com/CosmWasm/wasmd) to
[v0.53.2](https://github.com/CosmWasm/wasmd/releases/tag/v0.53.2)
([\#3459](https://github.com/cosmos/gaia/pull/3459))
- Bump [ICS](https://github.com/cosmos/interchain-security) to
[v6.4.0](https://github.com/cosmos/interchain-security/releases/tag/v6.4.0).
([\#3474](https://github.com/cosmos/gaia/pull/3474))

### STATE BREAKING

- Bump [ibc-go](https://github.com/cosmos/ibc-go) to
[v8.5.2](https://github.com/cosmos/ibc-go/releases/tag/v8.5.2)
([\#3370](https://github.com/cosmos/gaia/pull/3370))
- Bump [cometbft](https://github.com/cometbft/cometbft) to
[v0.38.15](https://github.com/cometbft/cometbft/releases/tag/v0.38.15)
([\#3370](https://github.com/cosmos/gaia/pull/3370))
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to
[v0.50.11-lsm](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.11-lsm)
([\#3454](https://github.com/cosmos/gaia/pull/3454))
- Bump [wasmd](https://github.com/CosmWasm/wasmd) to
[v0.53.2](https://github.com/CosmWasm/wasmd/releases/tag/v0.53.2)
([\#3459](https://github.com/cosmos/gaia/pull/3459))
- Bump [ICS](https://github.com/cosmos/interchain-security) to
[v6.4.0](https://github.com/cosmos/interchain-security/releases/tag/v6.4.0).
([\#3474](https://github.com/cosmos/gaia/pull/3474))

## v21.0.1

*November 21, 2024*
Expand Down
10 changes: 6 additions & 4 deletions tests/interchain/matrix_tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func GetPreviousMajorMinor(ctx context.Context, testVersion string) (previousVer
org = "cosmos"
}
client := github.NewClient(nil)
releaes, _, err := client.Repositories.ListReleases(ctx, org, "gaia", nil)
releases, _, err := client.Repositories.ListReleases(ctx, org, "gaia", nil)
if err != nil {
err = fmt.Errorf("ListReleases failed: %w", err)
return
Expand All @@ -40,8 +40,8 @@ func GetPreviousMajorMinor(ctx context.Context, testVersion string) (previousVer
err = fmt.Errorf("failed to parse major version: %w", err)
return
}
semvers := make([]string, 0, len(releaes))
for _, release := range releaes {
semvers := make([]string, 0, len(releases))
for _, release := range releases {
semvers = append(semvers, release.GetTagName())
}
var previousMinor, previousRc bool
Expand Down Expand Up @@ -97,6 +97,7 @@ func GetSemverForBranch() (string, error) {

func GetTestList() ([]string, error) {
retval := []string{}
uniq := map[string]bool{}
cmd := exec.Command("go", "test", "-list=.", "./...")
out, err := cmd.Output()
if err != nil {
Expand All @@ -105,8 +106,9 @@ func GetTestList() ([]string, error) {
}
lines := strings.Split(string(out), "\n")
for _, line := range lines {
if strings.HasPrefix(line, "Test") {
if strings.HasPrefix(line, "Test") && !uniq[line] {
retval = append(retval, line)
uniq[line] = true
}
}
rand.Shuffle(len(retval), func(i, j int) {
Expand Down

0 comments on commit 8cf8f07

Please sign in to comment.