runcloud 0.2.204 → 0.2.206
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.
|
@@ -120,6 +120,32 @@ const SKIP_DIRS = new Set([
|
|
|
120
120
|
'node_modules',
|
|
121
121
|
'Pods',
|
|
122
122
|
]);
|
|
123
|
+
export function withEvaluatorRows(manifest, rawItems, projectDir) {
|
|
124
|
+
const expoProject = existsSync(path.join(projectDir, 'app.json')) || dynamicExpoConfig(projectDir) !== undefined;
|
|
125
|
+
if (!Array.isArray(rawItems) || !expoProject)
|
|
126
|
+
return { items: rawItems, note: '' };
|
|
127
|
+
let settled;
|
|
128
|
+
try {
|
|
129
|
+
settled = new Map(evaluateCompliance(manifest, projectDir).items.map((row) => [row.id, row]));
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
return { items: rawItems, note: '' };
|
|
133
|
+
}
|
|
134
|
+
const corrected = [];
|
|
135
|
+
const items = rawItems.map((raw) => {
|
|
136
|
+
const sent = raw;
|
|
137
|
+
const row = typeof sent?.id === 'string' ? settled.get(sent.id) : undefined;
|
|
138
|
+
if (!row || row.status === 'info' || (row.status === 'pass' && row.id === 'version'))
|
|
139
|
+
return raw;
|
|
140
|
+
if (sent.status !== row.status)
|
|
141
|
+
corrected.push(`${row.id} is ${row.status}${row.message ? ` (${row.message})` : ''}`);
|
|
142
|
+
return { ...raw, ...row };
|
|
143
|
+
});
|
|
144
|
+
const note = corrected.length
|
|
145
|
+
? ` The code says otherwise on ${corrected.length} row(s), and the card shows the code's answer: ${corrected.join('; ')}. Describe these as the card shows them.`
|
|
146
|
+
: '';
|
|
147
|
+
return { items, note };
|
|
148
|
+
}
|
|
123
149
|
export function evaluateCompliance(manifest, projectDir, options = {}) {
|
|
124
150
|
const root = path.resolve(projectDir);
|
|
125
151
|
const appJson = asReleased(readJson(path.join(root, 'app.json')), options.iosBundleId);
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '0.2.
|
|
1
|
+
export const CLI_VERSION = '0.2.206';
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -324,7 +324,7 @@ you refute a theory instead of arguing about it. The natural wrong answer on a
|
|
|
324
324
|
|
|
325
325
|
| field | what a zero proves |
|
|
326
326
|
| --- | --- |
|
|
327
|
-
| `memory_oom_kills`, `memory_oom_events` |
|
|
327
|
+
| `memory_oom_kills`, `memory_oom_events` | the host did not kill the VM for memory. It proves nothing about processes inside the guest: see below |
|
|
328
328
|
| `cpu_throttled_periods`, `cpu_throttled_millicores` | the CPU reservation was not starving it |
|
|
329
329
|
| lifetime `network` totals | at ~0 bytes in, no request ever arrived, so the fault is upstream of the guest |
|
|
330
330
|
|
|
@@ -333,8 +333,38 @@ rather than zero, and a zero you cannot trust proves nothing.
|
|
|
333
333
|
|
|
334
334
|
`memory_bytes` is the exception and it misleads. It is measured host-side and
|
|
335
335
|
includes page cache, so it routinely reads several times the sandbox's `mem_mb`
|
|
336
|
-
reservation. That is not a leak and not an impending OOM.
|
|
337
|
-
|
|
336
|
+
reservation. That is not a leak and not an impending OOM.
|
|
337
|
+
|
|
338
|
+
### Memory inside the guest
|
|
339
|
+
|
|
340
|
+
Every counter above is read on the host, from the cgroup of the VM process. That
|
|
341
|
+
cgroup has no memory limit, so its OOM and stall counters stay at zero while the
|
|
342
|
+
guest kernel runs out of memory. A guest without swap that runs out does not
|
|
343
|
+
always kill anything either: it can slow down until the agent stops answering,
|
|
344
|
+
and then the only symptom is `exec` timing out (`vsock: ... i/o timeout`).
|
|
345
|
+
|
|
346
|
+
The guest agent reports this itself, on the console:
|
|
347
|
+
|
|
348
|
+
```
|
|
349
|
+
--- guest memory pressure: available 212 of 7953 MiB (2%), oom_kills=0, largest: java[2143]=3121MiB java[1987]=2890MiB node[812]=410MiB at 2026-11-13T19:46:02Z ---
|
|
350
|
+
--- guest memory pressure continues: ...
|
|
351
|
+
--- guest memory pressure relieved: ...
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
runcloud sandbox logs <id> | grep -a -- '--- guest memory'
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
It is written when less than 5% of the guest's memory is available, repeated at
|
|
359
|
+
most once a minute until at least 10% is available again, and closed by a
|
|
360
|
+
`relieved` line. `oom_kills` here is the
|
|
361
|
+
guest kernel's own count, so it is the one that answers "did it OOM". `largest`
|
|
362
|
+
names the three biggest processes by resident memory. A `stalled some=…% full=…%`
|
|
363
|
+
part appears only on a kernel booted with PSI enabled.
|
|
364
|
+
|
|
365
|
+
Two limits. The agent is part of the image, so a sandbox on an image built
|
|
366
|
+
before this existed writes nothing, and silence there proves nothing. And a guest
|
|
367
|
+
that stalls within a few seconds can stop the agent before it writes.
|
|
338
368
|
|
|
339
369
|
### Lifecycle markers
|
|
340
370
|
|
package/runcloud-0.2.204.tgz
DELETED
|
Binary file
|