Skip to content

Commit

Permalink
updating release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed May 7, 2024
1 parent c5ef47b commit 014ef8b
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,43 +413,7 @@ jobs:
shell: bash
run: |
make start-e2e-import-mainnet-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=$(docker logs $container_id || echo "no logs")
docker_logs_check=$(echo "${docker_logs}" | grep "e2e passed" | grep -v grep)
if [ ! -z "${docker_logs_check}" ]; then
docker logs $container_id || echo "no logs"
echo "${docker_logs_check}"
echo "Testing Succeeded."
exit 0
else
docker logs $container_id || echo "no logs"
echo "${docker_logs_check}"
echo "Testing failed, didn't find th completed message in the logs."
exit 1
fi
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
docker logs -f "${container_id}" & exit $(docker wait "${container_id}")
- name: Mark Job Complete Skipped
if: ${{ github.event.inputs.skip_checks == 'true' }}
Expand Down

0 comments on commit 014ef8b

Please sign in to comment.