← Back to Pull requests

[ZEPPELIN-6686] Align E2E coverage with Angular component targets #5445

Closed
unknown closed this pull request without merging on Sep 04, 2026 14:42 UTC
View on GitHub
unknown unknown commented on Aug 30, 2026 01:49 UTC
Author

What is this PR for?

CoverageReporter ignored the configured transform targets and scanned the Angular source tree again with scandirectory. This kept structural components in the report denominator and allowed PAGES to drift from the reported targets.

This PR uses cfg.transform as the reporter denominator. getCoverageTransformPaths() discovers src/app/*/.component.ts, removes four explicit structural components, and sorts the result. A Vitest spec requires PAGES to match the discovered targets.

Node.js 22 provides fs.globSync, so this PR removes scandirectory. It also includes package-level reporter specs in the shell Vitest, TypeScript and ESLint paths.

The metric covers the current Angular-hosted routes. A later route cutover must define how React-owned routes are counted.

This PR does not change runtime behavior, add E2E coverage, or introduce a coverage threshold. The current source tree contains 57 Angular components and four exclusions, resulting in 53 targets.

The affected AGENTS.md files document the new rules. The package guidance also reflects the TestBed setup merged through ZEPPELIN-6637.

What type of PR is it?

Bug Fix

Todos

[x] Use transform as the reporter denominator
[x] Discover Angular component targets
[x] Check PAGES and exclusion alignment
[x] Remove scandirectory
[x] Include package-level reporter specs in test and lint configuration
[x] Update the applicable AGENTS.md files

What is the Jira issue?

ZEPPELIN-6686

How should this be tested?

cd zeppelin-web-angular
npm run test:shell
npx tsc -p src/tsconfig.spec.json --noEmit
npx eslint \
  e2e/reporter.coverage.ts \
  e2e/reporter.coverage.config.ts \
  e2e/utils.ts \
  test/reporter.coverage.spec.ts \
  vitest.shell.config.mts \
  eslint.config.js

Results:

Shell tests: 7 files and 32 tests passed
Reporter tests: 3 tests passed
TypeScript check: passed
ESLint: 0 errors and 5 existing warnings in unchanged wait helpers
Current target alignment: 57 components, four exclusions and 53 targets

Screenshots (if appropriate)

N/A

Questions:

Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? The affected AGENTS.md files are updated.

Diff: 290 lines (+217 / -73) across 3 files Reviewer: jongyoul Review duration: 7972m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 290 lines diff across 3 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.339
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5445"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.9% (MEDIUM) · Higher = larger blast radius
39.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17.2% · Safe to merge
17.2%