Repository navigation
cmd/air: probe a relaunch's staged dir while SCIM Me is in flight - #7891
Open
stevenchen-db wants to merge 4 commits into
Open
stevenchen-db wants to merge 4 commits into
stevenchen-db wants to merge 4 commits into
Conversation
A relaunch used to wait for Me to learn the user's home before it could look up the staged launch dir. The remembered dir is now probed and validated under the user name that staged it, concurrently with Me. Me then confirms or refutes that name: a match uses the probe result, a mismatch discards it and takes the unchanged path under the real home. Every write, the upload, and the submit wait for Me. The index key drops the home so the entry can be found before Me; the entry records the home and user name and is checked against Me. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
|
Commit: Regression test reportSelected 1 changed tests (limit=20, 0 not selected) 1 tests: regression=1 unreleased=0 coverage=0 failing=0
TestAccept/air/run-relaunch: branch ✅ | main (4cbd133) ❌ | latest (v1.27.0) ❌main (4cbd133): latest (v1.27.0): same output as main (4cbd133) |
…y's user name A deferred abort stops and waits for the speculative probe and validation on any early return after they start, not only on a Me failure or mismatch. launchIndexEntry no longer stores the Me user name: Base already carries the home that Me must confirm, so speculation is gated on having an entry and no workspace-dir override. Co-authored-by: Isaac <no-reply@databricks.com>
Collaborator
✅ Integration test reportCommit: 752cf12
Top 41 slowest tests (at least 2 minutes):
|
This branch was successfully 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.
Changes
config:validatedry run under the user name that staged it, concurrently withGET scim/v2/Me.Methen confirms or refutes that name. A match uses the probe result; a mismatch discards it and takes today's path under the real home. AMefailure returns the same error as before. Every write (mkdirs, imports, the index entry, the experiment directory) and the submit wait forMe.{host, content}), so the entry can be found beforeMe; the entry records the base path, whichMemust confirm before the dir is used.Why
On a relaunch the pre-submit path was serial:
Me(~60 ms on e2-dogfood, first request, carries the TLS handshake), then the probes (~45–50 ms). The probes and the dry run only need a name the cache already holds.Tests
Interleaved A/B against the #7860 head, same YAML, each run cancelled after submit; pre-submit = last pre-submit response before the submit request, from process start.
Unit tests: a confirmed relaunch makes no write before
Me; a mismatched name discards the speculative reads, uploads under the real home and re-points the index; aMefailure writes nothing.acceptance/air/run-relaunchpasses unchanged;./task fmt,./task checks,./task lintpass.Safety: before
Mereturns, only read-only calls run, with the caller's own credentials:get-statuson the staged files and theconfig:validatedry run (no server-side writes). The remembered name comes from this user's own local cache. If it is wrong (re-login as another user, rename), the reads are discarded and nothing is written or submitted under it.Not covered: azure-dogfood first launch had too few samples to rule out a small regression (two runs were slowed by a 2.5 s
import-fileon the unchanged write path); the first-launch code path is unchanged.This pull request and its description were written by Isaac.