Skip to content

test(linter/plugins): conformance test snapshots include parser details#18552

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/01-25-test_linter_plugins_conformance_test_snapshots_include_parser_details
Jan 25, 2026
Merged

test(linter/plugins): conformance test snapshots include parser details#18552
graphite-app[bot] merged 1 commit intomainfrom
om/01-25-test_linter_plugins_conformance_test_snapshots_include_parser_details

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 25, 2026

Include details of what parser test cases are parsed with in conformance test snapshots, to make it easier to reproduce bugs.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them labels Jan 25, 2026
Copy link
Member Author

overlookmotel commented Jan 25, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

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

Updates the conformance tester snapshots to record which parser (and associated details) was used for each test case, making parser-specific failures easier to reproduce.

Changes:

  • Add _parser metadata onto captured test cases for snapshot output.
  • Replace parser-to-language maps with parser-to-ParserDetails maps.
  • Introduce a shared ParserDetails interface and use it in TestGroup.parsers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
apps/oxlint/conformance/src/rule_tester.ts Captures/stores parser metadata on test cases and switches parser maps to ParserDetails.
apps/oxlint/conformance/src/index.ts Defines ParserDetails and updates group parser configuration to use it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel self-assigned this Jan 25, 2026
@overlookmotel overlookmotel changed the base branch from om/01-25-test_linter_plugins_conformance_tests_remove_duplicate_check to graphite-base/18552 January 25, 2026 21:11
@overlookmotel overlookmotel force-pushed the om/01-25-test_linter_plugins_conformance_test_snapshots_include_parser_details branch from 94e1803 to da1199c Compare January 25, 2026 21:11
@overlookmotel overlookmotel changed the base branch from graphite-base/18552 to om/01-25-test_linter_plugins_conformance_tests_remove_duplicate_check January 25, 2026 21:11
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 25, 2026

Merge activity

…ls (#18552)

Include details of what parser test cases are parsed with in conformance test snapshots, to make it easier to reproduce bugs.
@graphite-app graphite-app bot force-pushed the om/01-25-test_linter_plugins_conformance_tests_remove_duplicate_check branch from f7300b9 to 1685ceb Compare January 25, 2026 21:32
@graphite-app graphite-app bot force-pushed the om/01-25-test_linter_plugins_conformance_test_snapshots_include_parser_details branch from da1199c to 886ac2f Compare January 25, 2026 21:33
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
Base automatically changed from om/01-25-test_linter_plugins_conformance_tests_remove_duplicate_check to main January 25, 2026 21:39
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
@graphite-app graphite-app bot merged commit 886ac2f into main Jan 25, 2026
20 of 21 checks passed
@graphite-app graphite-app bot deleted the om/01-25-test_linter_plugins_conformance_test_snapshots_include_parser_details branch January 25, 2026 22:14
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants