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: E2E Test Suite GHCR #630

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 0 additions & 103 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,109 +77,6 @@ jobs:
make test-e2e
if: env.GIT_DIFF

# split-test-files:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Create Packages File
# run: go list ./... > pkgs.txt
# - name: Split Packages into Files
# run: split -d -n l/4 pkgs.txt pkgs.txt.part.
# - uses: actions/upload-artifact@v2
# with:
# name: "${{ github.sha }}-00"
# path: ./pkgs.txt.part.00
# - uses: actions/upload-artifact@v2
# with:
# name: "${{ github.sha }}-01"
# path: ./pkgs.txt.part.01
# - uses: actions/upload-artifact@v2
# with:
# name: "${{ github.sha }}-02"
# path: ./pkgs.txt.part.02
# - uses: actions/upload-artifact@v2
# with:
# name: "${{ github.sha }}-03"
# path: ./pkgs.txt.part.03

# upload-coverage-report:
# runs-on: ubuntu-latest
# needs: tests
# steps:
# - uses: actions/checkout@v3
# - uses: technote-space/get-diff-action@v6.0.1
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/download-artifact@v2
# with:
# name: "${{ github.sha }}-00-coverage"
# if: env.GIT_DIFF
# - uses: actions/download-artifact@v2
# with:
# name: "${{ github.sha }}-01-coverage"
# if: env.GIT_DIFF
# - uses: actions/download-artifact@v2
# with:
# name: "${{ github.sha }}-02-coverage"
# if: env.GIT_DIFF
# - uses: actions/download-artifact@v2
# with:
# name: "${{ github.sha }}-03-coverage"
# if: env.GIT_DIFF
# - run: |
# cat ./*profile.out | grep -v "mode: atomic" >> coverage.txt
# if: env.GIT_DIFF
# - name: filter out DONTCOVER
# run: |
# excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
# excludelist+=" $(find ./ -type f -name '*.pb.go')"
# excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
# excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
# for filename in ${excludelist}; do
# filename=$(echo $filename | sed 's/^./github.com\/cosmos\/cosmos-sdk/g')
# echo "Excluding ${filename} from coverage report..."
# sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
# done
# if: env.GIT_DIFF
# - uses: codecov/codecov-action@v2.1.0
# with:
# file: ./coverage.txt
# if: env.GIT_DIFF

# tests:
# runs-on: ubuntu-latest
# needs: split-test-files
# strategy:
# fail-fast: false
# matrix:
# part: ["00", "01", "02", "03"]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v3
# with:
# go-version: 1.17
# - uses: technote-space/get-diff-action@v6.0.1
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/download-artifact@v2
# with:
# name: "${{ github.sha }}-${{ matrix.part }}"
# if: env.GIT_DIFF
# - name: Create Test and Coverage Report
# run: |
# cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic
# if: env.GIT_DIFF
# - uses: actions/upload-artifact@v2
# with:
# name: "${{ github.sha }}-${{ matrix.part }}-coverage"
# path: ./${{ matrix.part }}profile.out

price-feeder:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ docker-build-debug:
@docker build -t umeenet/umeed --build-arg IMG_TAG=debug .

docker-push-hermes:
@cd tests/e2e/docker; docker build -t umeenet/hermes:latest -f hermes.Dockerfile .; docker push umeenet/hermes:latest
@cd tests/e2e/docker; docker build -t ghcr.io/umee-network/hermes-e2e:latest -f hermes.Dockerfile .; docker push ghcr.io/umee-network/hermes-e2e:latest

docker-push-gaia:
@cd tests/e2e/docker; docker build -t umeenet/gaia:latest -f gaia.Dockerfile .; docker push umeenet/gaia:latest
@cd tests/e2e/docker; docker build -t ghcr.io/umee-network/gaia-e2e:latest -f gaia.Dockerfile .; docker push ghcr.io/umee-network/gaia-e2e:latest

.PHONY: docker-build docker-build-debug docker-push-hermes docker-push-gaia

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (s *IntegrationTestSuite) runGaiaNetwork() {
s.gaiaResource, err = s.dkrPool.RunWithOptions(
&dockertest.RunOptions{
Name: gaiaVal.instanceName(),
Repository: "umeenet/gaia",
Repository: "ghcr.io/umee-network/gaia-e2e",
Tag: "latest",
NetworkID: s.dkrNet.Network.ID,
Mounts: []string{
Expand Down Expand Up @@ -569,7 +569,7 @@ func (s *IntegrationTestSuite) runIBCRelayer() {
s.hermesResource, err = s.dkrPool.RunWithOptions(
&dockertest.RunOptions{
Name: "umee-gaia-relayer",
Repository: "umeenet/hermes",
Repository: "ghcr.io/umee-network/hermes-e2e",
Tag: "latest",
NetworkID: s.dkrNet.Network.ID,
Mounts: []string{
Expand Down