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

[autoscaler v2] add test for node provider #35593

Merged
merged 29 commits into from
May 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
scv119 committed May 22, 2023
commit 5f2dc011f91533beb61034752c3acf46af7fbfa8
11 changes: 4 additions & 7 deletions python/ray/autoscaler/v2/tests/test_node_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
import unittest

import pytest # noqa
from ray._private.test_utils import (
MockNode,
MockProcessRunner,
MockProvider,
load_test_config,
)
from ray._private.test_utils import MockNode, MockProvider, load_test_config
from ray.autoscaler._private.event_summarizer import EventSummarizer
from ray.autoscaler._private.node_launcher import BaseNodeLauncher
from ray.autoscaler._private.node_provider_availability_tracker import (
Expand All @@ -31,7 +26,9 @@ def setUp(self):
EventSummarizer(),
NodeProviderAvailabilityTracker(),
)
self.instance_config_provider = NodeProviderConfig()
self.instance_config_provider = NodeProviderConfig(
load_test_config("test_multi_node.yaml")
)
self.node_provider = NodeProviderAdapter(
self.base_provider, self.node_launcher, self.instance_config_provider
)
Expand Down