tarantool / tarantool/tarantool

popen: implement thorough testing of popen Lua module

Open
#4,922 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

popen qa
Dominant language
Lua
Stars
3.7k
Forks
419
Avg merge
1d 23h
Merged PRs (30d)
88

Description

Tarantool version: 2.5.0-2-g098324556.

Many different aspects of the module behaviour are not tested at all. Say, we don't check that the engine actually closes STD{IN,OUT,ERR}_FILENO file descriptors when a user asked for this.

There is the rought plan:

https://github.com/tarantool/tarantool/blob/098324556aadf9f7e6b41758fbb62cc91f32d284/test/app-tap/popen.test.lua#L512-L603

And a couple of FIXME comments:

https://github.com/tarantool/tarantool/blob/098324556aadf9f7e6b41758fbb62cc91f32d284/test/app-tap/popen.test.lua#L319-L324

https://github.com/tarantool/tarantool/blob/098324556aadf9f7e6b41758fbb62cc91f32d284/test/app-tap/popen.test.lua#L411-L412

(But the latter should be fixed in #4913.)

See also #4921.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/app-tap/popen.test.lua, especially the rough plan at lines 512-603 and the FIXME comments at lines 319-324 and 411-412. Review the existing popen tests and related issue #4921; account for #4913 before addressing the latter FIXME. Done means the planned module behaviors are covered, including closing STDIN, STDOUT, and STDERR descriptors when requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.