Skip to content

[code-improvement] deduplication: centralize performance result identity - #167

Merged
Pedro Henrique Penna (ppenna) merged 1 commit into
devfrom
code-improvement/dedupe-performance-result-identity-c8f77cadced171f7
Sep 21, 2026
Merged

Pedro Henrique Penna (ppenna) merged 1 commit into
devfrom
code-improvement/dedupe-performance-result-identity-c8f77cadced171f7

Conversation

@ppenna

Copy link
Copy Markdown
Contributor

Scope: deduplication

Centralizes the repeated five-field performance result identity tuple in a private _result_identity helper and uses it for current-result validation, cross-file validation, and persisted-result filtering. This preserves the existing fallback-platform behavior while removing four independently maintained tuple constructions.

Evidence: the same platform/ABI/processors/commit/metric identity was assembled repeatedly in scripts/nvx_tools/performance.py. The current dev baseline passed, so no failing-check scope applied. Recent code-improvement outcomes were reconciled: all nine marked pull requests were merged without maintainer rejection or changes-requested feedback. The higher-weight code-quality candidates were rejected because they duplicated prior selections or overlapped active work; no open issue, pull request, or active performance-file change covers this helper extraction.

Changed files: scripts/nvx_tools/performance.py only. Patch size: 16 additions + 32 deletions = 48 changed lines.

Validation (all passed):

  • python3 -m unittest scripts/test_performance.py -v (48 tests)
  • python -m unittest scripts/test_performance.py -q
  • python -m unittest scripts/test_performance.py scripts/test_nvx_tools.py scripts/test_microvm_tests.py scripts/test_development_release.py -q
  • python -m compileall -q scripts
  • python -m ruff check scripts
  • python -m pyright --pythonplatform Linux
  • python -m pyright --pythonplatform Windows
  • python -m ruff format --check scripts
  • python .github/skills/nvx-host-connect/scripts/test_hosts.py -v
  • python scripts/nvx.py --help
  • python scripts/nvx.py test-openvmm-unit --help
  • python scripts/nvx.py test-openvmm --help
  • python scripts/nvx.py test-microvm --help
  • python scripts/nvx.py benchmark --help
  • git diff --check

No dependency, public API/CLI/ABI, gitlink, or OpenVMM change was made.

Generated by code-improvement · copilot · gpt56 · 123.9 AIC · ⌖ 24.5 AIC · ⊞ 15.9K ·

  • expires on Oct 5, 2026, 4:51 PM UTC

Copilot AI balanced review requested due to automatic review settings September 21, 2026 16:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused refactor preserves existing identity semantics and is covered by the performance test suite.

Review effort: Balanced
Findings: None

What changed in this PR

Centralizes performance-result identity construction without changing existing deduplication or fallback-platform behavior.

Changes:

  • Adds _result_identity.
  • Reuses it for validation and persistence filtering.
  • Removes four duplicate tuple constructions.
File Description
scripts/​nvx_tools/​performance.py Centralizes five-field result identity handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ppenna
Pedro Henrique Penna (ppenna) force-pushed the code-improvement/dedupe-performance-result-identity-c8f77cadced171f7 branch from 4d4383d to e254cad Compare September 21, 2026 21:42
Copilot AI review requested due to automatic review settings September 21, 2026 21:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused refactor preserves existing identity and fallback-platform semantics.

Review effort: Balanced
Findings: None

@ppenna
Pedro Henrique Penna (ppenna) merged commit 4fff1a9 into dev Sep 21, 2026
24 checks passed
@ppenna
Pedro Henrique Penna (ppenna) deleted the code-improvement/dedupe-performance-result-identity-c8f77cadced171f7 branch September 21, 2026 22:08
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.

2 participants