Skip to content
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

Inhibit server restarts during bisect as well #2530

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

Earlopain
Copy link
Contributor

Motivation

This is a revival of what I wrote in #2387 (comment)

I consistently run into the issue of the lockfile changing during a bisect, restarting the server which then runs bundler, which blocks bundler/inline from processing until the gems are installed which may or may not finish in a reasonable amount of time.

This stops the server from restarting when a bisect is in process, where the lockfile is likely to constantly change.

Implementation

Piggy-back of the already existing code for checking against a rebase. This does still cause additional restarts if you bisect during a rebase or the other way around but it seems very rare and this implementation is very simple.

Automated Tests

No. There are no tests for rebase

Manual Tests

Start a bisect, and observe that the server doesn't restart itself. Similarly, with a rebase

@Earlopain Earlopain requested a review from a team as a code owner September 6, 2024 17:09
@Earlopain Earlopain force-pushed the no-restart-during-bisect branch from abd3526 to 02a2f4a Compare September 6, 2024 17:14
@andyw8 andyw8 added the enhancement New feature or request label Sep 11, 2024
vscode/src/workspace.ts Outdated Show resolved Hide resolved
@andyw8 andyw8 added the server This pull request should be included in the server gem's release notes label Sep 11, 2024
@Earlopain Earlopain force-pushed the no-restart-during-bisect branch from 02a2f4a to 005c19e Compare September 11, 2024 14:40
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

@vinistock vinistock merged commit 3972b1d into Shopify:main Sep 12, 2024
20 checks passed
@Earlopain
Copy link
Contributor Author

Thanks for merging! Should make bisecting large codebases much more bearable

@Earlopain Earlopain deleted the no-restart-during-bisect branch September 12, 2024 14:34
@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes and removed server This pull request should be included in the server gem's release notes labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 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.

3 participants