Skip to content

Replace \xFE in symbol baselines with __ #1029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 4, 2025

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Jun 3, 2025

Makes output more like Strada, although not really any more correct. Most of these occurrences are likely mistakes.

Makes output more like Strada, although not really any more correct.
Most of these occurrences are likely mistakes.
@Copilot Copilot AI review requested due to automatic review settings June 3, 2025 22:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR standardizes symbol baselines by replacing the \xFE placeholder with __, making the output more consistent with Strada-like formatting.

  • Added a ReplaceAll call around SymbolToString to strip \xFE
  • Updated all test baseline files to use __index instead of the legacy placeholder

Reviewed Changes

Copilot reviewed 135 out of 135 changed files in this pull request and generated no comments.

File Pattern Description
testdata/baselines/reference/submodule/compiler/**/*.symbols and *.symbols.diff Replaced �index entries with __index in multiple baseline files
internal/testutil/tsbaseline/type_symbol_baseline.go Wrapped fileChecker.SymbolToString(symbol) with ReplaceAll(..., "\xFE", "__")

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but consider merging main first now that we have more baselines.

@sandersn sandersn enabled auto-merge June 4, 2025 12:59
@sandersn sandersn added this pull request to the merge queue Jun 4, 2025
Merged via the queue into microsoft:main with commit 386eee9 Jun 4, 2025
23 checks passed
@sandersn sandersn deleted the no-more-thorn-in-baselines branch June 4, 2025 13:22
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.

2 participants