Browse Source

fix(ci): make Windows fixtures portable

imccyu 1 tháng trước cách đây
mục cha
commit
975bf864ef

+ 1 - 3
packages/subagent/subagent-codex/tests/real-product.spec.ts

@@ -385,9 +385,7 @@ describe('real @openai/codex 0.147.0 product', () => {
 
   it('executes an explicitly selected dangerous bypass write in the isolated workspace', async () => {
     const sideEffect = 'bypass-side-effect'
-    const command = process.platform === 'win32'
-      ? `cmd /c echo bypass>${sideEffect}`
-      : `printf bypass > ${sideEffect}`
+    const command = `echo bypass>${sideEffect}`
     const commandCalls = [
       {
         name: 'exec_command',

+ 2 - 1
scripts/verify-cordis-config.ts

@@ -294,11 +294,12 @@ function validateAppResolution(): string[] {
 /**
  * Discover workspace Bundle packages from their manifest declaration.
  * @param repoRoot Repository root to scan.
- * @returns Sorted repository-relative package manifest paths.
+ * @returns Sorted slash-normalized repository-relative package manifest paths.
  */
 export function bundleManifestPaths(repoRoot: string = root): string[] {
   return globSync('packages/*/*/package.json', { cwd: repoRoot })
     .filter(path => typeof readManifest(path, repoRoot).dsh?.bundle?.patch === 'string')
+    .map(path => path.replaceAll('\\', '/'))
     .sort()
 }