Skip to content

Use annotation for coverage report#20

Merged
numbata merged 2 commits intomainfrom
annotations_report_coverage
Dec 21, 2025
Merged

Use annotation for coverage report#20
numbata merged 2 commits intomainfrom
annotations_report_coverage

Conversation

@numbata
Copy link
Copy Markdown
Owner

@numbata numbata commented Dec 21, 2025

Changes a way of how action comment the warnings to annotations-via-console. Writing coverage annotations directly to the console avoids the API call, which in turn lets the workflow run with the default GITHUB_TOKEN (no repository write permission).

@numbata numbata self-assigned this Dec 21, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 21, 2025

Memory Profile Report

Summary

Metric Value
Iterations 5
API Endpoints 18
Avg Allocated 1.73 MB
Avg Retained 188.88 KB
Retained Trend 20.94%
Memory Stable No
Potential Leak No

Iteration Details

# Allocated Retained Objects
1 1.73 MB 132.66 KB 22685
2 1.73 MB 202.94 KB 22685
3 1.73 MB 202.94 KB 22685
4 1.73 MB 202.94 KB 22685
5 1.73 MB 202.94 KB 22685

Top Memory Allocations (by location)

# Avg Memory Location
1 120.90 KB lib/grape_oas/api_model_builders/concerns/oas_utilities.rb:18
2 119.53 KB ...grape_oas/introspectors/entity_introspector_support/exposure_processor.rb:256
3 84.84 KB lib/grape_oas/api_model/schema.rb:26
4 84.84 KB lib/grape_oas/api_model/schema.rb:32
5 51.25 KB vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/lib/securerandom.rb:71
6 49.22 KB lib/grape_oas/introspectors/entity_introspector.rb:97
7 40.62 KB lib/grape_oas/api_model/schema.rb:43
8 32.93 KB vendor/bundle/ruby/3.4.0/gems/dry-logic-1.6.0/lib/dry/logic/rule.rb:94

Generated by Memory Profile workflow • Commit: 819a01b

Comment thread .github/workflows/ci.yml
run: bundle exec rake test
- name: Annotate uncovered lines
uses: ggilder/codecoverage@v1
uses: ggilder/codecoverage@6a0a9c002c49b6e5e4ce15f22574275600163618
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this specific commit: See the discussion in ggilder/codecoverage#20. This commit changes a way of how action comment the warnings to annotations-via-console. Writing coverage annotations directly to the console avoids the API call, which in turn lets the workflow run with the default GITHUB_TOKEN (no repository write permission)

Current GitHub annotation limits

  • 10 warnings + 10 errors per step
  • 50 annotations per job (sum of all steps)
  • 50 “run” annotations (system-generated)

If we ever need more than those limits, we can pin the action to a tag that re-enables the API path—at the cost of requiring the checks: write permission again.

@numbata numbata merged commit 006d5ea into main Dec 21, 2025
7 checks passed
@numbata numbata deleted the annotations_report_coverage branch December 21, 2025 22:31
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.

1 participant