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

github action for installing goka #373

Merged
merged 3 commits into from
Apr 4, 2022
Merged

github action for installing goka #373

merged 3 commits into from
Apr 4, 2022

Conversation

frairon
Copy link
Contributor

@frairon frairon commented Mar 6, 2022

This PR improves testing of goka

  • add action to install goka
  • replace custom test functions with testify
  • avoid stopping processors simultateously to avoid shutdown issues which would fail the test.

@frairon frairon force-pushed the action-install-goka branch 12 times, most recently from ff11c84 to 3800bb2 Compare March 8, 2022 09:28
@frairon frairon force-pushed the action-install-goka branch from 3800bb2 to c64c2be Compare March 8, 2022 11:14
juandes
juandes previously approved these changes Mar 10, 2022
return proc1.Run(ctx)
// simulatenously stopping multiple processors sometimes fails the processors, so this one gets delayed
// see issue #376 for details
return proc1.Run(DelayedCtxCloser(ctx, 5*time.Second))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

workaround to make the test more stable: avoid shutting down the processors simultaneously


err = tm.EnsureStreamExists(inputStream, 1)
test.AssertNil(t, err)
require.NoError(t, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test was flaky altogether, because it created the wrong topic, which ended up with two topics having two different number of partitions, as the examples-cluster was configured with "auto-create:true". This is fixed now and yields two new issues:

@frairon frairon force-pushed the action-install-goka branch from 6a20b55 to 06a6eaa Compare April 4, 2022 08:50
@frairon frairon force-pushed the action-install-goka branch from 06a6eaa to 0618db7 Compare April 4, 2022 09:23
@frairon frairon merged commit 2ff0aea into master Apr 4, 2022
@frairon frairon deleted the action-install-goka branch April 4, 2022 12:02
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