tiny-pilot / tiny-pilot/tinypilot

`execute_test.py` pollutes test output with error traces (MacOS)

Open
#1,713 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
3.5k
Forks
291
PR merge metrics
No merged PRs in 30d

Description

Follow-up issue of https://github.com/tiny-pilot/tinypilot/issues/1642.

We were able to silence the undesired stacktrace printing via https://github.com/tiny-pilot/tinypilot/pull/1708 – this, however, only appears to work on Linux systems and not on MacOS, because on MacOS, the multiprocessing package behaves differently.

We weren’t able to find a suitable workaround for MacOS, except if we’d account for this issue inside the underlying execute.py module (e.g. by trying to silence stderr there, with a /dev/null redirect). That is probably not a good trade-off, because we’d potentially be risking to change production behaviour only to fix a minor, local testing issue. There might be other approaches to solve this problem, though.

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 app/execute_test.py, especially the multiprocessing-related lines linked in the issue, then compare its behavior with app/execute.py on MacOS and Linux. Reproduce the unwanted error traces and investigate approaches that silence test-only output without changing production behavior; done means the MacOS test output is clean while Linux behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.