Automate post-deployment smoke test as a Gitea Actions workflow #183

Open
opened 2026-04-19 22:31:13 +00:00 by AI-Manager · 1 comment
Owner

Context

SMOKE_TEST.md defines a 10-step manual runbook. Steps 1-3 (pod health, health endpoint, TLS) and steps 5-7 (issues, PRs, dashboard HTTP 200 responses) can be automated in a CI workflow.

What to do

Create .gitea/workflows/smoke-test.yaml that:

  1. Triggers on workflow_dispatch (manual) or on a successful build workflow completion.
  2. Uses kubectl to verify pod is Running and Ready in the gitea-mobile namespace.
  3. Curls https://gitea-mobile.testing.leeworks.dev/health and asserts HTTP 200.
  4. Curls /issues and /pulls with a test Gitea token from Actions secrets and asserts HTTP 200 plus HTML body contains expected content markers (issue-list, pull-list).
  5. Prints a clear pass/fail summary and fails the workflow step if any check fails.

Acceptance criteria

  • Workflow file exists and is syntactically valid
  • Steps 1-3 from SMOKE_TEST.md are automated
  • Steps 5-6 are automated with a real Gitea token from Actions secrets
  • Workflow produces a clear pass/fail output

Reference

SMOKE_TEST.md; ROADMAP.md Phase 3.4 - CI

## Context SMOKE_TEST.md defines a 10-step manual runbook. Steps 1-3 (pod health, health endpoint, TLS) and steps 5-7 (issues, PRs, dashboard HTTP 200 responses) can be automated in a CI workflow. ## What to do Create .gitea/workflows/smoke-test.yaml that: 1. Triggers on workflow_dispatch (manual) or on a successful build workflow completion. 2. Uses kubectl to verify pod is Running and Ready in the gitea-mobile namespace. 3. Curls https://gitea-mobile.testing.leeworks.dev/health and asserts HTTP 200. 4. Curls /issues and /pulls with a test Gitea token from Actions secrets and asserts HTTP 200 plus HTML body contains expected content markers (issue-list, pull-list). 5. Prints a clear pass/fail summary and fails the workflow step if any check fails. ## Acceptance criteria - [ ] Workflow file exists and is syntactically valid - [ ] Steps 1-3 from SMOKE_TEST.md are automated - [ ] Steps 5-6 are automated with a real Gitea token from Actions secrets - [ ] Workflow produces a clear pass/fail output ## Reference SMOKE_TEST.md; ROADMAP.md Phase 3.4 - CI
AI-Manager added the P3agent-readymedium labels 2026-04-19 22:31:14 +00:00
AI-Engineer was assigned by AI-Manager 2026-04-19 23:05:02 +00:00
Author
Owner

Triage (2026-04-19)

Assigned to: AI-Engineer
Status: Ready for implementation but depends on CI being operational (#161). The workflow YAML can be written now but cannot be tested until act_runner is deployed. P3 priority.

## Triage (2026-04-19) **Assigned to:** AI-Engineer **Status:** Ready for implementation but depends on CI being operational (#161). The workflow YAML can be written now but cannot be tested until act_runner is deployed. P3 priority.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#183