Skip to content

#250 Add before/after map hooks and PR coverage comments - #281

Merged
sanelli merged 11 commits into
mainfrom
250-before-after-map-hooks
Jul 19, 2026
Merged

#250 Add before/after map hooks and PR coverage comments#281
sanelli merged 11 commits into
mainfrom
250-before-after-map-hooks

Conversation

@sanelli

@sanelli sanelli commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add MappaBeforeMap / MappaAfterMap class- and method-level hooks with ordered resolution, MP00045/MP00046 diagnostics, generator codegen, tests, samples, AOT runner, and docs (alpha.14 → alpha.15).
  • Improve coverage-history SVG (current values, trend arrows, guides, dashed regression lines, local preview script).
  • Comment PR coverage vs gist baseline after tests (▲/▼/=), warn above 1% drop, fail above 5% drop.

Test plan

  • CI PR workflow passes (build, tests, coverage comment step).
  • Generated hooks compile; integration and sample tests cover ordering, context, and per-type class hooks.
  • Coverage comment appears on the PR and updates on re-runs.
  • Verify warning/fail thresholds behave as intended when coverage drops.

Closes #250

sanelli and others added 8 commits July 19, 2026 20:16
Introduce the public before/after map hook attributes with unit tests and bump to 10.2.0-alpha.14 so the generator can consume the new API.

Co-authored-by: Cursor <cursoragent@cursor.com>
Parse class and method hook attributes, resolve ordered before/after hooks with MP00045/MP00046 diagnostics, and emit root-body invocations around the core mapping strategy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cover hook resolution, ordering, diagnostics, and codegen, including inherited-interface discovery, then publish the generator package for sample consumption.

Co-authored-by: Cursor <cursoragent@cursor.com>
Demonstrate class/method hook ordering, context, and per-type class-level resolution with observable mutations.

Co-authored-by: Cursor <cursoragent@cursor.com>
Exercise hooks under native AOT and document attributes, algorithm, diagnostics MP00045/MP00046, and samples.

Co-authored-by: Cursor <cursoragent@cursor.com>
Show current coverage with trend markers, always mark the latest point, add dashed horizontal guides, and add a local gist-based SVG preview script.

Co-authored-by: Cursor <cursoragent@cursor.com>
Draw a same-color regression trend line for line, branch, and method coverage series.

Co-authored-by: Cursor <cursoragent@cursor.com>
After tests, compare coverage to gist baseline, comment with trends, warn above 1% drop, and fail above 5%.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sanelli sanelli linked an issue Jul 19, 2026 that may be closed by this pull request
4 tasks
@sanelli sanelli mentioned this pull request Jul 19, 2026
4 tasks
sanelli and others added 2 commits July 19, 2026 21:57
Read MAPPA-CODE-COVERAGE-HISTORY.MD via gh gist view with GH_PAT, matching UpdateCodeCoverageGists.ps1.

Co-authored-by: Cursor <cursoragent@cursor.com>
Allow the coverage comment step to read the GH_PAT environment secret for gist access.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use GH_PAT only for gist history, GITHUB_TOKEN with gh pr comment --edit-last --create-if-none for posting.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

Code coverage

Compared against the latest published coverage history from the code coverage gist.

Metric Baseline PR Δ Trend
Line 98.2% 98.2% 0 =
Branch 90.7% 90.7% 0 =
Method 100% 100% 0 =

No coverage metric dropped by more than 1 percentage point(s) versus baseline.

@sanelli
sanelli merged commit 73174b8 into main Jul 19, 2026
1 check passed
@sanelli
sanelli deleted the 250-before-after-map-hooks branch July 19, 2026 21: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.

Before / after map hooks

1 participant