Repository navigation
fix(launch): parameter sweeps carry or refuse every launch flag (#1366) - #1392
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
A foreground sweep (--no-detach) accepted --fsx-create, --fsx-recall and --vpc without --subnet and launched every member without them. Both sweep paths now refuse those before any AWS call, with one remedy (--fsx-id / --subnet), and refuse every other flag a sweep cannot honour (Strata, custom DNS target, compliance mode, --allow-cidr, --efa-group, the job-array and MPI flags, --interactive, --template-var, --cartesian). Sweep members on both paths now mount --efs-id, --fsx-id and --attach-volume storage (launchStorageScript, shared with the single launch), and --spot-max-price reaches them. Every launch flag has a sweep rule (cmd/launch_sweep_flags.go), checked against a real foreground member, and every LaunchConfig field a foreground disposition, checked the same way.
It does nothing (#674) and cobra already warns; refusing it broke scripts and protected nothing.
scttfrdmn
force-pushed
the
fix/1366-foreground-sweep-dropped-flags
branch
from
October 28, 2026 19:26
101f45b to
3c83316
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.
Fixes #1366
What was dropped (verified with tests on the foreground member-building path)
All three of the issue's claims are confirmed. The flag gate turned up more drops, and those are fixed here too.
--fsx-create(+--fsx-lifecycle/-ttl/-storage-capacity/-throughput/-s3-bucket/-import-path/-export-path)--fsx-id"--fsx-recall--vpcwithout--subnet--subnetwith a subnet in that VPC" (--vpcwith--subnetis accepted)--efs-id,--efs-mount-point,--efs-mount-options,--efs-profilelaunchStorageScript, shared with the single launch)--fsx-id,--fsx-mount-point,--fsx-skip-validate--attach-volume--spot-max-pricesweepBaseConfig; a row'sspot_max_price:wins--strata-*--dns-domain/-api-endpoint/-function-arndns:registered with spore.host--nist-800-171/-53,--compliance-strict--allow-cidr,--efa-group--security-group--count,--job-array-name,--instance-names,--min-viable,--mpi*,--auto-placement-group,--template-var,--interactive--cartesianEvery other launch flag is recorded in
cmd/launch_sweep_flags.goas reaching the members through their config, reaching them through the user-data builder, steering the sweep, or acting on the CLI only. The previous test-only manifest (sweepFlagCoverage) checked only whether a flag's variable appeared inlaunch_config.go. By that check it listed--fsx-create,--fsx-recalland--efs-idas honoured, and it is replaced.The detached path (#1353) now has the same storage mounts and the same refusal text for the three shared refusals (
sweepMemberGuard). Its--fsx-idremedy used to be untrue there as well: the filesystem was tagged and never mounted.Gates (each watched failing against a compiling revert)
Carried, asserted on the member's launch input:
TestForegroundSweepMembersMountEFS/...MountFSx/...MountAttachedVolumes: revert:renderForegroundSweepUserDatapasses"", nil, so all three fail and the field gate fails for EFSID/EFSMountPoint/FSxLustreID/FSxMountPoint/AttachVolumes.TestForegroundSweepMembersMountFSx(tag half): revert: drop theFSxMountNamebackfill.TestDetachedSweepMembersMountStorage: revert:detachedMemberUserDatapasses"", nil.TestSweepMembersCarrySpotMaxPrice: revert: drop thesweepBaseConfiglines, which also failsTestSweepFlagRulesHoldAgainstTheCode/spot-max-price.Refused, with zero AWS calls (fake endpoint counts requests, and the identity lookup counts too):
TestSweepRefusalsMakeNoAWSCall: the issue's three by name, plus every refused flag from the table. Revert:if false && isSweepLaunch(). Every subtest fails (made 1 AWS call(s) ... [GetCallerIdentity]). Reclassifyingfsx-create,fsx-recallorvpcin the table also fails it.TestSweepMemberBuildersRefuseWhatNoSweepCanLaunch(backstop on both paths, same message): revert eachsweepMemberGuardcase, or its call inforegroundSweepMembers.TestSweepAcceptsVPCWithSubnet: revert: dropunlessSet.Discovery:
TestEveryLaunchFlagHasASweepRule(cobra flag discovery): revert: add azz-new-flag.TestForegroundSweepCarriesOrRefusesEveryLaunchSetting(reflection overLaunchConfig, every claim checked against settings, tags, user data and the guard): revert: add aZZNewSettingfield.TestSweepFlagRulesHoldAgainstTheCodesets each flag and builds a real foreground member. It fails when a flag reclassified as carried sets a field the member drops (fsx-s3-bucket), when a user-data flag is called CLI-only (efs-mount-options), and when a flag said to steer is never read by the sweep path (skip-region-check).Notes
docs/reference/cli-iam-actions.mdis regenerated.spawn schedule createnow statically reachesfsx:DescribeFileSystemsandelasticfilesystem:DescribeMountTargetsthrough the shared detached renderer. A schedule's base config is empty and rows cannot set storage, so neither call is made in practice. Both are caller permissionsspawn launchalready needs. No new principal or grant.--fsx-idis looked up before the key pair and IAM role are set up.launch_sweep.go(its change is in the detach/IAM block). Rebased on origin/main at 17f5463.--spot-max-price), spawn launch --vpc without --subnet lands an ordinary Linux instance in the default VPC #1389 (single launch--vpcwithout--subnetlands in the default VPC), --efs-mount-options silently drops options it does not know (nconnect, etc.) #1390 (--efs-mount-optionsdrops unknown options), Carry Strata, custom DNS targets and compliance mode to parameter sweep members (refused since #1366) #1391 (carry Strata / custom DNS / compliance on sweeps; also an account-level custom DNS target bypassed by sweep rows).Checks:
make check,make lint(0 issues),semgrep scan --config=auto --error .clean,make api-snapshotno change,make check-docsclean (no help text changed). Not run on AWS.