Skip to content

Generate HTML coverage report only on failure#3564

Merged
koxudaxi merged 1 commit into
mainfrom
ci/html-coverage-on-failure
Jul 3, 2026
Merged

Generate HTML coverage report only on failure#3564
koxudaxi merged 1 commit into
mainfrom
ci/html-coverage-on-failure

Conversation

@koxudaxi

@koxudaxi koxudaxi commented Jul 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@koxudaxi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 5 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 045b1103-7f8c-4f41-935f-6f00249345fd

📥 Commits

Reviewing files that changed from the base of the PR and between c7f4938 and 9969bf7.

📒 Files selected for processing (1)
  • .github/workflows/test.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/html-coverage-on-failure

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

📚 Docs Preview: https://pr-3564.datamodel-code-generator.pages.dev

@codspeed-hq

codspeed-hq Bot commented Jul 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

✅ 11 untouched benchmarks
⏩ 98 skipped benchmarks1


Comparing ci/html-coverage-on-failure (9969bf7) with main (c7f4938)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c7f4938) to head (9969bf7).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #3564   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          163       163           
  Lines        34737     34737           
  Branches      4031      4031           
=========================================
  Hits         34737     34737           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koxudaxi koxudaxi merged commit e591aaa into main Jul 3, 2026
64 checks passed
@koxudaxi koxudaxi deleted the ci/html-coverage-on-failure branch July 3, 2026 09:48
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: The PR modifies only .github/workflows/test.yaml, a CI configuration file. It changes how the coverage job combines results and reports them (invoking coverage/diff-cover binaries directly instead of via tox), and changes the HTML report to be generated and uploaded only on failure. None of these changes affect the datamodel-code-generator package's generated code, Jinja2 templates, CLI options, Python API, default behaviors, supported Python versions, or error handling for end users. The deleted lines are all internal CI configuration. Therefore there are no user-facing breaking changes.


This analysis was performed by Claude Code Action

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🎉 Released in 0.68.0

This PR is now available in the latest release. See the release notes for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant