Repository navigation
Preflight Linux local-run mount namespace mismatches - #707
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
[Medium impact] Adds mount namespace preflight checks for local job runs. The PR appears safe to merge, with a non-blocking request to test concurrent reservations. Findings
Fix with agent prompt### Issue 1
src/local/localrun.rs:244
The new tests call `check_mount_namespace` directly, so they never exercise the second check inside `reserve_run`. That check prevents submissions from different experiments from racing past the first check. A regression there could pass every new test.
Add a test with two store connections, the same project and command, different experiments, and different namespace values. Assert that only one reservation succeeds and that the rejected reservation leaves no run or telemetry row.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryRecords Linux mount namespace identity for local runs and rejects a different namespace for the same project and unchanged command.
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Awaiting human design review; not ready to merge. Assigned to Myles Anderson based on the closest local-run/sandbox history, with
awaiting reviewanddo not mergelabels. Freshorigin/mainis an ancestor of this branch; there are no merge conflicts.Design decision needed. The independent scope review returned no: this history-based guard cannot protect a new/legacy project with no namespace reference. Inspection found no existing configured authoritative local mount environment. Completing OR-552 requires choosing explicit known-good environment registration or a centralized local launch owner; neither policy is being selected silently. Post-fix functionality verification is deferred until that decision and passing review gates.
Test plan
6285fee7f42bc8ad21500b84278d38679f1ac01b: controlled reproduction through real standalone Claude sessions and the real CLI on Ubuntu 22.04.5 x86_64; subscription CLI preflight and live dashboard reply passed.cargo fmt --all --check;cargo clippy --locked --all-targets -- -D warnings; localization/style checks.b7e5fe692627b154bf5977232bf00f255c82c26c, serial with test-only isolation from global Git configuration and injected author/committer environment. The initial ambient run had unrelated Git-fixture failures and a transient SSH test failure; no unrelated code was changed.b7e5fe69).Bug reproduction on main
Both sessions submitted the same experiment and fixed
source /mnt/profile && printf "SOURCE_OK\n"command; one namespace lacked the path and created a failed run, while the other privately bind-mounted the genuine/etcat/mntand completed. This is a controlled analogue on orx 0.2.19, not the original redacted 0.2.18 Conda/GPU environment. Dashboard-forwarded namespace behavior and automatic repair-attempt accounting were not reproduced.Post-fix functionality
Not yet performed: the scope gate has not passed. No claim of a verified fix or authorization to merge.
Automation improvements
Link to Devin session: https://app.devin.ai/sessions/da2c1d26fcc640b5b0702978da15126b
Open in Devin Desktop: https://app.devin.ai/desktop/session/da2c1d26fcc640b5b0702978da15126b?variant=devin