Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Node.js 18
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: npm

- name: Install dependencies
Expand Down
18 changes: 12 additions & 6 deletions benchmarks/harness-benchmark.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ const SCENARIOS: Scenario[] = [
shouldCatch: true,
gate: "review",
},
// 3. Platform mismatch — Linux paths on macOS
// 3. Platform mismatch — always uses the "other" OS patterns
// On Linux CI: catches macOS patterns. On macOS: catches Linux patterns.
{
name: "platform-mismatch: Linux /proc/ on macOS",
name: "platform-mismatch: wrong OS patterns",
category: "platform",
diffLines: [
"+const cpuInfo = readFileSync('/proc/cpuinfo', 'utf-8');",
"+const cgroups = readFileSync('/proc/cgroups', 'utf-8');",
],
diffLines: process.platform === "linux"
? [
"+const app = NSApplication.sharedApplication();",
"+const plist = readFileSync('/Library/Preferences/com.apple.finder.plist');",
]
: [
"+const cpuInfo = readFileSync('/proc/cpuinfo', 'utf-8');",
"+const cgroups = readFileSync('/proc/cgroups', 'utf-8');",
],
shouldCatch: true,
gate: "review",
},
Expand Down
Loading
Loading