Repository navigation
fix(task): Spot→on-demand fallback keeps storage and flush hook (#1144) - #1191
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
The on-demand retry in task run passed an empty launcher.Options{}, so a
fallback instance launched without its EFS/FSx/volume mounts and without
the terminal-flush hook. Route both attempts through provisionTask, which
forwards one Options to each, and gate it with a recording fake plus an
AST check that task.go's only launcher.Provision forwards the seam's
Options.
Fixes #1144
scttfrdmn
force-pushed
the
fix/1144-fallback-options
branch
from
October 19, 2026 22:31
7d05def to
c7bf5cb
Compare
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.
The Spot to on-demand retry in
spawn task runcalled launcher.Provision with an empty launcher.Options{}, dropping StorageScript and TaskFlushScript. A fallback instance came up without its EFS/FSx/volume mounts and without the terminal-flush hook that writes a completion record on a TTL kill.Change: both attempts go through a new
provisionTaskhelper (cmd/task.go) that forwards the same Options to each call; runTaskReal builds the Options once.Gates (cmd/task_fallback_options_test.go):
Checks: make check passes through step 6; step 7 check-build-tags fails identically on unmodified main on this machine (/private/tmp path issue). semgrep scan --config=auto --error . clean. No help text changed. Not run on AWS.
Fixes #1144