mirror of
https://github.com/wassname/ray.git
synced 2026-07-27 11:26:41 +08:00
[Dashboard] Dashboard basic modules (#10303)
* Improve reporter module * Add test_node_physical_stats to test_reporter.py * Add test_class_method_route_table to test_dashboard.py * Add stats_collector module for dashboard * Subscribe actor table data * Add log module for dashboard * Only enable test module in some test cases * CI run all dashboard tests * Reduce test timeout to 10s * Use fstring * Remove unused code * Remove blank line * Fix dashboard tests * Fix asyncio.create_task not available in py36; Fix lint * Add format_web_url to ray.test_utils * Update dashboard/modules/reporter/reporter_head.py Co-authored-by: Max Fitton <mfitton@berkeley.edu> * Add DictChangeItem type for Dict change * Refine logger.exception * Refine GET /api/launch_profiling * Remove disable_test_module fixture * Fix test_basic may fail Co-authored-by: 刘宝 <po.lb@antfin.com> Co-authored-by: Max Fitton <mfitton@berkeley.edu>
This commit is contained in:
co-authored by
刘宝
Max Fitton
parent
cb438be146
commit
e9b046306a
+20
-10
@@ -1,12 +1,22 @@
|
||||
# py_test_module_list creates a py_test target for each
|
||||
# py_test_module_list creates a py_test target for each
|
||||
# Python file in `files`
|
||||
def py_test_module_list(files, size, deps, extra_srcs, **kwargs):
|
||||
for file in files:
|
||||
# remove .py
|
||||
name = file[:-3]
|
||||
native.py_test(
|
||||
name=name,
|
||||
size=size,
|
||||
srcs=extra_srcs+[file],
|
||||
**kwargs
|
||||
)
|
||||
for file in files:
|
||||
# remove .py
|
||||
name = file[:-3]
|
||||
native.py_test(
|
||||
name = name,
|
||||
size = size,
|
||||
srcs = extra_srcs + [file],
|
||||
**kwargs
|
||||
)
|
||||
|
||||
def py_test_run_all_subdirectory(include, exclude, extra_srcs, **kwargs):
|
||||
for file in native.glob(include = include, exclude = exclude):
|
||||
print(file)
|
||||
basename = file.rpartition("/")[-1]
|
||||
native.py_test(
|
||||
name = basename[:-3],
|
||||
srcs = extra_srcs + [file],
|
||||
**kwargs
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user