Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: try fixing E2E crosschain_swap failure #2266

Merged
merged 12 commits into from
May 30, 2024

Conversation

ws4charlie
Copy link
Contributor

@ws4charlie ws4charlie commented May 24, 2024

Description

The PR tries to fix this E2E test crosschain_swap failure: #2089
The failure can't be easily replicated and the reason remains unknown. Let's see if it happen again in the future after merge.

Update: the failure happens more frequently in upgrade test. It was reproduced in this test job with extra debugging information printed out.

The cause of the failure btc transaction not signe is that the utxo being signed is not owned by the regnet deployer address bcrt1qpfe2ymce7f2xy5nh8ad5q3j8vdt7v0pz2pv5jx. See below screenshot
image

5 upgrade test jobs in a row:

Closes:

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

@gartnera
Copy link
Member

gartnera commented May 24, 2024

The failure can't be easily replicated and the reason remains unknown. Let's see if it happen again in the future after merge.

https://github.com/zeta-chain/node/actions/runs/9169683804/job/25210551669 has a full log dump from all containers if that is useful. click "view raw logs" in the settings/gear menu for the best results

We need way to just run the e2e tests repeatedly until failure. #2264 helps a bit with that. You could do something like this:

#!/bin/bash

set -e

while true; do
  make start-e2e-test
  docker logs -f orchestrator &
  exit_code=$(docker wait orchestrator)
  if [[ $exit_code -ne 0 ]]; then
    exit $exit_code
  fi
  make stop-test
done

@lumtis
Copy link
Member

lumtis commented May 27, 2024

Started some upgrade tests to see https://github.com/zeta-chain/node/actions/workflows/execute_advanced_tests.yaml

If all 5 pass, I think we can safely assume this is good

UPDATE: not solving the issue

@lumtis
Copy link
Member

lumtis commented May 27, 2024

The failure can't be easily replicated and the reason remains unknown. Let's see if it happen again in the future after merge.

The issue happen very frequently with the upgrade test if this can help.

A difference you have with the upgrade test is that the local Bitcoin node will have mined lot of blocks by the time you start running the §crosschain_swap test unlike the regular test

@ws4charlie ws4charlie marked this pull request as draft May 29, 2024 05:31
@ws4charlie ws4charlie marked this pull request as ready for review May 29, 2024 18:15
Copy link
Member

@lumtis lumtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

e2e/runner/bitcoin.go Outdated Show resolved Hide resolved
Copy link
Contributor

@skosito skosito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just 2 nits about comments

e2e/runner/bitcoin.go Outdated Show resolved Hide resolved
e2e/e2etests/test_crosschain_swap.go Outdated Show resolved Hide resolved
@ws4charlie ws4charlie merged commit 14c1744 into develop May 30, 2024
19 checks passed
@ws4charlie ws4charlie deleted the try-fix-E2E-crosschain-swap branch May 30, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local E2E tests fail with crosschain_swap failed: btc transaction not signed
4 participants