Skip to content

Conversation

@Kamoppl
Copy link

@Kamoppl Kamoppl commented Dec 13, 2024

No description provided.

@Kamoppl Kamoppl force-pushed the kamilg/fix_ioclass_stat_tests branch from b6682e1 to 8eb3192 Compare December 18, 2024 23:14
@pep8speaks
Copy link

pep8speaks commented Dec 18, 2024

Hello @Kamoppl! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-12-18 23:17:31 UTC

@Kamoppl Kamoppl force-pushed the kamilg/fix_ioclass_stat_tests branch from 8eb3192 to 3b1f3f1 Compare December 18, 2024 23:17
katlapinka
katlapinka previously approved these changes Jan 31, 2025
@Kamoppl Kamoppl force-pushed the kamilg/fix_ioclass_stat_tests branch from 3b1f3f1 to 633e11b Compare February 28, 2025 10:32
@Kamoppl Kamoppl marked this pull request as ready for review February 28, 2025 10:33
Comment on lines 10 to 25
from api.cas import casadm
from api.cas import ioclass_config
from api.cas.cache_config import CleaningPolicy, CacheMode, CacheLineSize
from api.cas.cache_config import (
CleaningPolicy,
CacheMode,
CacheLineSize,
CacheModeTrait,
SeqCutOffPolicy,
)
from api.cas.casadm import StatsFilter
from api.cas.cli_messages import (
check_stderr_msg,
get_stats_ioclass_id_not_configured,
get_stats_ioclass_id_out_of_range
get_stats_ioclass_id_out_of_range,
)
from api.cas.ioclass_config import IoClass
Copy link
Contributor

Choose a reason for hiding this comment

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

cleanup imports:
from api.cas import casadm and from api.cas.casadm import StatsFilter
from api.cas import ioclass_config and from api.cas.ioclass_config import IoClass - furthermore later in code there is IoClass = ioclass_config.IoClass

Copy link
Contributor

Choose a reason for hiding this comment

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

While technically this is correct, what I had in mind was importing necessary things from each module (it's like 3 references for each)

@Kamoppl Kamoppl force-pushed the kamilg/fix_ioclass_stat_tests branch from 633e11b to 07ce616 Compare March 3, 2025 15:47
Signed-off-by: Kamil Gierszewski <[email protected]>
@Kamoppl Kamoppl force-pushed the kamilg/fix_ioclass_stat_tests branch from 07ce616 to f3d84ce Compare March 3, 2025 15:48
stat_val.append(cache_stat.dirty.get_value())
stat_name = cache_stat
else:
for stat_name in cache_stat:
Copy link
Contributor

Choose a reason for hiding this comment

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

stat_name is not an accurate variable name

stat_val.append(core_stat.dirty.get_value())
stat_name = core_stat
else:
for stat_name in core_stat:
Copy link
Contributor

Choose a reason for hiding this comment

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

same

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.

4 participants