-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.test-log.txt
More file actions
120 lines (111 loc) · 22.2 KB
/
Copy path.test-log.txt
File metadata and controls
120 lines (111 loc) · 22.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[1m[46m RUN [49m[22m [36mv4.0.17 [39m[90mC:/projects/sereus/packages/cadre-host[39m
[32m✓[39m src/installer/__tests__/config.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 47[2mms[22m[39m
[32m✓[39m src/server/__tests__/origin-guard.test.ts [2m([22m[2m7 tests[22m[2m)[22m[33m 322[2mms[22m[39m
[32m✓[39m src/update/__tests__/store.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 54[2mms[22m[39m
[32m✓[39m src/nat/__tests__/port-mapper.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 16[2mms[22m[39m
[32m✓[39m src/auth/__tests__/trust-circle.test.ts [2m([22m[2m23 tests[22m[2m)[22m[32m 145[2mms[22m[39m
[32m✓[39m src/auth/__tests__/trust-circle-store.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 70[2mms[22m[39m
[32m✓[39m src/nat/__tests__/secrets.test.ts [2m([22m[2m11 tests[22m[2m | [22m[33m1 skipped[39m[2m)[22m[32m 37[2mms[22m[39m
[32m✓[39m src/server/__tests__/sse-route.test.ts [2m([22m[2m1 test[22m[2m)[22m[33m 664[2mms[22m[39m
[33m[2m✓[22m[39m delivers published events in order and cleans up on disconnect [33m 662[2mms[22m[39m
[32m✓[39m src/server/__tests__/error-handler.test.ts [2m([22m[2m10 tests[22m[2m)[22m[33m 587[2mms[22m[39m
[33m[2m✓[22m[39m TrustCircleError invalid_label → 400 [33m 468[2mms[22m[39m
[32m✓[39m src/server/__tests__/status-route.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 444[2mms[22m[39m
[33m[2m✓[22m[39m returns aggregated status without update service [33m 438[2mms[22m[39m
[32m✓[39m src/server/__tests__/nodes-route.test.ts [2m([22m[2m10 tests[22m[2m)[22m[33m 463[2mms[22m[39m
[33m[2m✓[22m[39m GET /api/nodes lists known nodes [33m 408[2mms[22m[39m
[32m✓[39m src/update/__tests__/manifest.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 16[2mms[22m[39m
[32m✓[39m src/update/__tests__/update-service.integration.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 56[2mms[22m[39m
[32m✓[39m src/update/__tests__/apply.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 7[2mms[22m[39m
[32m✓[39m src/nat/__tests__/ddns-updater.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 47[2mms[22m[39m
[32m✓[39m src/nat/__tests__/ddns-duckdns.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 13[2mms[22m[39m
[32m✓[39m src/nat/__tests__/nat-store.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 43[2mms[22m[39m
[32m✓[39m src/server/__tests__/bus.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 8[2mms[22m[39m
[32m✓[39m src/nat/__tests__/address-resolver.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 4[2mms[22m[39m
[32m✓[39m src/server/__tests__/settings-route.test.ts [2m([22m[2m6 tests[22m[2m)[22m[33m 522[2mms[22m[39m
[33m[2m✓[22m[39m GET returns the persisted config [33m 398[2mms[22m[39m
[32m✓[39m src/__tests__/cli.smoke.test.ts [2m([22m[2m2 tests[22m[2m)[22m[33m 2422[2mms[22m[39m
[33m[2m✓[22m[39m prints help with all subcommands [33m 951[2mms[22m[39m
[33m[2m✓[22m[39m prints version [33m 1470[2mms[22m[39m
[32m✓[39m src/update/__tests__/version.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 5[2mms[22m[39m
[32m✓[39m src/installer/__tests__/service-host.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
[32m✓[39m src/nat/__tests__/external-ip.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 12[2mms[22m[39m
[32m✓[39m src/nat/__tests__/reachability.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 5[2mms[22m[39m
[32m✓[39m src/installer/__tests__/identity.test.ts [2m([22m[2m2 tests[22m[2m | [22m[33m1 skipped[39m[2m)[22m[32m 10[2mms[22m[39m
[32m✓[39m src/installer/__tests__/wizard.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 8[2mms[22m[39m
[32m✓[39m src/installer/__tests__/paths.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 4[2mms[22m[39m
[32m✓[39m src/auth/__tests__/duration.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 8[2mms[22m[39m
[32m✓[39m src/installer/__tests__/installer.smoke.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 77[2mms[22m[39m
[32m✓[39m src/server/__tests__/publishers.test.ts [2m([22m[2m3 tests[22m[2m)[22m[33m 459[2mms[22m[39m
[33m[2m✓[22m[39m orchestrator.onStateChange → node-state-changed [33m 375[2mms[22m[39m
[32m✓[39m src/server/__tests__/server.smoke.test.ts [2m([22m[2m5 tests[22m[2m)[22m[33m 558[2mms[22m[39m
[33m[2m✓[22m[39m serves /api/status and respects the origin guard [33m 423[2mms[22m[39m
node.exe : (node:21108) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
At C:\Program Files\nodejs\yarn.ps1:16 char:5
+ & "$basedir/node$exe" "$basedir/node_modules/corepack/dist/yarn. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ((node:21108) [D...y concatenated.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
(Use `node --trace-deprecation ...` to show where the warning was created)
[32m✓[39m src/nat/__tests__/nat-service.test.ts [2m([22m[2m13 tests[22m[2m)[22m[33m 3767[2mms[22m[39m
[33m[2m✓[22m[39m getInviteAddresses → dns4 when DDNS configured + reachable [33m 648[2mms[22m[39m
[33m[2m✓[22m[39m putDdns persists secrets and updates status [33m 2985[2mms[22m[39m
[32m✓[39m src/__tests__/cli-invite.smoke.test.ts [2m([22m[2m9 tests[22m[2m)[22m[33m 6188[2mms[22m[39m
[33m[2m✓[22m[39m POSTs to /auth/invites with label + ttlMs and prints encoded invite [33m 1946[2mms[22m[39m
[33m[2m✓[22m[39m exits non-zero when cadre-host returns an error [33m 1009[2mms[22m[39m
[33m[2m✓[22m[39m exits 2 (no service) when cadre-host is not reachable [33m 615[2mms[22m[39m
[33m[2m✓[22m[39m rejects invalid --ttl [33m 626[2mms[22m[39m
[33m[2m✓[22m[39m renders members and pending invites [33m 462[2mms[22m[39m
[33m[2m✓[22m[39m DELETEs /auth/invites/<token> by default [33m 453[2mms[22m[39m
[33m[2m✓[22m[39m DELETEs /auth/members/<peerId> when id looks like a peerId [33m 359[2mms[22m[39m
[33m[2m✓[22m[39m treats secp256k1 peer IDs (16Uiu2HAm…) as members [33m 380[2mms[22m[39m
[33m[2m✓[22m[39m rejects invalid --port [33m 335[2mms[22m[39m
[32m✓[39m src/__tests__/cli-nat.smoke.test.ts [2m([22m[2m9 tests[22m[2m)[22m[33m 6224[2mms[22m[39m
[33m[2m✓[22m[39m GETs /nat/status and renders the snapshot [33m 2135[2mms[22m[39m
[33m[2m✓[22m[39m --json prints raw JSON [33m 1062[2mms[22m[39m
[33m[2m✓[22m[39m exits 2 when cadre-host is unreachable [33m 557[2mms[22m[39m
[33m[2m✓[22m[39m POSTs /nat/test [33m 542[2mms[22m[39m
[33m[2m✓[22m[39m PUTs /nat/ddns with provider + hostname + token [33m 408[2mms[22m[39m
[33m[2m✓[22m[39m exits 1 when --hostname is missing [33m 452[2mms[22m[39m
[33m[2m✓[22m[39m exits 1 when --token is missing on a non-TTY stdin [33m 328[2mms[22m[39m
[33m[2m✓[22m[39m PUTs /nat/settings with externallyManaged=true [33m 381[2mms[22m[39m
[33m[2m✓[22m[39m PUTs /nat/settings with --external-port and --no-upnp [33m 356[2mms[22m[39m
[31m❯[39m src/__tests__/orchestrator.test.ts [2m([22m[2m17 tests[22m[2m | [22m[31m1 failed[39m[2m | [22m[33m1 skipped[39m[2m)[22m[33m 8700[2mms[22m[39m
[33m[2m✓[22m[39m spawns a live child and persists handle, ports, and endpoints [33m 437[2mms[22m[39m
[33m[2m✓[22m[39m is true after spawn, false after kill, false on tampered token [33m 338[2mms[22m[39m
[33m[2m✓[22m[39m SIGTERM stops a cooperative child without needing SIGKILL [33m 420[2mms[22m[39m
[2m[90m↓[39m[22m escalates to SIGKILL when the child ignores SIGTERM
[33m[2m✓[22m[39m releases ports, deletes workdir, drops state [33m 373[2mms[22m[39m
[31m [31m×[31m returns plausible numbers with zero network counters[39m[33m 5094[2mms[22m[39m
[32m✓[39m rotates an oversized node.log before the new child opens it[32m 172[2mms[22m[39m
[32m✓[39m returns recent stdout lines from the child[32m 171[2mms[22m[39m
[32m✓[39m cascades base -> .1 -> ... and caps at maxFiles[32m 61[2mms[22m[39m
[32m✓[39m is a no-op when the active file does not exist[32m 61[2mms[22m[39m
[32m✓[39m handles a partial cascade (only base present)[32m 61[2mms[22m[39m
[32m✓[39m allocates sequentially, releases, and reuses[32m 62[2mms[22m[39m
[32m✓[39m markUsed reserves ports without allocating[32m 62[2mms[22m[39m
[32m✓[39m re-attaches to surviving children and reports dead ones[32m 234[2mms[22m[39m
[33m[2m✓[22m[39m grandchild stays alive and keeps logging after spawner process exits [33m 1027[2mms[22m[39m
[32m✓[39m encode/decode round-trips pid and token[32m 61[2mms[22m[39m
[32m✓[39m rejects malformed ids[32m 63[2mms[22m[39m
[90mstdout[2m | src/auth/__tests__/trust-circle-integration.test.ts[2m > [22m[2mTrustCircleService — real CadreNode integration[2m > [22m[2mcompletes the full issue → redeem → list → remove cycle
[22m[39mStopping libp2p node: control-host-j5s3w1p5rd:0
[32m✓[39m src/auth/__tests__/trust-circle-integration.test.ts [2m([22m[2m1 test[22m[2m)[22m[33m 314[2mms[22m[39m
[33m[2m✓[22m[39m completes the full issue → redeem → list → remove cycle [33m 312[2mms[22m[39m
[31m⎯⎯⎯⎯⎯⎯⎯[39m[1m[41m Failed Tests 1 [49m[22m[31m⎯⎯⎯⎯⎯⎯⎯[39m
[41m[1m FAIL [22m[49m src/__tests__/orchestrator.test.ts[2m > [22mHostProcessOrchestrator.getStats[2m > [22mreturns plausible numbers with zero network counters
[31m[1mError[22m: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".[39m
[36m [2m❯[22m src/__tests__/orchestrator.test.ts:[2m257:3[22m[39m
[90m255| [39m
[90m256| [39m[34mdescribe[39m([32m'HostProcessOrchestrator.getStats'[39m[33m,[39m () [33m=>[39m {
[90m257| [39m it('returns plausible numbers with zero network counters', async () …
[90m | [39m [31m^[39m
[90m258| [39m [35mconst[39m orch [33m=[39m [34mmakeOrchestrator[39m()[33m;[39m
[90m259| [39m [35mconst[39m { dockerId } [33m=[39m [35mawait[39m orch[33m.[39m[34mcreateContainer[39m([34mmakeRequest[39m([32m'c1'[39m))[33m;[39m
[31m[2m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯[22m[39m
[2m Test Files [22m [1m[31m1 failed[39m[22m[2m | [22m[1m[32m36 passed[39m[22m[90m (37)[39m
[2m Tests [22m [1m[31m1 failed[39m[22m[2m | [22m[1m[32m259 passed[39m[22m[2m | [22m[33m3 skipped[39m[90m (263)[39m
[2m Start at [22m 20:36:06
[2m Duration [22m 11.62s[2m (transform 34.53s, setup 0ms, import 45.17s, tests 32.33s, environment 8ms)[22m