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

Facilitate devnet tests on fuel-gauge suite #3243

Open
maschad opened this issue Oct 2, 2024 · 4 comments
Open

Facilitate devnet tests on fuel-gauge suite #3243

maschad opened this issue Oct 2, 2024 · 4 comments
Labels
chore Issue is a chore

Comments

@maschad
Copy link
Member

maschad commented Oct 2, 2024

As per discussion with @petertonysmith94 it would be ideal to have an easy way to run the fuel-gauge tests against devnet as opposed to just solely with launchTestNode perhaps this could be added to the e2e workflow

@maschad maschad added the chore Issue is a chore label Oct 2, 2024
@petertonysmith94 petertonysmith94 self-assigned this Oct 3, 2024
@petertonysmith94
Copy link
Contributor

At the moment, I override launch-test-node with the following:

const { provider, wallets, cleanup } = await setupTestProviderAndWallets({
walletsConfig,
providerOptions,
nodeOptions: {
...nodeOptions,
snapshotConfig,
args,
},
});

  // const { provider, wallets, cleanup } = await setupTestProviderAndWallets({
  //   walletsConfig,
  //   providerOptions,
  //   nodeOptions: {
  //     ...nodeOptions,
  //     snapshotConfig,
  //     args,
  //   },
  // });

  const provider = await Provider.create(DEVNET_NETWORK_URL);
  const wallet = Wallet.fromPrivateKey('0xOMITTED', provider); // Obviously adding your private key here.
  const wallets = [wallet, wallet, wallet, wallet, wallet];
  const cleanup = () => {};

Then I run select tests via test:filter.

@petertonysmith94
Copy link
Contributor

petertonysmith94 commented Oct 3, 2024

I think we need to identify:

  • What tests are best for testing a wide range of scenarios (currently I do some predicate, contracts, scripts).
  • @danielbate could you add some extra info on the tests that you run usually
  • @Torres-ssf would also be super helpful if you could identify some tests that we could give a good coverage on the health of the network 🙏

Copy link
Contributor

Similar to what you are doing, but I always run coverage contract test, and the contract factory tests that include blobs.

The one additional thing I was thinking of developing, but I think this should exist outside of the repo, is an app that we can deploy ad hoc (with salt) that can hammer a bunch of test txs (that we can take from tests) but maybe have some of the functionality hooked up to the ecosystem (Pyth, Envio).

Copy link
Contributor

Un-assigning myself for now, as I underestimate the work required + my current workload.

@petertonysmith94 petertonysmith94 removed their assignment Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

No branches or pull requests

3 participants