[PR #2496] [MERGED] Fix profile asset import test expectations #5623

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/profile-asset-rollback-ci


📝 Commits (1)

  • 87cc9a3 Fix profile asset import test expectations

📊 Changes

2 files changed (+8 additions, -2 deletions)

View changed files

📝 src-tauri/src/commands/storage/profile.rs (+4 -1)
📝 src-tauri/src/commands/storage/profile/assets.rs (+4 -1)

📄 Description

Linked issue

N/A - fixes the latest Rust CI failure on refactor and dependent PR runs.

Why this change

  • Rust nextest CI was failing because profile asset import tests still expected pre-existing managed asset files to be deleted. Current profile asset restore behavior merges imported files into managed directories and preserves existing files.

What changed

  • Updated the profile asset rollback test to assert the pre-existing stale avatar remains while the newly imported avatar is removed on rollback.
  • Updated the native profile import warning test to assert an existing avatar remains when JSON manifest assets are missing payload data.

Refactor impact

Primary owner:

Rust storage profile import and profile asset restore tests.

Impact areas reviewed:

  • src-tauri/src/commands/storage/profile.rs
  • src-tauri/src/commands/storage/profile/assets.rs
  • Recent failed Rust Capability Layer logs for the same stale-file assertion

Boundary notes:

  • Rust storage test expectations only; no production storage logic changed.
  • No engine, shared API, feature UI, or remote-runtime boundary changes.

Pressure points touched:

  • None.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace profile_asset_restore_rolls_back_when_import_fails_later passed.
  • cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace native_profile_import_warns_for_json_manifest_assets_without_payload passed.
  • cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace --no-fail-fast passed: 859/859 tests.
  • cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warnings passed.
  • pnpm check passed.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Test-only CI fix for Rust storage profile import expectations; no user-discoverable feature changed.

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

UI evidence

N/A - no UI changes.


🔄 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/2496 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/6/2026 **Status:** ✅ Merged **Merged:** 6/6/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/profile-asset-rollback-ci` --- ### 📝 Commits (1) - [`87cc9a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/87cc9a3378634e1007e3acc39891d4e0327f170c) Fix profile asset import test expectations ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/commands/storage/profile.rs` (+4 -1) 📝 `src-tauri/src/commands/storage/profile/assets.rs` (+4 -1) </details> ### 📄 Description ## Linked issue N/A - fixes the latest Rust CI failure on refactor and dependent PR runs. ## Why this change - Rust nextest CI was failing because profile asset import tests still expected pre-existing managed asset files to be deleted. Current profile asset restore behavior merges imported files into managed directories and preserves existing files. ## What changed - Updated the profile asset rollback test to assert the pre-existing stale avatar remains while the newly imported avatar is removed on rollback. - Updated the native profile import warning test to assert an existing avatar remains when JSON manifest assets are missing payload data. ## Refactor impact Primary owner: Rust storage profile import and profile asset restore tests. Impact areas reviewed: - `src-tauri/src/commands/storage/profile.rs` - `src-tauri/src/commands/storage/profile/assets.rs` - Recent failed Rust Capability Layer logs for the same stale-file assertion Boundary notes: - Rust storage test expectations only; no production storage logic changed. - No engine, shared API, feature UI, or remote-runtime boundary changes. Pressure points touched: - None. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace profile_asset_restore_rolls_back_when_import_fails_later` passed. - `cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace native_profile_import_warns_for_json_manifest_assets_without_payload` passed. - `cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace --no-fail-fast` passed: 859/859 tests. - `cargo clippy --manifest-path src-tauri/Cargo.toml --workspace --all-targets -- -D warnings` passed. - `pnpm check` passed. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Test-only CI fix for Rust storage profile import expectations; no user-discoverable feature changed. ## Docs and release impact - [x] 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 ## UI evidence N/A - no UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:17:54 +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#5623
No description provided.