Skip to content

test(e2e): cover TypeScript 7 auto inputs - #652

Draft
wan9chi wants to merge 2 commits into
test/e2e-cfg-filtersfrom
test/typescript-7-auto-input
Draft

test(e2e): cover TypeScript 7 auto inputs#652
wan9chi wants to merge 2 commits into
test/e2e-cfg-filtersfrom
test/typescript-7-auto-input

Conversation

@wan9chi

@wan9chi wan9chi commented Aug 12, 2026

Copy link
Copy Markdown
Member

Motivation

TypeScript 7 executes a native compiler. Automatic input tracking observes its source reads on Linux and Windows, while macOS library validation can prevent the fspy dyld interposer from loading. Hosted macOS CI machines disable System Integrity Protection, so the macOS case must make that restriction explicit to remain deterministic.

Summary

  • Add a TypeScript 7 fixture for automatic input inference.
  • Verify a source change invalidates the cache on non-macOS targets.
  • Verify macOS cannot infer the native compiler source reads when library validation is required and therefore replays the cached result.
  • Copy the native compiler into the staged fixture and sign that copy with the runtime and library-validation flags, leaving the installed dependency untouched and covering SIP-disabled CI.
  • Keep the dependency-backed cases opt-in with the existing ignored-test mechanism.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  -0.59%  [ -7.92% ..  +9.33%]  overhead   +62.97%
dynamic/access             change  -0.01%  [ -4.40% ..  +7.07%]  overhead    +6.69%
dynamic/access-relative    change  +0.85%  [-19.39% .. +19.27%]  overhead   +48.08%
static/launch              change  +1.68%  [ -6.45% ..  +9.22%]  overhead  +170.88%
static/access              change  -1.16%  [-17.67% .. +13.34%]  overhead  +815.11%
static/access-relative     change  +0.25%  [ -6.35% ..  +5.50%]  overhead +1314.52%

macos

dynamic/launch             change  -0.23%  [ -5.88% ..  +6.51%]  overhead  +234.38%
dynamic/access             change  -0.32%  [-51.87% .. +11.81%]  overhead    +3.47%
dynamic/access-relative    change  +0.64%  [-15.00% .. +14.21%]  overhead  +243.56%

windows

dynamic/launch             change  -1.22%  [ -6.01% ..  +5.94%]  overhead   +24.42%
dynamic/access             change  -0.19%  [ -4.59% ..  +1.66%]  overhead    +1.67%
dynamic/access-relative    change  +0.37%  [ -1.64% ..  +3.72%]  overhead    +1.12%

@wan9chi
wan9chi force-pushed the test/typescript-7-auto-input branch 2 times, most recently from 8fa81c9 to 6b13999 Compare August 12, 2026 01:49
Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi
wan9chi force-pushed the test/typescript-7-auto-input branch from 6b13999 to 42e33ca Compare August 12, 2026 01:54
@socket-security

socket-security Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​typescript@​7.0.29910089100100

View full report

@wan9chi
wan9chi force-pushed the test/typescript-7-auto-input branch 3 times, most recently from 1b81043 to 80e7777 Compare August 12, 2026 02:55
Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi
wan9chi force-pushed the test/typescript-7-auto-input branch from 80e7777 to 8dce1f2 Compare August 12, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant