Skip to content

Commit

Permalink
[TEST] Debug logs on build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-j-h committed Jun 12, 2024
1 parent 66469a7 commit 954fe31
Showing 1 changed file with 17 additions and 41 deletions.
58 changes: 17 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,46 +77,6 @@ jobs:
# for PR, only selective tests are run.
# More comprehensive suites are scheduled to run in master
tag:
- 'basic || basic-raft || (advanced && raft) || networks/typical::raft'
- 'basic || basic-istanbul || (advanced && istanbul) || empty-block-period || networks/typical::istanbul'
- 'basic || basic-istanbul || (advanced && istanbul) || empty-block-period || block-reward || networks/typical::qbft'
- 'gcmode && block-sync && networks/template::raft-3plus1'
- 'gcmode && block-sync && networks/template::istanbul-3plus1'
- 'gcmode && block-sync && networks/template::qbft-3plus1'
- 'learner-peer-management || raftdnsenable && networks/template::raft-3plus1'
- 'validator-management && networks/template::qbft-3plus1'
- 'validator-management && networks/template::istanbul-3plus1'
- 'hybrid-validator-management-manage-besu && networks/typical-hybrid::hybrid-template-q2b1'
- 'hybrid-validator-management-manage-quorum && networks/typical-hybrid::hybrid-template-q1b2'
- 'qbft-transition-network && networks/template::qbft-4nodes-transition'
- 'basic || basic-raft || (advanced && raft) || networks/plugins::raft'
- 'basic || basic-istanbul || (advanced && istanbul) || networks/plugins::qbft'
- 'basic || basic-istanbul || (advanced && istanbul) || networks/plugins::istanbul'
- 'basic || basic-raft || (advanced && raft) || networks/plugins::raft-account-plugin-hashicorp-vault'
- 'basic || basic-istanbul || (advanced && istanbul) || networks/plugins::qbft-account-plugin-hashicorp-vault'
- 'basic || basic-istanbul || (advanced && istanbul) || networks/plugins::istanbul-account-plugin-hashicorp-vault'
- 'basic-rpc-security || networks/plugins::raft-rpc-security'
- 'basic-rpc-security || networks/plugins::qbft-rpc-security'
- 'basic-rpc-security || networks/plugins::istanbul-rpc-security'
- 'migration && networks/template::raft-4nodes'
- 'migration && networks/template::istanbul-4nodes'
- 'migration && networks/template::raft-4nodes-ancientdb'
- 'migration && networks/template::istanbul-4nodes-ancientdb'
- 'permissions-v1 && networks/template::raft-3plus1'
- 'permissions-v2 && networks/template::raft-3plus1'
- 'privacy-enhancements-upgrade || networks/template::raft-4nodes-pe'
- 'privacy-enhancements-upgrade || networks/template::istanbul-4nodes-pe'
- 'multitenancy && networks/plugins::raft-multitenancy'
- 'basic || basic-raft || (advanced && raft) || networks/typical::raft-simple-mps'
- 'basic || basic-istanbul || (advanced && istanbul) || networks/typical::qbft-simple-mps'
- 'basic || basic-istanbul || (advanced && istanbul) || networks/typical::istanbul-simple-mps'
- 'basic || networks/typical::raftmps'
- 'basic || networks/typical::qbftmps'
- 'basic || networks/typical::istanbulmps'
- 'mps-upgrade-txtrace || networks/template::raft-4nodes-mps'
- 'mps-upgrade-txtrace || networks/template::istanbul-4nodes-mps'
- 'mps-mixed-network-psr-check || networks/template::raft-4nodes-mps-mixed'
- 'mps-mixed-network-psr-check || networks/template::istanbul-4nodes-mps-mixed'
- '(basic && !nosupport && !mps && !(spam && !raw) && !eth-api-signed && !privacy-enhancements-disabled && !graphql && !async && !extension && !storage-root && !personal-api-signed) || networks/typical-hybrid::hybrid'
runs-on: ubuntu-20.04
steps:
Expand All @@ -135,7 +95,9 @@ jobs:
echo "::set-output name=dockerEnvFile::$docker_env_file"
- name: 'Run acceptance tests'
run: |
echo ${{ steps.setup.outputs.dockerEnvFile }}
cat ${{ steps.setup.outputs.dockerEnvFile }}
echo "docker run..."
docker run --rm \
--network host \
-v /var/run/docker.sock:/var/run/docker.sock \
Expand All @@ -146,9 +108,23 @@ jobs:
-Dauto.outputDir=${{ steps.setup.outputs.outputDir }} \
-Dtags="${{ matrix.tag }}"
- name: 'Debug'
if: always()
run: |
docker images
echo "docker images"
docker images
echo "docker ps -a"
docker ps -a
echo "LOG DUMP"
containers=$(sudo docker ps -a | awk '{if(NR>1) print $NF}')
host=$(hostname)
# loop through all containers
for container in $containers
do
echo "Container: $container"
docker logs $container
echo ================================
done
acceptance-tests-extra:
name: Acceptance tests (${{ matrix.tag }})
needs:
Expand Down

0 comments on commit 954fe31

Please sign in to comment.