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

Added timeout to gtest_raft_rpunit #16637

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Feb 19, 2024

Added timeout to for the gtest_raft_rpunit. This will allow us to retrieve logs from failed test.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

@mmaslankaprv
Copy link
Member Author

/dt

@vbotbuildovich
Copy link
Collaborator

Signed-off-by: Michal Maslanka <michal@redpanda.com>
Added timeout to the test to prevent it from hanging and to be able to
retrieve the logs from the test that execution stuck.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
@mmaslankaprv mmaslankaprv changed the title removed recently added test Added timeout to gtest_raft_rpunit Feb 20, 2024
@mmaslankaprv mmaslankaprv marked this pull request as ready for review February 20, 2024 08:01
Copy link
Contributor

@bharathv bharathv left a comment

Choose a reason for hiding this comment

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

nice idea to timeout and capture logs.

@mmaslankaprv mmaslankaprv merged commit bf6ebe7 into redpanda-data:dev Feb 20, 2024
21 checks passed
@@ -173,4 +175,7 @@ class seastar_test : public ::testing::Test {
#define ASSERT_LT_CORO(val1, val2) GTEST_ASSERT_LT_CORO(val1, val2)
#define ASSERT_LE_CORO(val1, val2) GTEST_ASSERT_LE_CORO(val1, val2)
#define ASSERT_NE_CORO(val1, val2) GTEST_ASSERT_NE_CORO(val1, val2)

#define GTEST_SKIP_CORO() GTEST_SKIP_CORO_("")

Copy link
Member

Choose a reason for hiding this comment

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

This macro appears to be unused in this PR. It also should have a test in test_utils/tests/gtest_tests.cc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants