Skip to content

[skip] display skips only on uncached run#8071

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-skip-9
Jun 21, 2026
Merged

[skip] display skips only on uncached run#8071
TomasVotruba merged 2 commits into
mainfrom
tv-skip-9

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Jun 21, 2026

Copy link
Copy Markdown
Member

Display unused skips only on an uncached run

Follow-up to unused-skip reporting. On a cached run only the changed files are re-processed, so skips on cached files never get a chance to match and would all look falsely unused. This disables unused-skip reporting whenever the run is incomplete.

Changes

  • Option::IS_CACHED_RUN — new internal flag, set in UnchangedFilesFilter when the unchanged-files cache drops at least one file from the run (count($changedFileInfos) < count($filePaths)).
  • UnusedSkipResolver — returns [] when IS_CACHED_RUN is set, so no false positives reach console or JSON output.
  • MissConfigurationReporter — adds a blank line between listed items, keeping grouped rule skips visually separated.
  • TesttestResolvesNothingWhenRunIsCached covers the cached-run guard.

Clear the cache (--clear-cache) to get full unused-skip reporting again.

@TomasVotruba TomasVotruba changed the title tv skip 9 [skip] display skips only on uncached run Jun 21, 2026
@TomasVotruba TomasVotruba merged commit df98b3b into main Jun 21, 2026
67 checks passed
@TomasVotruba TomasVotruba deleted the tv-skip-9 branch June 21, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant