Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Timing-dependent inspector coverage makes the suite report flapping misses

Open
#55 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with tests/test_inspector.py, which passes independently, then inspect threadmill/inspector/telemetry.py lines 37-41 and 81 and threadmill/inspector/app.py lines 592-603. Reproduce the coverage flapping and make those timing-dependent paths deterministic, or mark the assertions so coverage no longer depends on scheduling; the inspector tests and coverage should remain stable.

Written by the indexing model from the issue text.

Description

Found by testJoe while adding coverage for the fair multi-queue rotation (codingjoe-fair-multi-queue-scheduling). Pre-existing and untouched by that diff.

Coverage of these inspector paths flaps from run to run, which means the lines are reached by timing rather than deterministically — the tests under tests/test_inspector.py pass on their own (58/58 per run), so this is a flaky-coverage problem, not a red suite:

  • threadmill/inspector/telemetry.py:37-41 — the rates_for path.
  • threadmill/inspector/telemetry.py:81 — the _evict popitem path.
  • threadmill/inspector/app.py:592-603_refresh_sparklines.

Either drive those paths deterministically (inject the clock, shorten the refresh interval) or mark the timing-dependent assertions so coverage stops depending on scheduling.

Dominant language
Python
Stars
12
Forks
1
Avg merge
19h 11m
Merged PRs (30d)
12

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.

More from codingjoe/threadmill

All issues in codingjoe/threadmill

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.