Skip to content

Comments

[pull] main from SwanHubX:main#175

Merged
pull[bot] merged 2 commits intoxj63:mainfrom
SwanHubX:main
Feb 6, 2026
Merged

[pull] main from SwanHubX:main#175
pull[bot] merged 2 commits intoxj63:mainfrom
SwanHubX:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 6, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

SAKURA-CAT and others added 2 commits February 6, 2026 18:37
* Extract get_metrics and add unit tests

Refactor mounter.py to extract metric extraction into a static helper Mounter.get_metrics(columns, summaries). The new method builds a summary lookup to avoid nested loops, applies scalar-over-media precedence, filters non-SDK SYSTEM metrics, and uses -1 for keys with no summary. Also add comprehensive unit tests (test/unit/data/porter/test_mounter.py) covering basic behavior, precedence, missing summaries, system filtering (with mocking), error handling, and a large-scale performance check.

* Parameterize large-scale metrics test

Make TestMounterMetrics.test_get_metrics_large_scale accept a configurable `count` (default 1_000_000) and replace the local N variable with `count`. Remove debug print statements and update summaries/column generation to use the parameter, reducing noisy output and allowing the test size to be adjusted for different environments.
@pull pull bot locked and limited conversation to collaborators Feb 6, 2026
@pull pull bot added the ⤵️ pull label Feb 6, 2026
@pull pull bot merged commit cf5e48b into xj63:main Feb 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants