wafer-core 0.1.32__py3-none-any.whl → 0.1.34__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wafer_core/lib/trace_compare/__init__.py +9 -22
- wafer_core/lib/trace_compare/analyzer.py +160 -584
- wafer_core/lib/trace_compare/classifier.py +18 -321
- wafer_core/lib/trace_compare/fusion_analyzer.py +753 -329
- wafer_core/lib/trace_compare/loader.py +220 -413
- wafer_core/targets/__init__.py +21 -47
- wafer_core/utils/kernel_utils/defense.py +1 -813
- wafer_core/utils/kernel_utils/targets/config.py +24 -8
- {wafer_core-0.1.32.dist-info → wafer_core-0.1.34.dist-info}/METADATA +1 -1
- {wafer_core-0.1.32.dist-info → wafer_core-0.1.34.dist-info}/RECORD +11 -11
- {wafer_core-0.1.32.dist-info → wafer_core-0.1.34.dist-info}/WHEEL +0 -0
wafer_core/targets/__init__.py
CHANGED
|
@@ -1,43 +1,5 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Re-export targets from utils for convenience."""
|
|
2
2
|
|
|
3
|
-
New API (preferred):
|
|
4
|
-
from wafer_core.targets import Target, TargetSpec, ReconcileResult
|
|
5
|
-
from wafer_core.targets.providers import get_provider
|
|
6
|
-
from wafer_core.targets.reconcile import reconcile
|
|
7
|
-
from wafer_core.targets.spec_store import load_spec, list_spec_names
|
|
8
|
-
from wafer_core.targets.state_cache import get_binding_hints
|
|
9
|
-
|
|
10
|
-
Legacy API (still works, will be deprecated):
|
|
11
|
-
from wafer_core.targets import RunPodTarget, runpod_ssh_context, ...
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
# ── New types ────────────────────────────────────────────────────────────────
|
|
15
|
-
from wafer_core.targets.digitalocean import (
|
|
16
|
-
DigitalOceanError,
|
|
17
|
-
DigitalOceanSSHInfo,
|
|
18
|
-
cleanup_all_droplets,
|
|
19
|
-
cleanup_digitalocean_target,
|
|
20
|
-
digitalocean_ssh_context,
|
|
21
|
-
get_droplet_state,
|
|
22
|
-
list_running_droplets,
|
|
23
|
-
)
|
|
24
|
-
from wafer_core.targets.runpod import (
|
|
25
|
-
RunPodError,
|
|
26
|
-
RunPodSSHInfo,
|
|
27
|
-
cleanup_all_pods,
|
|
28
|
-
cleanup_target,
|
|
29
|
-
get_pod_state,
|
|
30
|
-
list_running_pods,
|
|
31
|
-
runpod_ssh_context,
|
|
32
|
-
)
|
|
33
|
-
from wafer_core.targets.types import (
|
|
34
|
-
ReconcileResult,
|
|
35
|
-
Target,
|
|
36
|
-
TargetProvider,
|
|
37
|
-
TargetSpec,
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
# ── Legacy re-exports (unchanged, for backwards compatibility) ───────────────
|
|
41
3
|
from wafer_core.utils.kernel_utils.targets import (
|
|
42
4
|
BaremetalTarget,
|
|
43
5
|
DigitalOceanTarget,
|
|
@@ -56,14 +18,26 @@ from wafer_core.utils.kernel_utils.targets import (
|
|
|
56
18
|
select_target_for_operation,
|
|
57
19
|
target_to_deployment_config,
|
|
58
20
|
)
|
|
21
|
+
from wafer_core.targets.runpod import (
|
|
22
|
+
RunPodError,
|
|
23
|
+
RunPodSSHInfo,
|
|
24
|
+
cleanup_all_pods,
|
|
25
|
+
cleanup_target,
|
|
26
|
+
get_pod_state,
|
|
27
|
+
list_running_pods,
|
|
28
|
+
runpod_ssh_context,
|
|
29
|
+
)
|
|
30
|
+
from wafer_core.targets.digitalocean import (
|
|
31
|
+
DigitalOceanError,
|
|
32
|
+
DigitalOceanSSHInfo,
|
|
33
|
+
cleanup_all_droplets,
|
|
34
|
+
cleanup_digitalocean_target,
|
|
35
|
+
digitalocean_ssh_context,
|
|
36
|
+
get_droplet_state,
|
|
37
|
+
list_running_droplets,
|
|
38
|
+
)
|
|
59
39
|
|
|
60
40
|
__all__ = [
|
|
61
|
-
# New API
|
|
62
|
-
"Target",
|
|
63
|
-
"TargetSpec",
|
|
64
|
-
"TargetProvider",
|
|
65
|
-
"ReconcileResult",
|
|
66
|
-
# Legacy: target config types
|
|
67
41
|
"BaremetalTarget",
|
|
68
42
|
"VMTarget",
|
|
69
43
|
"ModalTarget",
|
|
@@ -80,7 +54,7 @@ __all__ = [
|
|
|
80
54
|
"check_target_available",
|
|
81
55
|
"find_free_gpu",
|
|
82
56
|
"run_operation_on_target",
|
|
83
|
-
#
|
|
57
|
+
# RunPod provisioning
|
|
84
58
|
"RunPodError",
|
|
85
59
|
"RunPodSSHInfo",
|
|
86
60
|
"runpod_ssh_context",
|
|
@@ -88,7 +62,7 @@ __all__ = [
|
|
|
88
62
|
"cleanup_all_pods",
|
|
89
63
|
"list_running_pods",
|
|
90
64
|
"get_pod_state",
|
|
91
|
-
#
|
|
65
|
+
# DigitalOcean provisioning
|
|
92
66
|
"DigitalOceanError",
|
|
93
67
|
"DigitalOceanSSHInfo",
|
|
94
68
|
"digitalocean_ssh_context",
|