tftsr-devops_investigation/src-tauri/src
Shaun Arman 7316339ae2
Some checks failed
Release Beta / autotag (push) Successful in 39s
Release Beta / changelog (push) Successful in 1m26s
Test / frontend-tests (push) Successful in 1m55s
Test / frontend-typecheck (push) Successful in 2m8s
Release Beta / build-macos-arm64 (push) Successful in 4m8s
Release Beta / build-linux-amd64 (push) Failing after 4m39s
Release Beta / build-windows-amd64 (push) Failing after 4m52s
Release Beta / build-linux-arm64 (push) Failing after 5m22s
Test / rust-clippy (push) Has been cancelled
Test / rust-tests (push) Has been cancelled
Test / rust-fmt-check (push) Has been cancelled
fix(ci): resolve libsodium pkg-config detection across all platforms
## Problem
All three CI build platforms (linux-amd64, windows-amd64, linux-arm64)
were failing with libsodium detection errors in release-beta.yml:
- Linux: "libsodium not found via pkg-config or vcpkg"
- Windows: "SODIUM_LIB_DIR is incompatible with SODIUM_USE_PKG_CONFIG"

## Root Cause
The libsodium-sys-stable crate requires explicit environment configuration:
- Linux needs SODIUM_USE_PKG_CONFIG=1 to find libsodium-dev packages
- Windows needs SODIUM_LIB_DIR pointing to pre-built libs OR pkg-config (not both)
- Cross-compilation requires complete PKG_CONFIG_PATH for arch-specific .pc files

## Solution

### release-beta.yml fixes:
1. **linux-amd64**: Added SODIUM_USE_PKG_CONFIG=1
2. **windows-amd64**:
   - Set SODIUM_LIB_DIR=/usr/x86_64-w64-mingw32/lib (was "")
   - Added SODIUM_USE_PKG_CONFIG=no (explicit disable)
   - Standardized SODIUM_STATIC=1 (was "yes")
3. **linux-arm64**:
   - Added SODIUM_USE_PKG_CONFIG=1
   - Extended PKG_CONFIG_PATH to include /usr/aarch64-linux-gnu/lib/pkgconfig

### auto-tag.yml fixes:
- **linux-arm64**: Extended PKG_CONFIG_PATH (same as release-beta.yml)

## Additional Fix
Fixed flaky test `shell::pty::tests::test_is_alive` by adding retry logic
for process reaping to handle OS timing variations (macOS was timing out).

## Validation
 Local build: cargo check passed
 Rust tests: 416 passed, 6 ignored
 Frontend tests: 386 passed (45 files)
 Linting: cargo clippy + eslint passed
 CI validation: pending push to beta branch

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-06-14 04:36:44 -05:00
..
ai fix(ci): remove actions/cache steps to fix Node.js requirement 2026-06-05 16:18:35 -05:00
audit fix(security): harden secret handling and audit integrity 2026-04-04 23:37:05 -05:00
cli feat: Implement Proxmox Datacenter Manager feature parity - Phases 1-11 2026-06-11 09:38:36 -05:00
commands fix: register missing updater commands 2026-06-13 19:35:09 -05:00
db fix(proxmox): remove dummy data, fix add-remote, fix updater 2026-06-13 17:33:23 -05:00
docs fix: comprehensive trcaa→tftsr conversion and URL corrections 2026-06-05 15:38:29 -05:00
integrations fix(clippy): fix Rust nightly clippy lints 2026-06-05 17:35:09 -05:00
kube fix(kubernetes): remove redundant TS cast and fix cargo fmt failures 2026-06-07 11:37:17 -05:00
mcp fix: implement v1.2.1 fixes 2026-06-12 21:20:09 -05:00
metrics fix(security): address automated code review findings 2026-06-09 18:08:58 -05:00
ollama feat: full copy from apollo_nxt-trcaa with complete sanitization 2026-06-05 14:12:43 -05:00
pii fix(security): expand Password PII patterns; add regression tests 2026-05-31 20:47:59 -05:00
proxmox feat: Implement Proxmox Datacenter Manager feature parity - Phases 1-11 2026-06-11 09:38:36 -05:00
shell fix(ci): resolve libsodium pkg-config detection across all platforms 2026-06-14 04:36:44 -05:00
lib.rs fix: register missing updater commands 2026-06-13 19:35:09 -05:00
main.rs feat: full copy from apollo_nxt-trcaa with complete sanitization 2026-06-05 14:12:43 -05:00
state.rs fix(build): resolve libsodium linking failures across all CI targets 2026-06-14 02:07:38 -05:00