Skip to content

smitebot: validate --scenario against smite-scenarios/src/bin/ - #236

Merged
morehouse merged 1 commit into
lnfuzz:masterfrom
Ashish-Kumar-Dash:scenario-validation
Sep 9, 2026
Merged

smitebot: validate --scenario against smite-scenarios/src/bin/#236
morehouse merged 1 commit into
lnfuzz:masterfrom
Ashish-Kumar-Dash:scenario-validation

Conversation

@Ashish-Kumar-Dash

Copy link
Copy Markdown
Contributor

Follows feedback on #104
Validates --scenario against the binary names in smite-scenarios/src/bin/ before attempting a ~20 minute Docker build.

Adds pub fn check_scenario_exists(smite_dir, target, scenario) in config.rs. Called from CampaignConfig::check_paths() (covers start and config) and from BuildCommand::execute() directly (covers build).

Error names the missing path and lists valid scenarios when discoverable - unknown scenario 'nois' for target 'lnd': .../lnd_nois.rs does not exist; valid scenarios: encrypted_bytes, init, ir, noise

Comment thread smitebot/src/config.rs
@morehouse
morehouse merged commit da17f71 into lnfuzz:master Sep 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants