Skip to content

Add SMP CLI to preflight checks#1823

Open
preinlein wants to merge 1 commit intomainfrom
paul.reinlein/add-smp-cli-as-dependency
Open

Add SMP CLI to preflight checks#1823
preinlein wants to merge 1 commit intomainfrom
paul.reinlein/add-smp-cli-as-dependency

Conversation

@preinlein
Copy link
Contributor

@preinlein preinlein commented Mar 11, 2026

What does this PR do?

Adds SMP CLI, GitHub CLI, and AWS CLI to the lading-preflight environment validation checks, along with an automated install script for the SMP CLI binary.

Motivation

The SMP CLI is used for submitting and analyzing benchmark jobs but wasn't part of preflight validation, so engineers could start optimization work only to discover the tool was missing mid-workflow. Adding it (and its dependencies gh and aws) to preflight catches this earlier.

Related issues

N/A

Additional Notes

  • The install_smp script resolves the latest stable version via gh release list, detects the platform, and downloads the binary from S3 to ~/.cargo/bin.
  • Missing gh/aws/smp are reported as notes (not hard failures) since they're only needed for SMP workflows.
  • Adds preflight behavior to ask before auto-fixing failures.

Copy link
Contributor Author

preinlein commented Mar 11, 2026

@preinlein preinlein changed the title Add SMP CLI to preflight checks (DO NOT REVIEW) Add SMP CLI to preflight checks Mar 11, 2026
@preinlein preinlein force-pushed the paul.reinlein/add-smp-cli-as-dependency branch from ae17f70 to 9fd4e7c Compare March 16, 2026 16:59
@preinlein preinlein changed the title (DO NOT REVIEW) Add SMP CLI to preflight checks Add SMP CLI to preflight checks Mar 16, 2026
@preinlein
Copy link
Contributor Author

Container build errors are fixed in #1827

@preinlein preinlein marked this pull request as ready for review March 16, 2026 17:18
@preinlein preinlein requested a review from a team as a code owner March 16, 2026 17:18
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9fd4e7c0f9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@preinlein preinlein force-pushed the paul.reinlein/add-smp-cli-as-dependency branch from 9fd4e7c to c81ae74 Compare March 18, 2026 11:26
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c81ae74a17

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@preinlein preinlein force-pushed the paul.reinlein/add-smp-cli-as-dependency branch from c81ae74 to cc4fe22 Compare March 18, 2026 14:01
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc4fe22365

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

warn "smp found on PATH but failed to run"
fi
else
note "smp not found"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fail preflight when the SMP CLI is missing

With the new SKILL.md wording, only [X] checks are supposed to stop the workflow and trigger a suggested fix. Emitting note "smp not found" here leaves the script with exit code 0 and a PASS status, so an agent following /lading-preflight will keep going without ever offering the new .claude/skills/lading-preflight/scripts/install_smp remediation this patch added.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude is smart enough to still suggest it. I tried this exact use case myself

Comment on lines +73 to +75
mkdir -p "$SMP_INSTALL_DIR"
tar -xzf "${TMP_DIR}/${ASSET_NAME}" -C "$SMP_INSTALL_DIR"
chmod +x "${SMP_INSTALL_DIR}/smp"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Replace the broken smp on PATH instead of shadow-installing it

This always installs into ~/.local/bin, even when the script got here because an existing smp earlier on PATH was detected as broken. In that case the later smp invocations still resolve to the old binary while this script prints a successful install message, so the advertised "reinstalling" path never actually repairs the user's environment.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants