From ad00770ffdf1c95156806f75725f139552f2cce9 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 24 May 2024 20:18:02 -0400 Subject: [PATCH 1/2] build: update Go version to 1.22 in e2e workflow --- .github/workflows/docker-release.yml | 2 +- .github/workflows/interchaintest-e2e.yml | 119 ----------------------- pkg/vfs/vfs_test.go | 16 --- 3 files changed, 1 insertion(+), 136 deletions(-) delete mode 100644 .github/workflows/interchaintest-e2e.yml diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index b73ad5b98..973f818b6 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true env: - GO_VERSION: 1.21 + GO_VERSION: 1.22 REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} diff --git a/.github/workflows/interchaintest-e2e.yml b/.github/workflows/interchaintest-e2e.yml deleted file mode 100644 index bed09cc59..000000000 --- a/.github/workflows/interchaintest-e2e.yml +++ /dev/null @@ -1,119 +0,0 @@ -name: E2E - -on: - push: - -permissions: - contents: read - packages: write - -env: - GO_VERSION: 1.21 - TAR_PATH: /tmp/docker-image.tar - IMAGE_NAME: docker-image - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build-docker: - runs-on: ubuntu-latest - steps: - - id: go-cache-paths - run: | - echo "::set-output name=go-build::$(go env GOCACHE)" - echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v4 - with: - go-version: ${{ env.GO_VERSION }} - - # Cache go mod cache, used to speedup builds - - name: Go Mod Cache - uses: actions/cache@v2 - with: - path: ${{ steps.go-cache-paths.outputs.go-mod }} - key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} - - # Cache go build cache, used to speedup go test - - name: Go Build Cache - uses: actions/cache@v2 - with: - path: ${{ steps.go-cache-paths.outputs.go-build }} - key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} - - - name: Download Go Dependencies - run: | - go mod download - cd interchaintest && go mod download - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and export - uses: docker/build-push-action@v5 - with: - context: . - tags: core:local - outputs: type=docker,dest=${{ env.TAR_PATH }} - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: ${{ env.IMAGE_NAME }} - path: ${{ env.TAR_PATH }} - - e2e-tests: - needs: build-docker - runs-on: ubuntu-latest - strategy: - matrix: - # names of `make` commands to run tests - test: - - "ictest-basic" - - "ictest-ibc" - - "ictest-packetforward" - - "ictest-poa" - - "ictest-tokenfactory" - fail-fast: false - - steps: - - id: go-cache-paths - run: | - echo "::set-output name=go-build::$(go env GOCACHE)" - echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - - name: Set up Go ${{ env.GO_VERSION }} - uses: actions/setup-go@v4 - with: - go-version: ${{ env.GO_VERSION }} - cache-dependency-path: interchaintest/go.sum - - - name: checkout chain - uses: actions/checkout@v4 - - # Cache go build cache, used to speedup go test - - name: Go Build Cache - uses: actions/cache@v2 - with: - path: ${{ steps.go-cache-paths.outputs.go-build }} - key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} - - - name: Download Tarball Artifact - uses: actions/download-artifact@v3 - with: - name: ${{ env.IMAGE_NAME }} - path: /tmp - - - name: Load Docker Image - run: | - docker image load -i ${{ env.TAR_PATH }} - docker image ls -a - - - name: Run Test - run: make ${{ matrix.test }} diff --git a/pkg/vfs/vfs_test.go b/pkg/vfs/vfs_test.go index 97bc39ac0..6db63c2c5 100644 --- a/pkg/vfs/vfs_test.go +++ b/pkg/vfs/vfs_test.go @@ -71,19 +71,3 @@ func TestLs(t *testing.T) { assert.Contains(t, files, path1) assert.Contains(t, files, path2) } - -func TestNode(t *testing.T) { - vfs := vfs.New("test_vfs") - path1 := "/file1" - data1 := []byte("test data 1") - err := vfs.Add(path1, data1) - assert.NoError(t, err) - - path2 := "/file2" - data2 := []byte("test data 2") - err = vfs.Add(path2, data2) - assert.NoError(t, err) - - node := vfs.Node() - assert.NotNil(t, node) -} From 0aa815a3cb54dff96781b89b6bd7654e18ded0d6 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 24 May 2024 20:20:04 -0400 Subject: [PATCH 2/2] build: Remove unused PR check workflow Remove the unused PR check workflow that was not being utilized for any purpose. This will help declutter the repository and improve maintainability.