Skip to content

Drop the install hint for a provider the host cannot run (fixes v0.6.0 release run) - #40

Merged
tonythethompson merged 1 commit into
mainfrom
claude/fix-not-applicable-hint
Oct 22, 2026
Merged

tonythethompson merged 1 commit into
mainfrom
claude/fix-not-applicable-hint

Conversation

@tonythethompson

@tonythethompson tonythethompson commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The v0.6.0 release run (run 39871181972) failed in Build, Test & Package on ExitCodeTests.Run_MissingRequiredPlugin_Returns3_WithInstallHint, so nothing was published.

Cause

On a host with no ROCm and no MIGraphX plugin vendored, which is what the release runner is, run --provider migraphx --require-provider printed two messages:

PR CI passed because the CLI tests share static plugin-registry state in one process. In that run's order, a registration failure was already recorded for the plugin, and that path doesn't print an install hint.

Fix

  • ProviderListing.NotListedReason(provider, installable = true): when installable is false, a plugin that isn't loaded gets no install hint.
  • ProviderArgs.NotApplicableNote (pulled out of ProviderUnavailableHint) reports wrong architecture, or MIGraphX without ROCm. InferencePipeline.UnavailableReason passes installable: false when it applies.

Tests

  • New ProviderArgsTests.UnavailableReason_ProviderTheHostCannotRun_HasNoInstallHint. It fails without the fix, gives the same result whatever ran before it, and runs on any host without ROCm.
  • New ProviderListingTests.NotListedReason_UnloadedPluginTheHostCannotRun_HasNoInstallHint.
  • Full suite passes (387). Ran run --provider migraphx --require-provider with an empty HOME: it exits 3 and prints only the not-applicable reason.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…ost cannot run

On a host with no ROCm and no MIGraphX plugin vendored, run --provider
migraphx --require-provider printed "migraphx is not applicable on this
host" and, from ProviderListing.NotListedReason, "run 'linml catalog
install migraphx'". The release workflow (v0.6.0) failed on
ExitCodeTests.Run_MissingRequiredPlugin_Returns3_WithInstallHint because of
it; PR CI passed only because test order left a registration failure
recorded for the plugin, which takes a branch without the hint.

NotListedReason takes installable, and InferencePipeline passes false when
ProviderArgs.NotApplicableNote (architecture, or MIGraphX without ROCm)
says the host cannot run it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6a0241e-1735-4f8a-a60f-0ada843f27f9
📥 Commits

Reviewing files that changed from the base of the PR and between 27b1d0f and dc7440d.

📒 Files selected for processing: 5
  • src/LinML.Cli/InferencePipeline.cs
  • src/LinML.Cli/ProviderArgs.cs
  • src/LinML.Runtime.Onnx/ProviderListing.cs
  • tests/LinML.Cli.Tests/ProviderArgsTests.cs
  • tests/LinML.Runtime.Onnx.Tests/ProviderListingTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T23:31:24.847747Z dc7440d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The fix is correct and well-scoped. All five changed files are consistent with the stated root cause and solution:

  • ProviderListing.NotListedReason — the new installable parameter correctly gates the "run linml catalog install" hint, leaving all other code paths (built-in, registered-no-devices, registration-failure, wrong-architecture) unaffected.
  • InferencePipeline.UnavailableReason — the extracted helper correctly computes installable by checking NotApplicableNote, so a host-incapable provider never receives an install hint from either the selection-failure path or the listing-reason path.
  • ProviderArgs — ProviderUnavailableHint is correctly refactored to call the new extracted NotApplicableNote method, eliminating the duplication of the architecture/ROCm checks without changing their behavior.
  • Tests — both new tests (UnavailableReason_ProviderTheHostCannotRun_HasNoInstallHint and NotListedReason_UnloadedPluginTheHostCannotRun_HasNoInstallHint) correctly guard themselves for the required host conditions, will fail without the fix, and are deterministic regardless of prior test ordering.

No blocking defects found. The PR is ready to merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@tonythethompson
tonythethompson merged commit c9bc459 into main Oct 22, 2026
8 checks passed
@tonythethompson
tonythethompson deleted the claude/fix-not-applicable-hint branch October 22, 2026 23:32
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.

1 participant