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

Add new cardano-wallet-integration:e2e tests running on preprod #4949

Merged
merged 6 commits into from
Feb 6, 2025

Conversation

Anviking
Copy link
Member

@Anviking Anviking commented Jan 20, 2025

  • Add a new cardano-wallet-integration:e2e test suite that:
    • has, and intends to have, a minimal number of tests. It does not want to duplicate everything from cardano-wallet-integration.
    • mostly uses the same Test.Integration.Framework.DSL the integration tests are written in
    • is replacing lib/wallet-e2e and is intended to soon replace the ruby e2e tests
  • Run this cardano-wallet-integration:e2e in CI on windows
  • No longer run ruby e2e tests on win

Global preprod setup

We use only two wallets that are funded with ada. The transaction test will send funds from the richer to the poorer wallet. This should reduce the need for manual involvement as the funds last longer, and in a pinch we could even get by funding just one of the test wallets.

How to run

export HAL_E2E_PREPROD_MNEMONICS='<mnemonics be found in our vault>'
cabal test cardano-wallet-integration:e2e

With node and wallet stdout logs manually cleaned:

transactions
  simple transaction (TRANS_CREATE_01x) [✔]
stake pools
  list
    some have non-zero rewards, stake, producedBlocks, saturation [✔]
    some have metadata [‐]
      # PENDING: metadata fetching not configured; could be enabled

Issue Number

#4931

@Anviking Anviking self-assigned this Jan 20, 2025
@Anviking Anviking force-pushed the anviking/4931/integration-on-preprod branch 12 times, most recently from 59db45d to 6b56cfe Compare January 29, 2025 14:50
@Anviking Anviking force-pushed the anviking/4931/integration-on-preprod branch 4 times, most recently from 2092b2c to e73d952 Compare February 3, 2025 17:06
@Anviking Anviking marked this pull request as ready for review February 4, 2025 10:58
@Anviking Anviking changed the title Run TRANS_CREATE_01x on preprod in new cardano-wallet-integration:e2e Add new cardano-wallet-integration:e2e tests that run on preprod Feb 4, 2025
@Anviking Anviking changed the title Add new cardano-wallet-integration:e2e tests that run on preprod Add new cardano-wallet-integration:e2e tests running on preprod Feb 4, 2025
@Anviking Anviking requested review from paolino and abailly February 4, 2025 11:26
@Anviking Anviking force-pushed the anviking/4931/integration-on-preprod branch from fc41784 to b0de372 Compare February 4, 2025 17:43
@Anviking Anviking force-pushed the anviking/4931/integration-on-preprod branch 4 times, most recently from a0b6386 to ad91160 Compare February 6, 2025 09:53
These run on preprod and are to replace both the `wallet-e2e` and ruby
e2e tests.
This makes it feasible to have both the node and wallet log to stdout in
the cardano-wallet-integration:e2e tests.
@Anviking Anviking force-pushed the anviking/4931/integration-on-preprod branch from ad91160 to 0420f7d Compare February 6, 2025 10:06
- Add `withConfigs` function that reads configs at compile time, writes
  them to tmp dir with tweaks to tracer verbosity at runtime.

- We no longer have to set the E2E_CONFIG_DIR env var

- Restore the previous tracer verbosities in configs/cardano/preprod/config.json

- Unfortunately we need to duplicate the configs to make it build with
  haskell.nix. Neither "../.." paths, or "ln -s ../../configs configs"
  appeared to work.
@Anviking Anviking force-pushed the anviking/4931/integration-on-preprod branch from 0420f7d to 90c4a52 Compare February 6, 2025 10:22
@Anviking Anviking requested a review from paolino February 6, 2025 10:41
Copy link
Collaborator

@paolino paolino left a comment

Choose a reason for hiding this comment

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

thanks!

@Anviking Anviking enabled auto-merge February 6, 2025 14:19
@Anviking Anviking added this pull request to the merge queue Feb 6, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 6, 2025
)

- [x] Add a new `cardano-wallet-integration:e2e` test suite that:
- has, and intends to have, a minimal number of tests. It does not want
to duplicate everything from `cardano-wallet-integration`.
- mostly uses the same `Test.Integration.Framework.DSL` the integration
tests are written in
- is replacing `lib/wallet-e2e` and is intended to soon replace the ruby
e2e tests
- [x] Run this `cardano-wallet-integration:e2e` in CI on windows
- [new run which hopefully passes like the prev
one](https://buildkite.com/cardano-foundation/cardano-wallet/builds/9261#0194d089-3ef3-4f12-85ac-ad68f5a5f0b7)
and should now make the stages of the setup appear as sections in the
buildkite logs
- [x] No longer run ruby e2e tests on win

### Global preprod setup

We use only two wallets that are funded with ada. The transaction test
will send funds from the richer to the poorer wallet. This should reduce
the need for manual involvement as the funds last longer, and in a pinch
we could even get by funding just one of the test wallets.

### How to run

```bash
export HAL_E2E_PREPROD_MNEMONICS='<mnemonics be found in our vault>'
cabal test cardano-wallet-integration:e2e
```

With node and wallet stdout logs manually cleaned:

```bash
transactions
  simple transaction (TRANS_CREATE_01x) [✔]
stake pools
  list
    some have non-zero rewards, stake, producedBlocks, saturation [✔]
    some have metadata [‐]
      # PENDING: metadata fetching not configured; could be enabled
```

### Issue Number

#4931
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 6, 2025
@Anviking Anviking added this pull request to the merge queue Feb 6, 2025
@@ -583,6 +583,7 @@ steps:
depends_on:
- trigger-windows-e2e-tests
commands:
- diff -r configs/cardano/preprod lib/integration/configs/cardano/preprod # ensure the configs don't diverge despite being duplicated
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Merged via the queue into master with commit 3de379e Feb 6, 2025
30 checks passed
@Anviking Anviking deleted the anviking/4931/integration-on-preprod branch February 6, 2025 17:53
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.

2 participants