Commit Graph

15 Commits

Author SHA1 Message Date
Shaun Arman
c7b66e0820 ci: migrate pipelines to Woodpecker 2.x + Gitea
- Convert pipeline: map format → steps: list format (Woodpecker 2.x)
- Add per-step labels for agent routing (platform: linux/amd64 / arm64)
- Add native build-linux-arm64 step (routes to local arm64 agent)
  - Arm64 step self-clones via host IP (isolated workspace per agent)
  - Arm64 step uploads artifacts inline to Gitea API
- Replace gogs_app → gitea_app in all clone/upload URLs
- Remove Woodpecker 0.15.4 per-step platform routing workaround note
- Update wiki: Gitea migration notes, new pipeline format docs, agent labels

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 13:28:49 -05:00
Shaun Arman
ac56851e4d docs: remove broken arm64 CI step, document Woodpecker 0.15.4 limitation
when: platform: is evaluated at compile time (server=amd64) and silently
drops the arm64 step. Per-step platform routing requires Woodpecker 2.x.
Document the make release-arm64 workaround for linux/arm64 builds.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 12:52:58 -05:00
Shaun Arman
22d3092b65 fix: use when: platform: for arm64 step routing (Woodpecker 0.15.4 compat)
Top-level platform: key conflicts with commands: in Woodpecker 0.15.4 YAML
parser — treated as a plugin attribute. Move to when: platform: condition
which is supported for agent platform routing in this version.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 12:49:41 -05:00
Shaun Arman
2c1094fdcb feat: add native linux/arm64 release build step
Install Woodpecker agent as systemd user service on local aarch64 machine
(Fedora Asahi 42). Add build-linux-arm64 step to release pipeline using
platform: linux/arm64 to route to the native arm64 agent. Update upload
step to include artifacts/linux-arm64/ in the release upload loop.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 12:44:43 -05:00
Shaun Arman
73584e357b fix: add make to windows build step (required by vendored OpenSSL) 2026-03-15 19:53:19 -05:00
Shaun Arman
1f062948fc fix: use bundled-sqlcipher-vendored-openssl for portable Windows cross-compilation
SQLCipher requires OpenSSL when cross-compiling for Windows with mingw-w64.
bundled-sqlcipher-vendored-openssl compiles OpenSSL from source — no system
OpenSSL needed for any target. Add perl to CI steps (required by OpenSSL build).
2026-03-15 19:17:36 -05:00
Shaun Arman
b042182ee2 feat: add Windows amd64 cross-compile to release pipeline; add arm64 QEMU agent
- build-windows-amd64: cross-compile with mingw-w64 for x86_64-pc-windows-gnu
- upload: uses gogs_default network + uploads both linux and windows artifacts
- arm64: QEMU agent deployed at woodpecker_agent_arm64 (linux/arm64 platform)
- artifacts/ excluded from git via .gitignore
2026-03-15 18:47:42 -05:00
Shaun Arman
a004d8b3ef fix: upload step needs gogs_default network to reach Gogs API (host firewall blocks default bridge) 2026-03-15 18:41:54 -05:00
Shaun Arman
7965a7bec6 fix: write artifacts to workspace (shared between steps), not /artifacts/ 2026-03-15 18:08:09 -05:00
Shaun Arman
d66934cdf0 fix: remove arm64 from release pipeline — webkit2gtk multiarch conflict on x86_64 host
Cross-compiling webkit2gtk-4.1-dev for arm64 from x86_64 fails due to
held broken packages. arm64 requires native arm64 CI runner.
amd64 release artifacts still upload correctly.
2026-03-15 17:46:54 -05:00
Shaun Arman
4dc4b5aed1 fix: arm64 cross-compilation — add multiarch pkg-config sysroot setup
- dpkg --add-architecture arm64 + install arm64 lib variants
- Set PKG_CONFIG_ALLOW_CROSS, PKG_CONFIG_PATH, PKG_CONFIG_SYSROOT_DIR
- Upload step now handles missing arm64 artifacts gracefully
2026-03-15 17:28:53 -05:00
Shaun Arman
bf7f14b387 fix: set CI=true for cargo tauri build — Woodpecker sets CI=woodpecker which Tauri CLI rejects 2026-03-15 16:34:04 -05:00
Shaun Arman
a7e3a7cd91 fix: use alpine/git with explicit checkout for tag-based release builds
woodpeckerci/plugin-git:latest uses 'git switch' which fails on tag refs.
Switch to alpine/git with explicit git fetch + checkout commands.

Fixes: 'fatal: invalid reference: refs/tags/v*' in release pipeline.
2026-03-15 15:19:43 -05:00
Shaun Arman
06a77fbe95 ci: fix release.yml for Woodpecker 0.15.4 (pipeline: map format, rust 1.88, npm ci fix, clone override) 2026-03-15 15:07:52 -05:00
Shaun Arman
8839075805 feat: initial implementation of TFTSR IT Triage & RCA application
Implements Phases 1-8 of the TFTSR implementation plan.

Rust backend (Tauri 2.x, src-tauri/):
- Multi-provider AI: OpenAI-compatible, Anthropic, Gemini, Mistral, Ollama
- PII detection engine: 11 regex patterns with overlap resolution
- SQLCipher AES-256 encrypted database with 10 versioned migrations
- 28 Tauri IPC commands for triage, analysis, document, and system ops
- Ollama: hardware probe, model recommendations, pull/delete with events
- RCA and blameless post-mortem Markdown document generators
- PDF export via printpdf
- Audit log: SHA-256 hash of every external data send
- Integration stubs for Confluence, ServiceNow, Azure DevOps (v0.2)

Frontend (React 18 + TypeScript + Vite, src/):
- 9 pages: full triage workflow NewIssue→LogUpload→Triage→Resolution→RCA→Postmortem→History+Settings
- 7 components: ChatWindow, TriageProgress, PiiDiffViewer, DocEditor, HardwareReport, ModelSelector, UI primitives
- 3 Zustand stores: session, settings (persisted), history
- Type-safe tauriCommands.ts matching Rust backend types exactly
- 8 IT domain system prompts (Linux, Windows, Network, K8s, DB, Virt, HW, Obs)

DevOps:
- .woodpecker/test.yml: rustfmt, clippy, cargo test, tsc, vitest on every push
- .woodpecker/release.yml: linux/amd64 + linux/arm64 builds, Gogs release upload

Verified:
- cargo check: zero errors
- tsc --noEmit: zero errors
- vitest run: 13/13 unit tests passing

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 22:36:25 -05:00