[PR #1384] [MERGED] Fix pre-alpha platform build failures #5054

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1384
Author: @ghost
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @undefined

Base: refactor ← Head: ci/fix-prealpha-builds


📝 Commits (1)

  • 357699f Fix pre-alpha build workflow failures

📊 Changes

3 files changed (+5 additions, -3 deletions)

View changed files

📝 .github/workflows/prealpha-platform-builds.yml (+2 -1)
📝 docs/developer/run-build.html (+1 -1)
📝 scripts/run-tauri.mjs (+2 -1)

📄 Description

Linked issue

Follow-up to #1368 / #1369 and failed workflow run https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/26486279463.

Why this change

  • The first manual pre-alpha workflow run failed on Android because the pre-alpha Tauri config changed the bundle identifier, causing Tauri Android to look for a generated Java/Kotlin source package that does not exist.
  • The Windows desktop job failed because scripts/run-tauri.mjs rewrote PATH using only the uppercase PATH key; Windows runners may expose the inherited path as Path, which hid node_modules/.bin/tauri.cmd from the spawned process.

What changed

  • Android pre-alpha CI build now runs pnpm tauri android build --debug --apk --ci without the desktop pre-alpha config override.
  • Android still applies the pre-alpha app id and app name through the existing Gradle environment overrides.
  • scripts/run-tauri.mjs now preserves the existing path environment variable case-insensitively before prepending Cargo's bin directory.
  • Developer docs now describe the Android build as using Gradle-provided pre-alpha identity overrides.

Refactor impact

Primary owner:

  • CI/release distribution

Impact areas reviewed:

  • Pre-alpha GitHub Actions desktop build path
  • Pre-alpha GitHub Actions Android build path
  • Cross-platform Tauri CLI wrapper
  • Developer build docs

Boundary notes:

  • No React feature, engine, shared API, or Rust runtime behavior changed.
  • Android app identity remains isolated via Gradle environment variables for the pre-alpha workflow.
  • Desktop still uses src-tauri/tauri.prealpha.conf.json for the pre-alpha product name and identifier.

Pressure points touched:

  • Tauri CLI invocation wrapper
  • Android generated-project package assumptions
  • Pre-alpha release workflow

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

  • Reviewed failed run/job logs for Android and Windows failures.
  • Parsed .github/workflows/prealpha-platform-builds.yml with PyYAML/BaseLoader.
  • Ran node --check scripts/run-tauri.mjs.
  • Ran pnpm tauri --version successfully through the wrapper on Windows.
  • Ran git diff --check.
  • Did not run the full platform packaging workflow locally; this needs another GitHub-hosted workflow dispatch after merge.

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 — CI/docs/script fix only.


🔄 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/1384 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@undefined](undefined) **Base:** `refactor` ← **Head:** `ci/fix-prealpha-builds` --- ### 📝 Commits (1) - [`357699f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/357699f52504119c48f036e694a1290eaa34b8de) Fix pre-alpha build workflow failures ### 📊 Changes **3 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/prealpha-platform-builds.yml` (+2 -1) 📝 `docs/developer/run-build.html` (+1 -1) 📝 `scripts/run-tauri.mjs` (+2 -1) </details> ### 📄 Description ## Linked issue Follow-up to #1368 / #1369 and failed workflow run https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/26486279463. ## Why this change - The first manual pre-alpha workflow run failed on Android because the pre-alpha Tauri config changed the bundle identifier, causing Tauri Android to look for a generated Java/Kotlin source package that does not exist. - The Windows desktop job failed because `scripts/run-tauri.mjs` rewrote `PATH` using only the uppercase `PATH` key; Windows runners may expose the inherited path as `Path`, which hid `node_modules/.bin/tauri.cmd` from the spawned process. ## What changed - Android pre-alpha CI build now runs `pnpm tauri android build --debug --apk --ci` without the desktop pre-alpha config override. - Android still applies the pre-alpha app id and app name through the existing Gradle environment overrides. - `scripts/run-tauri.mjs` now preserves the existing path environment variable case-insensitively before prepending Cargo's bin directory. - Developer docs now describe the Android build as using Gradle-provided pre-alpha identity overrides. ## Refactor impact Primary owner: - CI/release distribution Impact areas reviewed: - Pre-alpha GitHub Actions desktop build path - Pre-alpha GitHub Actions Android build path - Cross-platform Tauri CLI wrapper - Developer build docs Boundary notes: - No React feature, engine, shared API, or Rust runtime behavior changed. - Android app identity remains isolated via Gradle environment variables for the pre-alpha workflow. - Desktop still uses `src-tauri/tauri.prealpha.conf.json` for the pre-alpha product name and identifier. Pressure points touched: - Tauri CLI invocation wrapper - Android generated-project package assumptions - Pre-alpha release workflow ## Validation - [ ] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [x] `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 - Reviewed failed run/job logs for Android and Windows failures. - Parsed `.github/workflows/prealpha-platform-builds.yml` with PyYAML/BaseLoader. - Ran `node --check scripts/run-tauri.mjs`. - Ran `pnpm tauri --version` successfully through the wrapper on Windows. - Ran `git diff --check`. - Did not run the full platform packaging workflow locally; this needs another GitHub-hosted workflow dispatch after merge. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [x] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence N/A — CI/docs/script fix only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:48 +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#5054
No description provided.