Skip to content

Commit

Permalink
remove the branch ref to default to main
Browse files Browse the repository at this point in the history
  • Loading branch information
areshand committed Dec 3, 2024
1 parent 997f8b9 commit b011781
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
provision-testnet:
if: |
github.event_name == 'schedule' ||
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' && (inputs.NETWORK == 'testnet' || inputs.NETWORK == 'all')
needs: determine-test-metadata
uses: ./.github/workflows/workflow-run-replay-verify-archive-storage-provision.yaml
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/replay-verify-on-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
replay-testnet:
if: |
github.event_name == 'schedule' ||
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' && (inputs.NETWORK == 'testnet' || inputs.NETWORK == 'all')
needs: determine-test-metadata
uses: ./.github/workflows/workflow-run-replay-verify-on-archive.yaml
Expand All @@ -72,8 +71,6 @@ jobs:
replay-mainnet:
if: |
github.event_name == 'schedule' ||
github.event_name == 'push' ||
github.event_name == 'pull_request' ||
github.event_name == 'workflow_dispatch' && (inputs.NETWORK == 'mainnet' || inputs.NETWORK == 'all' )
needs: determine-test-metadata
uses: ./.github/workflows/workflow-run-replay-verify-on-archive.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.BRANCH || 'add_replay_verify_workflow' }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}

# Authenticate to Google Cloud the project is aptos-ci
- name: Authenticate to Google Cloud
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/workflow-run-replay-verify-on-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.BRANCH || 'add_replay_verify_workflow' }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}

- uses: aptos-labs/aptos-core/.github/actions/docker-setup@main
id: docker-setup
Expand Down Expand Up @@ -113,6 +113,7 @@ jobs:
run: |
cd testsuite/replay-verify
poetry run python main.py --network ${{ inputs.NETWORK }} --cleanup
echo "Cleanup completed"
Expand Down
3 changes: 3 additions & 0 deletions testsuite/replay-verify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ def print_logs(failed_workpod_logs, txn_mismatch_logs):
(failed_logs, txn_mismatch_logs) = scheduler.collect_all_failed_logs()
scheduler.print_stats()
print_logs(failed_logs, txn_mismatch_logs)
if txn_mismatch_logs:
logger.error("Transaction mismatch logs found.")
exit(1)

finally:
scheduler.cleanup()

0 comments on commit b011781

Please sign in to comment.