Skip to content

Use a custom executable to hook to test explorer #3499

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

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented May 16, 2025

Motivation

Setting the RUBYOPT in the user's terminal turned out to not be a great idea. The value persists and if the terminal is reused for other tasks, it may cause those to crash or result in unexpected behaviour.

Instead of mutating the terminal environment, we can provide a simple proxy executable that will run the given command with our reporters hooked into it.

Implementation

Created a new executable that simple runs any given command with the modified RUBYOPT to hook our reporters. That way, we can run terminal tests connecting to the explorer without polluting the user's terminal.

Stopped modifying RUBYOPT.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

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.

@vinistock vinistock self-assigned this May 16, 2025
@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes bugfix This PR will fix an existing bug labels May 16, 2025 — with Graphite App
@vinistock vinistock marked this pull request as ready for review May 16, 2025 19:16
@vinistock vinistock requested a review from a team as a code owner May 16, 2025 19:16
@vinistock vinistock force-pushed the 05-15-use_a_custom_executable_to_hook_to_test_explorer branch from 39b1086 to bf5d586 Compare May 16, 2025 19:19
@vinistock vinistock force-pushed the 05-15-use_a_custom_executable_to_hook_to_test_explorer branch from bf5d586 to 209425b Compare May 16, 2025 19:58
@vinistock vinistock added the server This pull request should be included in the server gem's release notes label May 16, 2025
@vinistock vinistock merged commit d221fde into main May 20, 2025
44 checks passed
@vinistock vinistock deleted the 05-15-use_a_custom_executable_to_hook_to_test_explorer branch May 20, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants