Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Conversation

@adlrocha
Copy link

Bitswap-tuning testcases were using an outdated version of the SDK so metrics weren't being successfully collected in INFLUXDB when using the latest version of testground.

I also extracted to a common.go many of the functions that may come handy for the development of additional Bitswap testcases.

@daviddias daviddias requested review from hacdias and nonsense August 18, 2020 15:36
"github.com/ipfs/test-plans/bitswap-tuning/utils"
)

func parseType(ctx context.Context, runenv *runtime.RunEnv, client *sync.DefaultClient, h host.Host, seq int64) (int64, utils.NodeType, int, error) {
Copy link
Member

Choose a reason for hiding this comment

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

FYI some of this parseType function and getNodeSetSeq is most probably redundant, as with the latest SDKs we have 2 types of global sequence:

  1. one unique global sequence for every single test plan instance (no matter which group it comes from)
  2. one unique group sequence for every instance within a group (something that this part of the code appears to be implementing, as we didn't have it before).

See https://github.com/testground/sdk-go/blob/master/run/init_context.go#L36-L37

Copy link
Member

@nonsense nonsense left a comment

Choose a reason for hiding this comment

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

Overall LGTM, although I haven't run this test plan.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants