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

feat: publicly expose e2e TestIndexerRunner #2242

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Conversation

rvagg
Copy link
Contributor

@rvagg rvagg commented Sep 12, 2023

Ref: ipld/frisbii#36

This doesn't introduce anything new to the test, but exposes pieces in a way to make the runner framework reusable. It turns out that it's probably pretty useful just for generic test environments and maybe should even be its own package. But for now this works for me in Frisbii; see ipld/frisbii#36.

@codecov-commenter
Copy link

codecov-commenter commented Sep 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.99% 🎉

Comparison is base (54cdcdc) 46.24% compared to head (d2bb69c) 47.24%.
Report is 2 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2242      +/-   ##
==========================================
+ Coverage   46.24%   47.24%   +0.99%     
==========================================
  Files          80       83       +3     
  Lines        9613     9747     +134     
==========================================
+ Hits         4446     4605     +159     
+ Misses       4644     4608      -36     
- Partials      523      534      +11     
Files Changed Coverage Δ
test/testipnirunner.go 0.00% <0.00%> (ø)

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@gammazero gammazero left a comment

Choose a reason for hiding this comment

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

See comments

test/testindexer.go Outdated Show resolved Hide resolved
}
}
}
}()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know that is what it did previously, but...

It seems strange to watch every command and see if its output contains something a watcher is looking for. Would it make more sense if ...watchers were a parameter to Start?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A bit tricky because that's two lots of varargs, but if you have a look at the latest commit you'll see my attempt to resolve the problem by introducing a new Execution type that lets us build an "execution" and attach watchers to it d2bb69c

Copy link
Collaborator

@gammazero gammazero left a comment

Choose a reason for hiding this comment

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

Awesome!

@gammazero gammazero merged commit d5e4b20 into main Sep 13, 2023
@gammazero gammazero deleted the rvagg/expose-testutil branch September 13, 2023 06:56
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.

3 participants