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

e2e: remove e2e related to BTC staking integration #339

Merged
merged 4 commits into from
Dec 13, 2024
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
49 changes: 1 addition & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,6 @@ jobs:
path: /tmp/docker-init-chain.tar.gz
# retention-days: 90

e2e-docker-build-ibcsim-bcd:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docker ibcsim-bcd
run: |
make -C contrib/images build-ibcsim-bcd
- name: Docker save ibcsim-bcd
run: |
docker save -o /tmp/docker-ibcsim-bcd.tar.gz babylonlabs-io/ibcsim-bcd:latest
- name: Upload ibcsim-bcd artifact
uses: actions/upload-artifact@v4
with:
name: ibcsim-bcd-${{ github.sha }}
path: /tmp/docker-ibcsim-bcd.tar.gz

e2e-run-ibc-transfer:
needs: [e2e-docker-build-babylon]
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -213,34 +196,4 @@ jobs:
sudo make test-e2e-cache-upgrade-v1
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2

e2e-run-bcd-consumer-integration-test:
needs: [e2e-docker-build-babylon, e2e-docker-build-ibcsim-bcd]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download babylon artifact
uses: actions/download-artifact@v4
with:
name: babylond-${{ github.sha }}
path: /tmp
- name: Download ibcsim-bcd artifact
uses: actions/download-artifact@v4
with:
name: ibcsim-bcd-${{ github.sha }}
path: /tmp
- name: Docker load babylond
run: |
docker load < /tmp/docker-babylond.tar.gz
- name: Docker load ibcsim-bcd
run: |
docker load < /tmp/docker-ibcsim-bcd.tar.gz
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run BCD consumer integration test
run: |
sudo make test-e2e-bcd-consumer-integration
uses: jwalton/gh-docker-logs@v2
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -266,29 +266,21 @@ test-e2e: build-docker-e2e test-e2e-cache
test-e2e-cache:
$(MAKE) test-e2e-cache-btc-timestamping
$(MAKE) test-e2e-cache-btc-staking
# $(MAKE) test-e2e-cache-btc-staking-integration
$(MAKE) clean-e2e
$(MAKE) test-e2e-cache-btc-staking-pre-approval
$(MAKE) test-e2e-cache-ibc-transfer
$(MAKE) test-e2e-bcd-consumer-integration
# $(MAKE) test-e2e-cache-upgrade-v1

clean-e2e:
docker container rm -f $(shell docker container ls -a -q) || true
docker network prune -f || true

test-e2e-bcd-consumer-integration: start-bcd-consumer-integration
go test -run TestBCDConsumerIntegrationTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

test-e2e-cache-btc-timestamping:
go test -run TestBTCTimestampingTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

test-e2e-cache-btc-staking:
go test -run TestBTCStakingTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

test-e2e-cache-btc-staking-integration:
go test -run TestBTCStakingIntegrationTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

test-e2e-cache-btc-staking-pre-approval:
go test -run TestBTCStakingPreApprovalTestSuite -mod=readonly -timeout=60m -v $(PACKAGES_E2E) --tags=e2e

Expand Down Expand Up @@ -446,14 +438,10 @@ build-docker: ## Build babylond Docker image
build-docker-e2e:
$(MAKE) -C contrib/images babylond-e2e
$(MAKE) -C contrib/images e2e-init-chain
$(MAKE) -C contrib/images build-ibcsim-bcd

build-cosmos-relayer-docker: ## Build Docker image for the Cosmos relayer
$(MAKE) -C contrib/images cosmos-relayer

start-bcd-consumer-integration:
$(MAKE) -C contrib/images start-bcd-consumer-integration

clean-docker-network:
$(DOCKER) network rm ${dockerNetworkList} || true

Expand Down
16 changes: 1 addition & 15 deletions contrib/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,4 @@ cosmos-relayer: cosmos-relayer-rmi
cosmos-relayer-rmi:
docker rmi babylonlabs-io/cosmos-relayer 2>/dev/null; true

build-ibcsim-bcd:
docker build --tag babylonlabs-io/ibcsim-bcd -f ibcsim-bcd/Dockerfile ${BABYLON_FULL_PATH}

ibcsim-bcd-rmi:
docker rmi babylonlabs-io/ibcsim-bcd 2>/dev/null; true

start-bcd-consumer-integration: stop-bcd-consumer-integration
ibcsim-bcd/pre-deployment.sh
docker compose -f ibcsim-bcd/docker-compose.yml up -d

stop-bcd-consumer-integration:
docker compose -f ibcsim-bcd/docker-compose.yml down
rm -rf ibcsim-bcd/.testnets

.PHONY: all babylond babylond-before-upgrade cosmos-relayer e2e-init-chain babylond-rmi babylond-rmi-upgrade cosmos-relayer-rmi build-ibcsim-bcd ibcsim-bcd-rmi start-bcd-consumer-integration-test stop-bcd-consumer-integration-test
.PHONY: all babylond babylond-before-upgrade cosmos-relayer e2e-init-chain babylond-rmi babylond-rmi-upgrade cosmos-relayer-rmi
68 changes: 0 additions & 68 deletions contrib/images/ibcsim-bcd/Dockerfile

This file was deleted.

67 changes: 0 additions & 67 deletions contrib/images/ibcsim-bcd/docker-compose.yml

This file was deleted.

22 changes: 0 additions & 22 deletions contrib/images/ibcsim-bcd/pre-deployment.sh

This file was deleted.

Loading
Loading