Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bsang committed Oct 11, 2024
1 parent d594ee2 commit bccb9e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dlrover/python/diagnosis/common/diagnose_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class DiagnoseAction:
def __init__(self):
self.actions: List[str] = []
self._actions: List[str] = []

def add_action(self, action: str):
self.actions.append(action)
self._actions.append(action)

Check warning on line 22 in dlrover/python/diagnosis/common/diagnose_action.py

View check run for this annotation

Codecov / codecov/patch

dlrover/python/diagnosis/common/diagnose_action.py#L22

Added line #L22 was not covered by tests
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from dlrover.python.elastic_agent.master_client import MasterClient


class CollectMetricsOperator(InferenceOperator):
class MetricsCollectionOperator(InferenceOperator):
"""
CollectXPUTimerMetricsOperator is the operator to collect
XPU timer metrics.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from dlrover.python.diagnosis.inferencechain.inferenceoperator.check_failure_node_operator import ( # noqa: E501
CheckFailureNodeOperator,
)
from dlrover.python.diagnosis.inferencechain.inferenceoperator.collect_metrics_operator import ( # noqa: E501
CollectMetricsOperator,
from dlrover.python.diagnosis.inferencechain.inferenceoperator.metrics_collection_operator import ( # noqa: E501
MetricsCollectionOperator,
)


Expand All @@ -24,7 +24,7 @@ def get_training_failure_operators():


def get_worker_observe_operators():
return [CollectMetricsOperator()]
return [MetricsCollectionOperator()]


def get_worker_diagnosis_operators():
Expand Down
6 changes: 3 additions & 3 deletions dlrover/python/tests/test_inference_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
from dlrover.python.diagnosis.inferencechain.inferenceoperator.check_training_hang_operator import ( # noqa: E501
CheckTrainingHangOperator,
)
from dlrover.python.diagnosis.inferencechain.inferenceoperator.collect_metrics_operator import ( # noqa: E501
CollectMetricsOperator,
from dlrover.python.diagnosis.inferencechain.inferenceoperator.metrics_collection_operator import ( # noqa: E501
MetricsCollectionOperator,
)
from dlrover.python.elastic_agent.master_client import (
MasterClient,
Expand Down Expand Up @@ -148,7 +148,7 @@ def test_inference_chain(self):
)
def test_collect_metrics_operator(self, mock_collector):
mock_collector.return_value = "data"
operator = CollectMetricsOperator()
operator = MetricsCollectionOperator()
inf = Inference(
name=InferenceName.WORKER,
attribution=InferenceAttribute.COLLECT,
Expand Down

0 comments on commit bccb9e9

Please sign in to comment.