Skip to content

Unify showdiff reports - #383

Merged
JiriPavela merged 4 commits into
Perfexionists:develfrom
JiriPavela:refactor/unify-reports
Sep 9, 2026
Merged

JiriPavela merged 4 commits into
Perfexionists:develfrom
JiriPavela:refactor/unify-reports

Conversation

@JiriPavela

@JiriPavela JiriPavela commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

This PR unifies the core logic for generating HTML diff reports from both Perun-native profiles and external profiles (e.g. folded profiles).

It also reworks the project structure a bit: perun/profile is now perun/profiles and contains subpackages implementing different types of profiles (e.g., folded, pandas, polars), and the conversions between them. The structure is deliberately granular to take full advantage of lazy loading of expensive dependencies, such as pandas.

The perun/profile package structure has been reworked such that it
can contain sub-packages related to different profile
representations. This will allow us to better structure code
related to different profile types, e.g., folded, and
dependencies , e.g., pandas, or polars. Moreover, thanks to lazy
imports, we can cut down the Perun startup time and import only
relevant modules when, e.g., generating reports.
Both Perun-native and external profiles now use the same core
logic for generating the HTML reports.
@codacy-production

codacy-production Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 high · 1 medium

Alerts:
⚠ 2 issues (≤ 0 issues of at least minor severity)

Results:
2 new issues

Category Results
UnusedCode 1 medium
ErrorProne 1 high

View in Codacy

🟢 Metrics 536 complexity · 10 duplication

Metric Results
Complexity 536
Duplication 10

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JiriPavela
JiriPavela force-pushed the refactor/unify-reports branch 3 times, most recently from 40e37b2 to 1096d2e Compare September 9, 2026 07:44
@JiriPavela
JiriPavela force-pushed the refactor/unify-reports branch from 1096d2e to ce27f40 Compare September 9, 2026 08:21
@JiriPavela
JiriPavela marked this pull request as ready for review September 9, 2026 09:49
@JiriPavela
JiriPavela merged commit 05356f0 into Perfexionists:devel Sep 9, 2026
31 of 33 checks passed
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