-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge develop branch into feat-support-taproot and resolve conflicts
- Loading branch information
Showing
580 changed files
with
9,418 additions
and
7,362 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
* @brewmaster012 @kingpinXD @kevinssgh @fadeev @lumtis @ws4charlie @skosito | ||
* @brewmaster012 @kingpinXD @kevinssgh @lumtis @ws4charlie @skosito | ||
|
||
.github/** @zeta-chain/devops |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
name: "TESTING:ADVANCED:E2E" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
e2e-admin-tests: | ||
type: boolean | ||
required: false | ||
default: false | ||
e2e-upgrade-test: | ||
type: boolean | ||
required: false | ||
default: false | ||
e2e-performance-test: | ||
type: boolean | ||
required: false | ||
default: false | ||
e2e-upgrade-test-light: | ||
type: boolean | ||
required: false | ||
default: false | ||
debug: | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
e2e-admin-tests: | ||
if: ${{ github.event.inputs.e2e-admin-tests == 'true' }} | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
timeout-minutes: 120 | ||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@v3 | ||
|
||
- name: Execute e2e-admin-tests | ||
shell: bash | ||
run: | | ||
make start-e2e-admin-test | ||
container_id=$(docker ps --filter "ancestor=orchestrator:latest" --format "{{.ID}}") | ||
if [ -z "$container_id" ]; then | ||
echo "Orchestrator container is not currently running. Exiting..." | ||
exit 1 | ||
fi | ||
echo "Monitoring Orchestrator container with ID: $container_id" | ||
while true; do | ||
current_status=$(docker ps -q | grep $container_id || echo "docker-ps-error") | ||
if [ "$current_status" == "docker-ps-error" ]; then | ||
echo "***********************************" | ||
echo "* *" | ||
echo "* *" | ||
echo "* TESTING COMPLETE *" | ||
echo "* *" | ||
echo "* *" | ||
echo "***********************************" | ||
docker logs $container_id || echo "no logs" | ||
exit 0 | ||
else | ||
echo "Testing in progress still...." | ||
if [ "${{ github.event.inputs.debug }}" == "true" ]; then | ||
docker logs $container_id || echo "no logs" | ||
fi | ||
fi | ||
sleep 5 | ||
done | ||
e2e-upgrade-test: | ||
if: ${{ github.event.inputs.e2e-upgrade-test == 'true' }} | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
timeout-minutes: 120 | ||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@v3 | ||
|
||
- name: Execute upgrade-test | ||
shell: bash | ||
run: | | ||
make start-upgrade-test | ||
container_id=$(docker ps --filter "ancestor=orchestrator:latest" --format "{{.ID}}") | ||
if [ -z "$container_id" ]; then | ||
echo "Orchestrator container is not currently running. Exiting..." | ||
exit 1 | ||
fi | ||
echo "Monitoring Orchestrator container with ID: $container_id" | ||
while true; do | ||
current_status=$(docker ps -q | grep $container_id || echo "docker-ps-error") | ||
if [ "$current_status" == "docker-ps-error" ]; then | ||
echo "***********************************" | ||
echo "* *" | ||
echo "* *" | ||
echo "* TESTING COMPLETE *" | ||
echo "* *" | ||
echo "* *" | ||
echo "***********************************" | ||
docker logs $container_id || echo "no logs" | ||
exit 0 | ||
else | ||
echo "Testing in progress still...." | ||
if [ "${{ github.event.inputs.debug }}" == "true" ]; then | ||
docker logs $container_id || echo "no logs" | ||
fi | ||
fi | ||
sleep 5 | ||
done | ||
e2e-upgrade-test-light: | ||
if: ${{ github.event.inputs.e2e-upgrade-test-light == 'true' }} | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
timeout-minutes: 120 | ||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@v3 | ||
|
||
- name: Execute upgrade-test-light | ||
shell: bash | ||
run: | | ||
make start-upgrade-test-light | ||
container_id=$(docker ps --filter "ancestor=orchestrator:latest" --format "{{.ID}}") | ||
if [ -z "$container_id" ]; then | ||
echo "Orchestrator container is not currently running. Exiting..." | ||
exit 1 | ||
fi | ||
echo "Monitoring Orchestrator container with ID: $container_id" | ||
while true; do | ||
current_status=$(docker ps -q | grep $container_id || echo "docker-ps-error") | ||
if [ "$current_status" == "docker-ps-error" ]; then | ||
echo "***********************************" | ||
echo "* *" | ||
echo "* *" | ||
echo "* TESTING COMPLETE *" | ||
echo "* *" | ||
echo "* *" | ||
echo "***********************************" | ||
docker logs $container_id || echo "no logs" | ||
exit 0 | ||
else | ||
echo "Testing in progress still...." | ||
if [ "${{ github.event.inputs.debug }}" == "true" ]; then | ||
docker logs $container_id || echo "no logs" | ||
fi | ||
fi | ||
sleep 5 | ||
done | ||
e2e-performance-test: | ||
if: ${{ github.event.inputs.e2e-performance-test == 'true' }} | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
timeout-minutes: 120 | ||
steps: | ||
- name: "Checkout Code" | ||
uses: actions/checkout@v3 | ||
|
||
- name: Execute Performance Tests | ||
shell: bash | ||
run: | | ||
make start-e2e-performance-test | ||
container_id=$(docker ps --filter "ancestor=orchestrator:latest" --format "{{.ID}}") | ||
if [ -z "$container_id" ]; then | ||
echo "Orchestrator container is not currently running. Exiting..." | ||
exit 1 | ||
fi | ||
echo "Monitoring Orchestrator container with ID: $container_id" | ||
while true; do | ||
current_status=$(docker ps -q | grep $container_id || echo "docker-ps-error") | ||
if [ "$current_status" == "docker-ps-error" ]; then | ||
echo "***********************************" | ||
echo "* *" | ||
echo "* *" | ||
echo "* TESTING COMPLETE *" | ||
echo "* *" | ||
echo "* *" | ||
echo "***********************************" | ||
docker logs $container_id || echo "no logs" | ||
exit 0 | ||
else | ||
echo "Testing in progress still...." | ||
if [ "${{ github.event.inputs.debug }}" == "true" ]; then | ||
docker logs $container_id || echo "no logs" | ||
fi | ||
fi | ||
sleep 5 | ||
done |
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
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
Oops, something went wrong.