Skip to content

fix(ci): count the Compare command and check the inventory when commands change - #1468

Merged
axpnet merged 1 commit into
mainfrom
fix/inventory-compare-command
Nov 1, 2026
Merged

axpnet merged 1 commit into
mainfrom
fix/inventory-compare-command

Conversation

@axpnet

@axpnet axpnet commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Problem

docs/COMMAND-INVENTORY.json on main lists 793 Tauri commands, the code registers 794. #1450 added compare_paths_left_out and did not regenerate the snapshot.

The CLI smoke job compares the two, but its path filter does not include src-tauri/src/lib.rs, so #1450 never ran it. The failure then lands on the next pull request that touches a provider or the CLI, whatever that pull request changed. It is failing that way on #1462 and #1463, and #1466 and #1459 each carry their own copy of this fix.

Change

  • Regenerate the snapshot with aeroftp-cli inventory built from this base. The diff is the one command: the two list entries and the three counts.
  • Run the CLI smoke job on src-tauri/src/lib.rs, src-tauri/build.rs (it derives the command list from lib.rs) and docs/COMMAND-INVENTORY.json, so a pull request that adds a command meets the check itself.

Verification

  • aeroftp-cli inventory --check docs/COMMAND-INVENTORY.json passes locally.
  • This pull request changes the workflow file, so the smoke job runs here and checks the snapshot in CI.

No application code changes.

Summary by CodeRabbit

  • Documentation
    • Updated the command inventory to include an additional path-comparison command and reflect the revised command and parity totals.
  • Chores
    • CLI smoke checks now run when relevant command implementation, build configuration, or inventory changes, broadening validation coverage for those updates.

…nds change

compare_paths_left_out reached main in #1450 without the inventory: the CLI smoke job that compares the two does not run on a change to lib.rs alone, so the drift surfaced later, on the next pull request that touches a provider, whatever that pull request did. Regenerate the snapshot and run the job on lib.rs, build.rs, which derives the command list from it, and the snapshot itself.

Session: L1 91583d13
Signed-off-by: axpnet <45786925+axpnet@users.noreply.github.com>
@snyk-io

snyk-io Bot commented Oct 31, 2026

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 384fcbbc-2dac-4876-8640-d6738e2e17d1
Commits

Reviewing files that changed from the base of the PR and between b73d1fd and d233165.

Files selected for processing: 2
  • .github/workflows/cli-smoke.yml
  • docs/COMMAND-INVENTORY.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Recent review details
Context from checks skipped due to timeout: 10
  • GitHub Check: Format, audit & unit tests
  • GitHub Check: Check sign-off
  • GitHub Check: build-and-release (macos-15, macos, aarch64)
  • GitHub Check: smoke (ubuntu-latest, ./target/release/aeroftp-cli)
  • GitHub Check: linux-validate
  • GitHub Check: build-and-release (windows-latest, windows)
  • GitHub Check: smoke (macos-latest, ./target/release/aeroftp-cli)
  • GitHub Check: build-and-release (ubuntu-22.04, linux)
  • GitHub Check: smoke (windows-2022, ./target/release/aeroftp-cli.exe)
  • GitHub Check: build-and-release (macos-15, macos, x64)
Walkthrough

The command inventory now includes compare_paths_left_out and updated counts. The CLI smoke workflow now triggers on changes to the Tauri library, build script, and command inventory for pushes and pull requests.

Changes: Command inventory and smoke triggers

Layer / File(s) Summary
Record the command in the inventory
docs/COMMAND-INVENTORY.json
The inventory adds compare_paths_left_out. The Tauri command count changes from 793 to 794, and the unmatched-name count changes from 327 to 328.
Extend CLI smoke workflow triggers
.github/workflows/cli-smoke.yml
The push and pull request path filters add src-tauri/src/lib.rs, src-tauri/build.rs, and docs/COMMAND-INVENTORY.json.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • axpdev-lab/aeroftp#1450: Adds and registers compare_paths_left_out; this pull request records the command and adds workflow triggers for related paths.
  • axpdev-lab/aeroftp#1466: Records compare_paths_left_out in the same command inventory.
Merge Risk: Minimal · up to d2331

The command inventory and smoke-workflow triggers are consistent with the intended update. No actionable merge-blocking risk was identified; merge after normal checks pass.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes both main changes: adding the Compare command to the inventory and triggering inventory checks when command-related files change.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

  • 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

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