Commit Graph

42 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
1bf0a6b111 ci: re-trigger test pipeline for PR review 2026-03-15 16:35:24 -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
7a9a350beb ci: test agent after cleanup 2026-03-15 15:54:16 -05:00
Shaun Arman
36a4a5711a chore: update CI status timestamp — resolves PR conflict via rebase on master 2026-03-15 15:50:49 -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
e88d289118 ci: use npm ci --legacy-peer-deps for vite6/vitest peer dep conflict 2026-03-15 14:39:43 -05:00
Shaun Arman
171bac86e5 ci: remove wiki-sync step (incompatible with Woodpecker 0.15.4 secrets syntax) 2026-03-15 14:23:21 -05:00
Shaun Arman
cf41e0d0cb ci: trigger build after Woodpecker restart with new token 2026-03-15 14:19:46 -05:00
Shaun Arman
2915accfd9 ci: verify CI pipeline triggers after token rotation and webhook refresh 2026-03-15 14:17:18 -05:00
Shaun Arman
e62916d0dd ci: verify pipeline after security token rotation 2026-03-15 14:13:46 -05:00
Shaun Arman
52f464d8bd docs: add wiki source files and CI auto-sync pipeline
- Add docs/wiki/ with 11 wiki pages (Home, Architecture, Database,
  AI-Providers, PII-Detection, IPC-Commands, CICD-Pipeline,
  Security-Model, Integrations, Development-Setup, Troubleshooting)
- Add wiki-sync step to .woodpecker/test.yml: syncs docs/wiki/*.md to
  the Gogs wiki git repo on every push to master
- Add Wiki Maintenance section to CLAUDE.md: code→wiki file mapping
  so Claude and contributors know which wiki page to update per change

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 13:45:30 -05:00
Shaun Arman
b7c49abc4d ci: bump Rust to 1.88-slim (min required by cookie_store, time, darling) 2026-03-15 12:58:28 -05:00
Shaun Arman
d8d012b4dc ci: bump Rust to 1.85-slim for edition 2024 support 2026-03-15 12:51:59 -05:00
Shaun Arman
1011fc1db4 ci: re-trigger after making repo public 2026-03-15 12:40:36 -05:00
Shaun Arman
b7830fc0c7 ci: re-trigger after enabling repo_trusted 2026-03-15 12:39:14 -05:00
Shaun Arman
f2d578533a ci: put clone step on gogs_default network for hostname resolution 2026-03-15 12:38:08 -05:00
Shaun Arman
11d2ee12fd ci: use host IP for clone URL (step containers can't resolve gogs_app) 2026-03-15 12:33:39 -05:00
Shaun Arman
9bb27ab370 ci: use CI_REPO_CLONE_URL override for plugin-git 2026-03-15 12:32:52 -05:00
Shaun Arman
ba54695793 ci: override clone URL — fix empty DRONE_REMOTE_URL from Gogs 0.14 hook payload 2026-03-15 12:30:46 -05:00
Shaun Arman
d4f4b9d4c7 ci: capture payload v2 2026-03-15 12:10:12 -05:00
Shaun Arman
0194045286 ci: capture webhook payload 2026-03-15 12:06:28 -05:00
Shaun Arman
92f2be64c8 ci: convert test.yml to Woodpecker 0.15.4 pipeline: map format 2026-03-15 12:02:17 -05:00
Shaun Arman
fa0df9cbde ci: test pipeline trigger with single-file config path 2026-03-15 11:57:48 -05:00
Shaun Arman
4475261fa8 ci: test CI trigger after webhook fix 2026-03-15 11:52:08 -05:00
Shaun Arman
7a972b05d7 ci: verify webhook with token in URL
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:41:14 -05:00
Shaun Arman
5733362c06 ci: clean up test file, verify CI pipeline active
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:39:44 -05:00
Shaun Arman
d8fd7ce5be ci: test Woodpecker CI build trigger
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:36:17 -05:00
Shaun Arman
8e47949114 ci: remove ci test file (webhook is working)
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:09:46 -05:00
Shaun Arman
a96038fec0 ci: trigger initial Woodpecker CI test build
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 23:08:25 -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