Skip to content

Avoid failing if needs_update file is deleted by concurrent process#3964

Merged
vinistock merged 1 commit intomainfrom
02-18-avoid_failing_if_needs_update_file_is_deleted_by_concurrent_process
Feb 19, 2026
Merged

Avoid failing if needs_update file is deleted by concurrent process#3964
vinistock merged 1 commit intomainfrom
02-18-avoid_failing_if_needs_update_file_is_deleted_by_concurrent_process

Conversation

@vinistock
Copy link
Member

@vinistock vinistock commented Feb 18, 2026

Motivation

We sometimes see this error in telemetry, where we try to delete the needs_update file and it's no longer there. This scenario can happen if running bundle update takes a long time and we trigger a restart before it is finished, which may delete the file.

Implementation

This scenario is not really a bug as we want to be able to restart even during an update, but we don't want to crash and send the error to telemetry. We can just check if the file is still there at the end.

Automated Tests

Added a test that reproduces the scenario.

@vinistock vinistock self-assigned this Feb 18, 2026
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 added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Feb 18, 2026 — with Graphite App
@vinistock vinistock marked this pull request as ready for review February 18, 2026 15:35
@vinistock vinistock requested a review from a team as a code owner February 18, 2026 15:35
@vinistock vinistock merged commit c167680 into main Feb 19, 2026
53 of 54 checks passed
@vinistock vinistock deleted the 02-18-avoid_failing_if_needs_update_file_is_deleted_by_concurrent_process branch February 19, 2026 16:43
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments