Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue: #4268945: Use class member instead of function call #290

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

Miryam-Schwartz
Copy link
Contributor

@Miryam-Schwartz Miryam-Schwartz commented Jan 23, 2025

What

In ibdiagnet2_port_counters_analyzer.py, remove the brackets on line 200.

Why ?

Using brackets is incorrect since there’s no function being called. The code should reference the class member instead.
Additionally, rename the function from save_last_iterations_time_stats to save_iterations_time_stats, as it saves general iteration time statistics.

https://redmine.mellanox.com/issues/4268945

Special triggers

Use the following phrases as comments to trigger different runs

  • bot:retest rerun Jenkins CI (to rerun GitHub CI, use "Checks" tab on PR page and rerun all jobs)
  • bot:upgrade run additional update tests

self._dataframes_for_pdf.append(
(
f"{self.telemetry_type} telemetry iteration time",
self._iteration_time_stats(),
self._iteration_time_stats,
Copy link
Collaborator

Choose a reason for hiding this comment

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

if we had a unit test for this, it would have catch it :)

@TalLerner TalLerner merged commit c9a96ef into Mellanox:main Jan 23, 2025
4 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.

4 participants