[PR #1491] [MERGED] Fix Rust CI prompt test fallout #5109

Closed
opened 2026-10-22 04:13:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1491
Author: @Xelvanis
Created: 5/29/2026
Status: ✅ Merged
Merged: 5/29/2026
Merged by: @Xelvanis

Base: refactor ← Head: fix/refactor-mari-prompt-ci


📝 Commits (1)

  • 9ed89ae Fix Rust CI prompt test fallout

📊 Changes

6 files changed (+245 additions, -60 deletions)

View changed files

📝 graphify-out/GRAPH_REPORT.md (+19 -19)
📝 graphify-out/cache/stat-index.json (+1 -1)
📝 graphify-out/graph.json (+192 -13)
📝 graphify-out/manifest.json (+15 -15)
📝 src-tauri/crates/assets/src/lib.rs (+7 -4)
📝 src-tauri/src/commands/storage/mari.rs (+11 -8)

📄 Description

Linked issue

No linked issue. CI follow-up for the refactor push commit 390990ec (Fix refactor issue batch).

Why this change

The Rust Capability Layer CI job failed because cargo clippy --workspace --all-targets -D warnings compiled Rust test targets and found a stale Professor Mari test helper call. The helper still called build_task_prompt with one argument after the prompt builder gained a repo_guidance argument.

A local full Rust test run also exposed a Windows-only validation blocker: the assets symlink escape test treated unsupported symlink setup as skippable, but Windows can report missing symlink privilege as raw OS error 1314 instead of PermissionDenied.

What changed

  • Updated the Professor Mari attachment prompt test helper to pass None for repo guidance explicitly.
  • Updated the assets symlink test helper to treat Windows OS error 1314 as an environment skip while preserving the symlink escape assertions on platforms that can create the symlink.
  • Refreshed Graphify output after the Rust changes.

Refactor impact

Primary owner:

Rust command/capability test coverage: Professor Mari command tests and the assets capability crate tests.

Impact areas reviewed:

  • src-tauri/src/commands/storage/mari.rs prompt helper callers and Professor Mari attachment tests.
  • src-tauri/crates/assets/src/lib.rs symlink negative-control test setup and asset read/write assertions.
  • Rust CI path: check, clippy all-targets, and nextest workspace.

Boundary notes:

No runtime boundary or app behavior change. The Mari change is test-only call-site alignment with the existing prompt builder contract. The assets change is test setup behavior only; production path validation is unchanged.

Pressure points touched:

None of the listed UI/app pressure points. Touched Rust test helpers in the Professor Mari command module and assets crate.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passed.
  • cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warnings passed.
  • cargo test --manifest-path src-tauri/Cargo.toml -p marinara-engine professor_mari_prompt --lib passed.
  • cargo test --manifest-path src-tauri/Cargo.toml -p marinara-assets rejects_paths_that_escape_root_through_symlinked_directory passed.
  • cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace passed, 205/205.
  • git diff --check origin/refactor...HEAD passed.
  • graphify update . was run after code changes.
  • No browser/Tauri app manual verification was run because this is a Rust test/CI-only fix with no visible UI behavior change.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No changelog file exists in this checkout. No release note is needed because this fixes CI/test behavior only and does not change user-facing app behavior.

UI evidence

N/A. This PR has no visible UI change.

Summary by CodeRabbit

  • Tests
    • Enhanced test robustness for platform-specific operations.
    • Improved test helper code organization.

Review Change Stack


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1491 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/refactor-mari-prompt-ci` --- ### 📝 Commits (1) - [`9ed89ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9ed89aee2deb1bf7e8d1a94575e5aa8bb4569dc0) Fix Rust CI prompt test fallout ### 📊 Changes **6 files changed** (+245 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `graphify-out/GRAPH_REPORT.md` (+19 -19) 📝 `graphify-out/cache/stat-index.json` (+1 -1) 📝 `graphify-out/graph.json` (+192 -13) 📝 `graphify-out/manifest.json` (+15 -15) 📝 `src-tauri/crates/assets/src/lib.rs` (+7 -4) 📝 `src-tauri/src/commands/storage/mari.rs` (+11 -8) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue No linked issue. CI follow-up for the `refactor` push commit `390990ec` (`Fix refactor issue batch`). ## Why this change The `Rust Capability Layer` CI job failed because `cargo clippy --workspace --all-targets -D warnings` compiled Rust test targets and found a stale Professor Mari test helper call. The helper still called `build_task_prompt` with one argument after the prompt builder gained a `repo_guidance` argument. A local full Rust test run also exposed a Windows-only validation blocker: the assets symlink escape test treated unsupported symlink setup as skippable, but Windows can report missing symlink privilege as raw OS error 1314 instead of `PermissionDenied`. ## What changed - Updated the Professor Mari attachment prompt test helper to pass `None` for repo guidance explicitly. - Updated the assets symlink test helper to treat Windows OS error 1314 as an environment skip while preserving the symlink escape assertions on platforms that can create the symlink. - Refreshed Graphify output after the Rust changes. ## Refactor impact Primary owner: Rust command/capability test coverage: Professor Mari command tests and the assets capability crate tests. Impact areas reviewed: - `src-tauri/src/commands/storage/mari.rs` prompt helper callers and Professor Mari attachment tests. - `src-tauri/crates/assets/src/lib.rs` symlink negative-control test setup and asset read/write assertions. - Rust CI path: check, clippy all-targets, and nextest workspace. Boundary notes: No runtime boundary or app behavior change. The Mari change is test-only call-site alignment with the existing prompt builder contract. The assets change is test setup behavior only; production path validation is unchanged. Pressure points touched: None of the listed UI/app pressure points. Touched Rust test helpers in the Professor Mari command module and assets crate. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [x] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [x] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passed. - `cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warnings` passed. - `cargo test --manifest-path src-tauri/Cargo.toml -p marinara-engine professor_mari_prompt --lib` passed. - `cargo test --manifest-path src-tauri/Cargo.toml -p marinara-assets rejects_paths_that_escape_root_through_symlinked_directory` passed. - `cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace` passed, 205/205. - `git diff --check origin/refactor...HEAD` passed. - `graphify update .` was run after code changes. - No browser/Tauri app manual verification was run because this is a Rust test/CI-only fix with no visible UI behavior change. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims No changelog file exists in this checkout. No release note is needed because this fixes CI/test behavior only and does not change user-facing app behavior. ## UI evidence N/A. This PR has no visible UI change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Enhanced test robustness for platform-specific operations. * Improved test helper code organization. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1491?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5109
No description provided.