ibc-go icon indicating copy to clipboard operation
ibc-go copied to clipboard

Interchain build options not being propagated in E2E tests

Open chatton opened this issue 11 months ago • 3 comments

Summary

Currently, the call to ConfigureRelayer does not propagate options to here

We need to decide the best way to pass configuration functions.

If we were to continue with the current structure, we would add a configuration fn which modifies interchaintest.InterchainBuildOptions to the SetupChainsRelayerAndChannel function, however this seems like it will bloat the method signature a bit too much. It may be nicer to consolidation all of these configration fns into a single type. Maybe something along the lines of:

type SetupOptions struct {
 ChannelOptions func(*ibc.CreateChannelOptions)
 BuildOptions func(options *interchaintest.InterchainBuildOptions)
 ChainSpecOptions ChainOptionConfiguration
}

This could easily be extended as required.

As a side note, it looks like this fn is very poorly named, it is not just configuring the relayer, it is configuring the relayer and also creating all the docker resources for the chains!

We can rename this / split up functionality in a follow up.


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged/assigned

chatton avatar Mar 20 '24 11:03 chatton

Hi @chatton, I'd like to get this assigned :)

bznein avatar Apr 12 '24 13:04 bznein

woooo, thanks @bznein!! :heart:

DimitrisJim avatar Apr 12 '24 13:04 DimitrisJim

@bznein If you continue at this pace, there's not going to be issues left for the rest of the team, man!

crodriguezvega avatar Apr 12 '24 14:04 crodriguezvega

the structure of the tests has changed enough with the test suite level refactor that this issue isn't relevant anymore

chatton avatar Jul 11 '24 14:07 chatton