Skip to content

fix: promote silent analytics failures from debug to warning (#162)#191

Merged
maximn merged 3 commits into
mainfrom
maximn/review-workspace-changes
Jul 5, 2026
Merged

fix: promote silent analytics failures from debug to warning (#162)#191
maximn merged 3 commits into
mainfrom
maximn/review-workspace-changes

Conversation

@maximn

@maximn maximn commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Analytics/history computation failures were logged via core.debug(), invisible unless the consumer enables Actions step debug logging, so a dropped delta / flaky / perf / trends section (or lost run history) looked like a clean run. This promotes those data-affecting failures to core.warning() so they are visible on a normal run, while keeping "not enough runs yet" notices and verbose tracing at core.debug(). Resolves #162.

Changes

  • src/index.ts: the six analytics catch blocks (delta, tests-changed, flaky, perf, trends, base-branch) now warn with a "… section skipped." clarifier instead of debug-logging.
  • src/history/actions-cache-storage.ts: cache-hit-but-missing-history-file now warns ("run history unavailable this run.") instead of silently returning null at debug level.
  • Tests: updated the six analytics error-path assertions to expect warning, and added a cache-hit-but-missing-file test; all setFailed-never-called guarantees preserved.
  • Docs: marked known-issue E resolved and updated observability.md / history-analytics.md to the new logging convention.

Test plan

  • pnpm typecheck, pnpm lint, pnpm format:check clean
  • pnpm test — 738 passed (includes new/updated warning assertions and setFailed-never-called checks)
  • pnpm build bundles (dist/ not committed; CI rebuilds on main)
  • FR5 preserved: no core.setFailed(), always exit 0

maximn added 3 commits July 5, 2026 20:54
Analytics/history computation failures were logged via core.debug(), invisible
unless the consumer enables Actions step debug logging, so a dropped delta /
flaky / perf / trends section or lost run history looked like a clean run.

Promote the six analytics catch blocks and the cache-hit-but-missing-file case
to core.warning() with a "section skipped" clarifier. "Not enough runs yet"
notices and verbose tracing stay at core.debug(). Still never setFailed, always
exit 0 (FR5). Docs and known-issue E updated to reflect the resolution.
…ce-changes

# Conflicts:
#	.agents/known-issues.md
…ce-changes

# Conflicts:
#	.agents/known-issues.md
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

@maximn maximn merged commit ea3c073 into main Jul 5, 2026
7 checks passed
@maximn maximn deleted the maximn/review-workspace-changes branch July 5, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Promote silent analytics failures from core.debug() to core.warning()

1 participant