Skip to content
New issue

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

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

Already on GitHub? # to your account

test(pcli): sync wallet against testnet #4979

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

conorsch
Copy link
Contributor

Describe your changes

This test is off-by-default, given that it talks to a remote endpoint, and is rather slow. It can be run directly via:

cargo nextest run --release -p pcli --features integration-testnet sync_wallet_on_public_testnet

As usual, make sure to include the --release flag, otherwise it'll be much slower.

Issue ticket number and link

Related to changes described in #4978. Specifically, there were changes made in #4973 that broke ClientTls configs for tonic connections, but our test suite didn't catch that.

Testing and review

  1. Check this branch out locally and run cargo nextest run --release -p pcli --features integration-testnet sync_wallet_on_public_testnet
  2. Confirm that test passes!

It's also worth considering clicking this on in CI so we get assurance; I left it off by default but plan to ask for it to be used in subsequent testing towards #4978. Maybe we should just stick it in CI, at least temporarily?

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Test-only, no changes to app code. Intended to reduce the odds of breaking changes being merged.

This test is off-by-default, given that it talks to a remote endpoint,
and is rather slow. It can be run directly via:

  cargo nextest run --release -p pcli --features integration-testnet sync_wallet_on_public_testnet

As usual, make sure to include the `--release` flag, otherwise it'll be
much slower.
Copy link
Member

@erwanor erwanor left a comment

Choose a reason for hiding this comment

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

LGTM

@erwanor erwanor merged commit a8a23f2 into main Jan 11, 2025
14 checks passed
@erwanor erwanor deleted the pcli-testnet-sync-integration-test branch January 11, 2025 21:58
conorsch added a commit that referenced this pull request Jan 14, 2025
## Describe your changes

While working on the tonic version bumps in #4980, we discovered that
the HTTPS client support can break without failing CI. This PR builds on
the new tests in #4979, trying to establish a baseline sanity check that
"yes, the programs can talk to https endpoints" so that during a large
refactor, we can easily confirm no regressions.

## Issue ticket number and link

Refs 

* #4980
* #4979
* #4400

## Testing and review

Check out this branch, run `just integration-testnet` and confirm all
checks pass. I also tacked on a commit enabling these new tests in CI,
which I consider temporary, but useful for the immediate near-term.

It'd also be helpful to point out any places that might use HTTPS
clients that aren't covered yet.

## Checklist before requesting a review

- [x] I have added guiding text to explain how a reviewer should test
these changes.

- [x] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > tests/CI only, no app code changes
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants