-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: enhance lago test setup #12868
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
chore: enhance lago test setup #12868
Conversation
Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
| test_dir: | ||
| - t/plugin/[a-k]* | ||
| - t/stream-plugin t/plugin/[l-z]* | ||
| - t/stream-plugin t/plugin/[l-z]*.t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the t/plugin/[a-k]* line above not need to be modified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, and I have done that.
| ).resolves.not.toThrow() | ||
| console.log(`[${new Date().toLocaleTimeString()}] created consumer`) | ||
| }); | ||
| }, 5 * 1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test block was missing a timeout
| local ok, stdout, stderr, reason, status = shell.run([[ $exec_snippet ]], $stdin, @{[($timeout-1)*1000]}, $max_size) | ||
| if not ok then | ||
| ngx.log(ngx.WARN, "failed to execute the script with status: " .. (status or "nil ") .. ", reason: " .. (reason or "nil ") .. ", stderr: " .. (stderr or "nil ")) | ||
| ngx.log(ngx.WARN, "failed to execute the script with status: " .. (status or "nil ") .. ", reason: " .. (reason or "nil ") .. ", stdout: " .. (stdout or "nil ") .. ", stderr: " .. (stderr or "nil ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


Description
This PR attempts to enhance the reliablity of lago test. Please check comments for detailed information.
Checklist