testsAndMisc/docs/superpowers/contracts/sync-tests-fix-coverage-2026-05.json
Krzysztof kuhy Rudnicki 9e66638fda fix: sync test paths, drop stale assertions, fix coverage gap
- linux_configuration/tests: update script paths after periodic_background/
  reorganisation (hosts_file_monitor, makepkg_capped, music_parallelism,
  shutdown_timer_monitor, usage_monitoring_installer_efficiency)

- test_i3blocks_efficiency.sh: remove checks for HEARTBEAT_INTERVAL_S and
  WARP_POLL_INTERVAL_S constants that no longer exist

- test_pacman_wrapper_security.sh: remove tests 20-21 (builtin time helpers /
  external date calls) that are no longer applicable; update path

- generate_hosts_file.sh: add sed unblock rules for delio.com.pl and
  loverslab.com to stay consistent with install.sh whitelist

- steam_backlog_enforcer/scanning.py: remove unplayable_reason arg from
  logger.info call (too many format args); drop matching test assertion

- steam_backlog_enforcer/tests/test_protondb.py: add
  test_unplayable_reason_no_trending_tier to restore 100% branch coverage
  on protondb.py line 97 (was previously covered indirectly)
2026-05-16 15:46:02 +02:00

18 lines
1.4 KiB
JSON

{
"title": "Sync test paths, drop stale assertions, fix coverage gap",
"objective": "After a directory reorganisation in linux_configuration/scripts/, several shell tests had stale paths that prevented them from finding the scripts under test. Additionally, a logger call in scanning.py had one too many format arguments; removing the argument dropped coverage for protondb.py line 97 (unplayable_reason with no trending_tier), which must be restored. Success means all affected tests pass with correct paths, pre-commit is green, and steam_backlog_enforcer has 100% branch coverage.",
"acceptance_criteria": [
"All linux_configuration/tests/ shell tests reference the correct post-reorganisation script paths",
"test_i3blocks_efficiency.sh no longer checks for removed constants",
"scanning.py logger.info call has exactly 4 format args (no unplayable_reason)",
"steam_backlog_enforcer maintains 100% branch coverage (535 tests pass)",
"generate_hosts_file.sh unblock rules match install.sh whitelist"
],
"out_of_scope": [
"Changing actual script logic in linux_configuration",
"Modifying the blocked or unblocked domain lists",
"Fixing the 2 PytestUnraisableExceptionWarning warnings (pre-existing)"
],
"verifier": "python -m pytest python_pkg/steam_backlog_enforcer/ -q -n auto --cov=python_pkg/steam_backlog_enforcer --cov-branch --cov-fail-under=100; pre-commit run --files <all changed files>"
}