@gravito/launchpad 0.1.0 → 1.0.0-beta.1
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.
- package/.turbo/turbo-test.log +25 -25
- package/package.json +1 -1
package/.turbo/turbo-test.log
CHANGED
|
@@ -2,67 +2,67 @@ $ bun test
|
|
|
2
2
|
bun test v1.3.4 (5eb2145b)
|
|
3
3
|
|
|
4
4
|
tests/mission.test.ts:
|
|
5
|
-
(pass) Mission > exposes mission properties [0.
|
|
5
|
+
(pass) Mission > exposes mission properties [0.18ms]
|
|
6
6
|
|
|
7
7
|
tests/Telemetry.test.ts:
|
|
8
8
|
[MissionControl] 準備發射任務: pr-1
|
|
9
9
|
[MissionControl] 任務 pr-1 映射端口: 3000
|
|
10
|
-
(pass) MissionControl Telemetry > 發射時應該能正確啟動日誌串流與效能監控 [
|
|
10
|
+
(pass) MissionControl Telemetry > 發射時應該能正確啟動日誌串流與效能監控 [1.22ms]
|
|
11
11
|
|
|
12
12
|
tests/mission-control.test.ts:
|
|
13
13
|
[MissionControl] 準備發射任務: mission-telemetry
|
|
14
14
|
[MissionControl] 任務 mission-telemetry 映射端口: 3000
|
|
15
15
|
[MissionControl] 任務 mission-telemetry TTL 已到期,執行自動回收...
|
|
16
|
-
(pass) MissionControl timers > emits stats and schedules recycle [0.
|
|
16
|
+
(pass) MissionControl timers > emits stats and schedules recycle [0.73ms]
|
|
17
17
|
|
|
18
18
|
tests/pool-manager.test.ts:
|
|
19
19
|
[LaunchPad] 正在熱機,準備發射 2 架新火箭...
|
|
20
|
-
(pass) PoolManager > warms up the pool with base containers [0.93ms]
|
|
21
20
|
[LaunchPad] 正在熱機,準備發射 1 架新火箭...
|
|
21
|
+
(pass) PoolManager > warms up the pool with base containers [1.12ms]
|
|
22
22
|
[LaunchPad] 資源吃緊,正在緊急呼叫後援火箭...
|
|
23
|
-
(pass) PoolManager > assigns missions to idle rockets or creates new ones [0.70ms]
|
|
24
23
|
[LaunchPad] 正在熱機,準備發射 1 架新火箭...
|
|
25
|
-
(pass) PoolManager >
|
|
24
|
+
(pass) PoolManager > assigns missions to idle rockets or creates new ones [1.55ms]
|
|
25
|
+
(pass) PoolManager > recycles rockets through refurbish flow [0.77ms]
|
|
26
26
|
|
|
27
27
|
tests/enterprise-coverage.test.ts:
|
|
28
|
-
(pass) Launchpad enterprise coverage > covers core enterprise primitives [0.
|
|
28
|
+
(pass) Launchpad enterprise coverage > covers core enterprise primitives [0.46ms]
|
|
29
29
|
|
|
30
30
|
tests/repository.test.ts:
|
|
31
|
-
(pass) InMemoryRocketRepository > stores and retrieves rockets [0.
|
|
32
|
-
(pass) InMemoryRocketRepository > finds idle rockets [0.
|
|
31
|
+
(pass) InMemoryRocketRepository > stores and retrieves rockets [0.27ms]
|
|
32
|
+
(pass) InMemoryRocketRepository > finds idle rockets [0.26ms]
|
|
33
33
|
|
|
34
34
|
tests/Rocket.test.ts:
|
|
35
|
-
(pass) Rocket > transitions through mission lifecycle and emits events [0.
|
|
36
|
-
(pass) Rocket > guards invalid transitions [0.
|
|
35
|
+
(pass) Rocket > transitions through mission lifecycle and emits events [0.20ms]
|
|
36
|
+
(pass) Rocket > guards invalid transitions [0.22ms]
|
|
37
37
|
|
|
38
38
|
tests/Refurbishment.test.ts:
|
|
39
39
|
[RefurbishUnit] 正在翻新火箭: r1 (容器: c1)
|
|
40
40
|
[RefurbishUnit] 火箭 r1 翻新完成,已進入 IDLE 狀態。
|
|
41
|
-
(pass) RefurbishUnit (Rocket Recovery) > 應該能執行深度清理並將火箭重置為 IDLE [0.
|
|
41
|
+
(pass) RefurbishUnit (Rocket Recovery) > 應該能執行深度清理並將火箭重置為 IDLE [0.63ms]
|
|
42
42
|
[RefurbishUnit] 正在翻新火箭: r2 (容器: c2)
|
|
43
43
|
[RefurbishUnit] 清理失敗: Disk Full
|
|
44
|
-
(pass) RefurbishUnit (Rocket Recovery) > 如果清理失敗應該將火箭除役 [0.
|
|
44
|
+
(pass) RefurbishUnit (Rocket Recovery) > 如果清理失敗應該將火箭除役 [0.19ms]
|
|
45
45
|
|
|
46
46
|
tests/payload-injector.test.ts:
|
|
47
|
-
(pass) PayloadInjector > throws when rocket has no mission [0.62ms]
|
|
48
47
|
[PayloadInjector] 正在拉取代碼: https://example.com/repo.git (main)
|
|
48
|
+
(pass) PayloadInjector > throws when rocket has no mission [1.06ms]
|
|
49
49
|
[PayloadInjector] 正在注入載荷至容器: container-10
|
|
50
50
|
[PayloadInjector] 正在安裝依賴...
|
|
51
51
|
[PayloadInjector] 點火!
|
|
52
|
-
(pass) PayloadInjector > deploys payload and ignites rocket [0.
|
|
52
|
+
(pass) PayloadInjector > deploys payload and ignites rocket [0.94ms]
|
|
53
53
|
|
|
54
54
|
tests/docker-adapter.test.ts:
|
|
55
|
-
(pass) DockerAdapter > creates base container when stdout has container id [
|
|
56
|
-
(pass) DockerAdapter > throws when container creation fails [0.
|
|
57
|
-
(pass) DockerAdapter > copyFiles throws on non-zero exit code [0.
|
|
58
|
-
(pass) DockerAdapter > executeCommand returns stdout and stderr [0.
|
|
59
|
-
(pass) DockerAdapter > getStats parses cpu and memory output [0.
|
|
60
|
-
(pass) DockerAdapter > streamLogs forwards stdout and stderr [
|
|
55
|
+
(pass) DockerAdapter > creates base container when stdout has container id [4.59ms]
|
|
56
|
+
(pass) DockerAdapter > throws when container creation fails [0.28ms]
|
|
57
|
+
(pass) DockerAdapter > copyFiles throws on non-zero exit code [0.26ms]
|
|
58
|
+
(pass) DockerAdapter > executeCommand returns stdout and stderr [0.22ms]
|
|
59
|
+
(pass) DockerAdapter > getStats parses cpu and memory output [0.13ms]
|
|
60
|
+
(pass) DockerAdapter > streamLogs forwards stdout and stderr [3.67ms]
|
|
61
61
|
|
|
62
62
|
tests/Integration.test.ts:
|
|
63
63
|
[LaunchPad] 正在熱機,準備發射 1 架新火箭...
|
|
64
64
|
[Test] 容器內 Bun 版本: 1.0.36
|
|
65
|
-
(pass) LaunchPad 集成測試 (真實 Docker) > 應該能成功熱機並在容器內執行指令 [
|
|
65
|
+
(pass) LaunchPad 集成測試 (真實 Docker) > 應該能成功熱機並在容器內執行指令 [829.72ms]
|
|
66
66
|
|
|
67
67
|
tests/Deployment.test.ts:
|
|
68
68
|
[LaunchPad] 資源吃緊,正在緊急呼叫後援火箭...
|
|
@@ -70,13 +70,13 @@ tests/Deployment.test.ts:
|
|
|
70
70
|
[PayloadInjector] 正在注入載荷至容器: cid-1
|
|
71
71
|
[PayloadInjector] 正在安裝依賴...
|
|
72
72
|
[PayloadInjector] 點火!
|
|
73
|
-
(pass) Payload Injection Flow > 應該能從指派任務到成功點火 [0.
|
|
73
|
+
(pass) Payload Injection Flow > 應該能從指派任務到成功點火 [0.56ms]
|
|
74
74
|
|
|
75
75
|
tests/PoolManager.test.ts:
|
|
76
76
|
[LaunchPad] 正在熱機,準備發射 2 架新火箭...
|
|
77
|
-
(pass) PoolManager (Application Service) > 應該能正確熱機並指派任務 [0.
|
|
77
|
+
(pass) PoolManager (Application Service) > 應該能正確熱機並指派任務 [0.56ms]
|
|
78
78
|
|
|
79
79
|
24 pass
|
|
80
80
|
0 fail
|
|
81
81
|
81 expect() calls
|
|
82
|
-
Ran 24 tests across 13 files. [
|
|
82
|
+
Ran 24 tests across 13 files. [1174.00ms]
|