Skip to content

test(linter/plugins): skip conformance tests that cannot expect to pass#18345

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

test(linter/plugins): skip conformance tests that cannot expect to pass#18345
graphite-app[bot] merged 1 commit intomainfrom
om/01-21-test_linter_plugins_skip_conformance_tests_that_cannot_expect_to_pass

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 21, 2026

A handful of conformance tests are never going to be possible to pass due to requiring ability to e.g. parse as ES3. This isn't important for actual linter plugins, so just skip these tests.

Only 6 failing tests remaining!

@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 21, 2026
Copy link
Member Author

overlookmotel commented Jan 21, 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.

@overlookmotel overlookmotel marked this pull request as ready for review January 21, 2026 12:06
Copilot AI review requested due to automatic review settings January 21, 2026 12:06
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

This PR improves conformance test handling by skipping tests that cannot pass due to parser limitations. The changes identify and skip tests requiring ES3/ES5 parsing support, tests with unrecoverable syntax errors, and tests affected by TypeScript parser tokenization issues.

Changes:

  • Added logic to skip 14 conformance tests that require unsupported parsing capabilities (ES3/ES5 semantics)
  • Updated snapshot documentation to reflect 4 rules moving from "partially passing" to "fully passing" status
  • Reduced total failing tests from 20 to 6

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
apps/oxlint/conformance/src/capture.ts Added shouldSkipTest logic to skip ES3/ES5 tests, parsing errors, and TypeScript tokenization issues; imported LanguageOptionsInternal type
apps/oxlint/conformance/snapshot.md Updated test statistics and removed documentation for 14 now-skipped test failures

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

@overlookmotel overlookmotel force-pushed the om/01-21-test_linter_plugins_conformance_tests_include_config_in_snapshot branch from b07387c to a277087 Compare January 21, 2026 12:11
@overlookmotel overlookmotel force-pushed the om/01-21-test_linter_plugins_skip_conformance_tests_that_cannot_expect_to_pass branch from 2cbdd2c to 82efa52 Compare January 21, 2026 12:11
@overlookmotel overlookmotel self-assigned this Jan 21, 2026
@overlookmotel overlookmotel removed the request for review from camc314 January 21, 2026 12:11
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Jan 21, 2026
Copy link
Member Author

overlookmotel commented Jan 21, 2026

Merge activity

…ss (#18345)

A handful of conformance tests are never going to be possible to pass due to requiring ability to e.g. parse as ES3. This isn't important for actual linter plugins, so just skip these tests.

Only 6 failing tests remaining!
@graphite-app graphite-app bot force-pushed the om/01-21-test_linter_plugins_conformance_tests_include_config_in_snapshot branch from a277087 to 8a1232e Compare January 21, 2026 12:20
@graphite-app graphite-app bot force-pushed the om/01-21-test_linter_plugins_skip_conformance_tests_that_cannot_expect_to_pass branch from 82efa52 to e51857f Compare January 21, 2026 12:20
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 21, 2026
Base automatically changed from om/01-21-test_linter_plugins_conformance_tests_include_config_in_snapshot to main January 21, 2026 12:26
@graphite-app graphite-app bot merged commit e51857f into main Jan 21, 2026
20 checks passed
@graphite-app graphite-app bot deleted the om/01-21-test_linter_plugins_skip_conformance_tests_that_cannot_expect_to_pass branch January 21, 2026 12:27
graphite-app bot pushed a commit that referenced this pull request Jan 21, 2026
…`s (#18368)

Espree (ESLint's parser) has the surprising behavior that it produces `Keyword` tokens for identifiers called `let`, `static`, and `yield`.

Fix our tokens to match Espree.

#18345 skipped 4 conformance tests for `no-extra-parens` rule. These tests now don't need to be skipped and they pass.

Related: typescript-eslint/typescript-eslint#11989
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