8000 ci: reproduce symlinked workspace watcher alias loss by teamleaderleo · Pull Request #7 · teamleaderleo/biome · GitHub
[go: up one dir, main page]

Skip to content

ci: reproduce symlinked workspace watcher alias loss - #7

Draft
teamleaderleo wants to merge 4 commits into
ci/biome-focused-basefrom
ci/biome-11110-symlink-alias-losing-test
Draft

teamleaderleo wants to merge 4 commits into
ci/biome-focused-basefrom
ci/biome-11110-symlink-alias-losing-test

Conversation

@teamleaderleo
Copy link
Copy Markdown
Owner

Internal test-only carrier for the symlinked-workspace half of Biome issue 11110.

The reporter's standalone reproduction shows that edits to real sub/c.js can be delivered by the watcher under the node_modules/sub/c.js symlink alias. Biome then evaluates project membership and ignore rules on the alias path, so the edit is never re-linted.

This controlled unit discriminator:

  • creates a real workspace directory and file;
  • creates node_modules/sub as a Unix directory symlink to that real directory;
  • marks the alias path ignored, modeling the node_modules boundary;
  • sends the alias path through Watcher::watched_paths;
  • requires the real workspace path to survive.

Current source is expected to return no path because project/ignore handling runs on the raw alias. The workflow compiles the shipped stable feature set and runs only this test.

This PR contains no product candidate and is separate from the .git filtering candidate. No canonical-upstream interaction is authorized or performed.

@github-actions
github-actions Bot commented Aug 5, 2026
Copy link
Copy Markdown

❌ Automation signals

Activity patterns show signs of automation.

View full analysis →

This is an automated analysis by AgentScan

Copy link
Copy Markdown
Owner Author

False-green classification

Workflow 30975468407, job 92208430578, completed successfully but executed 0 tests:

running 0 tests
test result: ok. 0 passed; 0 failed; 184 filtered out

The short unit-test name was combined with --exact, while Cargo's exact name includes its module path. This run provides no symlink behavior evidence.

Classification: CARRIER TEST-SELECTION FALSE GREEN.

The replacement workflow will first list tests and require discovery of should_map_ignored_symlink_alias_to_real_workspace_path, then run the unique substring filter without --exact. Downstream test logic is unchanged.

Copy link
Copy Markdown
Owner Author

Exact product reproduction

Corrected workflow 30975907920, job 92209727584, required test discovery and then executed exactly one stable-feature unit test:

scanner::watcher::tests::should_map_ignored_symlink_alias_to_real_workspace_path: test
running 1 test

Observed result:

left:  []
right: [/tmp/should_map_ignored_symlink_alias_to_real_workspace_path/sub/c.js]

The notify-style alias path under node_modules/sub/c.js was evaluated as ignored and discarded instead of mapping back to the real workspace file.

Classification: PRODUCT REPRODUCED — SYMLINK ALIAS EVENT IS LOST.

This is separate from the .git event-filtering defect and carries no product candidate. No canonical-upstream interaction occurred.

Copy link
Copy Markdown
Owner Author

Source-owner review

Current Watcher::watched_paths performs project lookup and ignore matching on the raw notify path. Biome traversal already preserves two identities for symlinked content—resolved target for storage and unresolved origin for ignore semantics—but watcher events currently carry only one Utf8PathBuf.

A safe repair therefore needs a dual-path contract, not blanket canonicalization:

  • resolved path for workspace/project ownership and the file ultimately indexed;
  • notify/origin alias for alias-specific ignore behavior and diagnostics;
  • bounded symlink-ancestor expansion, because the event file is below a symlinked directory rather than itself a symlink;
  • ordinary, broken-link, nested-link, alias-ignored/real-accepted, and both-ignored controls.

No source candidate is selected by this PR. The next implementation lane should introduce that representation explicitly or reuse traversal ownership, rather than silently replacing the raw path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0