Browse Source

Merge #1148 validation corrections into #3289

# Conflicts:
#	packages/experimental/code-runtime-python/tests/runtime.spec.ts
Tianyi Cui 1 tháng trước cách đây
mục cha
commit
ba0609571f

+ 3 - 1
packages/experimental/code-runtime-python/tests/runtime.spec.ts

@@ -771,6 +771,7 @@ describe('PythonCodeRuntime — process identity', () => {
 })
 
 describe('PythonCodeRuntime — inherited resource limits', () => {
+  // Darwin deliberately does not apply RLIMIT_AS, and its shell rejects `ulimit -v`.
   it.skipIf(process.platform === 'darwin')('runs under an inherited hard limit tighter than addressSpaceMb', async () => {
     // An unprivileged process may lower a hard rlimit but never raise it. Under
     // a harness started with `ulimit -v` below `addressSpaceBytes`, requesting
@@ -826,7 +827,8 @@ describe('PythonCodeRuntime — inherited resource limits', () => {
     }
   }, 15_000)
 
-  it('applies the configured limits when nothing tighter is inherited', async () => {
+  // The expected tuple includes RLIMIT_AS, which the backend deliberately skips on Darwin.
+  it.skipIf(process.platform === 'darwin')('applies the configured limits when nothing tighter is inherited', async () => {
     // The clamp must not weaken the normal path: with an infinite inherited hard
     // limit there is nothing to clamp against, and RLIM_INFINITY compares as -1,
     // so treating it as a numeric bound would collapse every limit to -1.

+ 3 - 3
pnpm-lock.yaml

@@ -4923,12 +4923,12 @@ importers:
       '@deepseek-ai/dsh-invariants':
         specifier: workspace:^
         version: link:../../runtime-diagnostics/invariants
-      '@deepseek-ai/dsh-session':
-        specifier: workspace:^
-        version: link:../../core/session
       '@deepseek-ai/dsh-timeout':
         specifier: workspace:^
         version: link:../../util/timeout
+      '@deepseek-ai/dsh-util-values':
+        specifier: workspace:^
+        version: link:../../util/values
 
   packages/experimental/inspector:
     dependencies: