Skip to content

test(linter/plugins): remove non-deterministic error output in conformance tester#16756

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-11-test_linter_plugins_remove_non-deterministic_error_output_in_conformance_tester
Dec 11, 2025
Merged

test(linter/plugins): remove non-deterministic error output in conformance tester#16756
graphite-app[bot] merged 1 commit intomainfrom
12-11-test_linter_plugins_remove_non-deterministic_error_output_in_conformance_tester

Conversation

@overlookmotel
Copy link
Copy Markdown
Member

@overlookmotel overlookmotel commented Dec 11, 2025

Repeat of #16723. ^ diff marker lines still appear and disappear non-deterministically. It seems #16738 didn't fix it after all. Grrr.

@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 Dec 11, 2025
Copy link
Copy Markdown
Member Author


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 December 11, 2025 15:16
Copilot AI review requested due to automatic review settings December 11, 2025 15:16
@overlookmotel overlookmotel self-assigned this Dec 11, 2025
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
Copy link
Copy Markdown
Member Author

overlookmotel commented Dec 11, 2025

Merge activity

  • Dec 11, 3:17 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 11, 3:23 PM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Dec 11, 3:25 PM UTC: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Spell Check').
  • Dec 11, 3:49 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 11, 3:49 PM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Dec 11, 3:49 PM UTC: Merged by the Graphite merge queue.

Copy link
Copy Markdown
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 addresses non-deterministic test output in the conformance tester by filtering out ^ diff marker lines from Node.js AssertionError stack traces. These marker lines appear sporadically due to a bug in Node.js's assert module, causing unnecessary churn in the snapshot file. This is a third attempt to fix the issue after previous attempts in #16723 and #16738.

Key Changes

  • Added filtering logic in formatError() to skip lines that are just ^ markers after trimming whitespace
  • Updated snapshot.md to remove 88 instances of these non-deterministic marker lines

Reviewed changes

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

File Description
apps/oxlint/conformance/src/report.ts Added line.trimStart() === "^" check to filter out diff marker lines from error formatting
apps/oxlint/conformance/snapshot.md Removed 88 occurrences of non-deterministic ^ diff marker lines from test snapshots

The implementation is straightforward and well-documented. The use of trimStart() properly handles varying amounts of leading whitespace before the ^ marker. The snapshot changes are consistent and only remove the problematic marker lines while preserving all other error output information.


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

…mance tester (#16756)

Repeat of #16723. `^` diff marker lines still appear and disappear non-deterministically. It seems #16738 didn't fix it after all. Grrr.
@graphite-app graphite-app bot force-pushed the 12-11-test_linter_plugins_remove_non-deterministic_error_output_in_conformance_tester branch from bff78a0 to 4aefd29 Compare December 11, 2025 15:24
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
@graphite-app graphite-app bot merged commit 4aefd29 into main Dec 11, 2025
46 of 48 checks passed
@graphite-app graphite-app bot deleted the 12-11-test_linter_plugins_remove_non-deterministic_error_output_in_conformance_tester branch December 11, 2025 15:49
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 11, 2025
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