This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
20 additions
and
1,595 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,62 +17,6 @@ jobs: | |
uses: ./.github/workflows/docker_utils.yml | ||
secrets: inherit | ||
|
||
network: | ||
uses: ./.github/workflows/docker_utils.yml | ||
secrets: inherit | ||
|
||
docker_e2e: | ||
runs-on: ubuntu-latest-16-core | ||
needs: docker | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
EXPECTED_IMAGE_NAME: ghcr.io/${{ github.repository }}:main | ||
steps: | ||
- name: Set environment | ||
run: | | ||
# It's fine to assume a single tag. Our tagging strategy follows a 1:1 mapping of image:tag | ||
tags=${{ needs.docker.outputs.tags }} | ||
echo "docker_tag=${tags#*:}" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Setup image to match docker-compose file | ||
run: | | ||
docker pull ghcr.io/${{ github.repository}}:${{ env.docker_tag }} | ||
docker tag ghcr.io/${{ github.repository}}:${{ env.docker_tag }} ${{ env.EXPECTED_IMAGE_NAME }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Running TCE cluster | ||
run: | | ||
docker compose -f tools/docker-compose.yml up -d peer | ||
- name: Checking for healthy cluster | ||
uses: nick-fields/[email protected] | ||
with: | ||
retry_on: error | ||
max_attempts: 5 | ||
retry_wait_seconds: 40 | ||
timeout_minutes: 10 | ||
on_retry_command: docker inspect --format "{{ .Name }} {{ .State.Health.Status }}" $(docker compose -f tools/docker-compose.yml ps -aq peer boot) | grep "healthy$" | cut -d ' ' -f 1 | xargs -I{} sh -c 'echo "\nLogs for => {}\n" && docker logs {}' | ||
command: | | ||
EXPECTED=$(docker compose -f tools/docker-compose.yml ps -aq peer boot|wc -l) | ||
COUNT=$(docker inspect --format "{{.State.Health.Status }}" $(docker compose -f tools/docker-compose.yml ps -aq peer boot)|grep "^healthy$"|wc -l) | ||
echo "Number of Healthy containers: $COUNT" | ||
if [[ $COUNT -eq $EXPECTED ]]; then | ||
echo "All expected containers healthy" | ||
exit 0 | ||
else | ||
echo "Unhealthy containers" | ||
docker compose -f tools/docker-compose.yml ps -a peer boot | ||
exit 1 | ||
fi | ||
- name: Run the check | ||
run: | | ||
docker compose -f tools/docker-compose.yml ps | ||
docker compose -f tools/docker-compose.yml run --no-deps check | ||
integration-erc20-e2e: | ||
runs-on: ubuntu-latest | ||
needs: docker | ||
|
@@ -94,25 +38,3 @@ jobs: | |
ref: main | ||
wait_interval: 60 | ||
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}" }' | ||
|
||
frontend-erc20-e2e: | ||
runs-on: ubuntu-latest | ||
needs: docker | ||
if: ${{ github.event_name == 'pull_request' }} | ||
steps: | ||
- name: Set environment | ||
run: | | ||
# It's fine to assume a single tag. Our tagging strategy follows a 1:1 mapping of image:tag | ||
tags=${{ needs.docker.outputs.tags }} | ||
echo "docker_tag=${tags#*:}" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- uses: convictional/[email protected] | ||
with: | ||
owner: topos-protocol | ||
repo: e2e-tests | ||
github_token: ${{ secrets.ROBOT_PAT_TRIGGER_E2E_WORKFLOWS }} | ||
workflow_file_name: frontend:erc20-messaging.yml | ||
ref: main | ||
wait_interval: 60 | ||
client_payload: '{ "topos-docker-tag": "${{ env.docker_tag }}" }' |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.