Skip to content

tests: queue tests fail #140

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

Merged
merged 1 commit into from
Feb 1, 2022
Merged

tests: queue tests fail #140

merged 1 commit into from
Feb 1, 2022

Conversation

vr009
Copy link

@vr009 vr009 commented Jan 26, 2022

tests: queue tests fix

Before this patch, queue tests failed due to impossibility to use _queue_taken,
which was deprecated in tarantool/queue [1]. Switch to _queue_taken_2 fixed it.

Create access and some other actions were denied for test user.
Additional grants fixed this problem.

The test TestUtube_Put was affected by replacing timeout in the call
of TakeTimeout() with timeout of connection structure. For clarification
of this effect see annotation for function TakeTimeout() [2]. That was
fixed by making connection timeout longer than the timeout in the function call.

The step in testing.yml was uncommented for enabling queue tests in CI.

  1. queue/_queue_taken_2
  2. https://github.com/tarantool/go-tarantool/blob/master/queue/queue.go#L35

Fixes #115

@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch 3 times, most recently from 221b01d to 3e71f41 Compare January 26, 2022 08:07
@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch from 3e71f41 to 876a8f2 Compare January 26, 2022 08:21
@DifferentialOrange
Copy link
Member

Btw, commit name is confusing: queue tests are fixed now, they fail no more.

@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch from 876a8f2 to fc3e382 Compare January 26, 2022 08:52
@vr009
Copy link
Author

vr009 commented Jan 26, 2022

Btw, commit name is confusing: queue tests are fixed now, they fail no more.

Fixed.

@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch 11 times, most recently from e908f0b to 6ba27e0 Compare January 26, 2022 14:19
@DifferentialOrange DifferentialOrange deleted the vr009/gh-115-queue-tests-failure branch January 31, 2022 08:11
@DifferentialOrange DifferentialOrange restored the vr009/gh-115-queue-tests-failure branch January 31, 2022 08:11
@DifferentialOrange
Copy link
Member

Sorry, I removed the branch and closed the issue by mistake. Everything should be restored now.

@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch from 6ba27e0 to 5fbcdfb Compare January 31, 2022 09:01
@ligurio
Copy link
Member

ligurio commented Jan 31, 2022

For clarity: in module queue space queue_taken has been renamed to queue_taken_2 in commit tarantool/queue@271bc97, issue tarantool/queue#85.

Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

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

I have no objections

@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch from 5fbcdfb to ec8d114 Compare January 31, 2022 14:20
@vr009 vr009 requested a review from ligurio January 31, 2022 15:15
Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

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

LGTM

Before this patch, queue tests failed due to impossibility to use _queue_taken,
which was deprecated in tarantool/queue [1]. Switch to _queue_taken_2 fixed it.

Create access and some other actions were denied for test user.
Additional grants fixed this problem.

The test `TestUtube_Put` was affected by replacing timeout in the call
of `TakeTimeout()` with timeout of connection structure. For clarification
of this effect see annotation for function `TakeTimeout()` [2]. That was
fixed by making connection timeout longer than the timeout in the function call.

The step in testing.yml was uncommented for enabling queue tests in CI.

1. https://github.com/tarantool/queue/tree/7d05b6db5b0d596db4281d53b57811e156234a0d#fields-of-the-_queue_consumers-space
2. https://github.com/tarantool/go-tarantool/blob/master/queue/queue.go#L35

Fixes #115
@vr009 vr009 force-pushed the vr009/gh-115-queue-tests-failure branch from ec8d114 to 75efd65 Compare February 1, 2022 13:57
@vr009 vr009 merged commit c84ec85 into master Feb 1, 2022
@vr009 vr009 deleted the vr009/gh-115-queue-tests-failure branch February 1, 2022 14:11
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.

Queue tests fail
3 participants