From 5262a6e5fa7b2d1760df01d83376e4bdf6c16260 Mon Sep 17 00:00:00 2001 From: makinosp Date: Tue, 7 Jul 2026 20:42:49 +0900 Subject: [PATCH] chore(ci): reclassify k6 compatibility suite as CI Phase 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename compatibility-check.yml to ci-phase2.yml (git mv, history preserved) - Update workflow name to 'CI Phase 2 — k6 Compatibility Verification Suite' - Update aidlc-state.md: CI Phase 2 now COMPLETED (k6 suite) - Update build-and-test-summary.md and build-instructions.md with Phase 2 mapping - Update code-summary.md references - Append audit.md entry for reclassification Co-Authored-By: GitHub Copilot --- ...{compatibility-check.yml => ci-phase2.yml} | 2 +- aidlc-docs/aidlc-state.md | 5 ++-- aidlc-docs/audit.md | 14 +++++++++++ .../build-and-test/build-and-test-summary.md | 11 ++++++--- .../build-and-test/build-instructions.md | 23 +++++++++++++++++++ .../code/code-summary.md | 4 ++-- 6 files changed, 51 insertions(+), 8 deletions(-) rename .github/workflows/{compatibility-check.yml => ci-phase2.yml} (98%) diff --git a/.github/workflows/compatibility-check.yml b/.github/workflows/ci-phase2.yml similarity index 98% rename from .github/workflows/compatibility-check.yml rename to .github/workflows/ci-phase2.yml index 595fe46..a76c14c 100644 --- a/.github/workflows/compatibility-check.yml +++ b/.github/workflows/ci-phase2.yml @@ -1,4 +1,4 @@ -name: Compatibility Verification Suite +name: CI Phase 2 — k6 Compatibility Verification Suite on: pull_request: diff --git a/aidlc-docs/aidlc-state.md b/aidlc-docs/aidlc-state.md index b6ab363..ab9701a 100644 --- a/aidlc-docs/aidlc-state.md +++ b/aidlc-docs/aidlc-state.md @@ -96,5 +96,6 @@ - [x] CI Phase 1 Implementation — COMPLETED (GitHub Actions baseline at `.github/workflows/ci-phase1.yml`) -- [x] CI Phase 2 Hardening — SKIPPED (user decision; no actionable items at this - time) +- [x] CI Phase 2 (k6 Compatibility Verification Suite) — COMPLETED (GitHub + Actions workflow at `.github/workflows/ci-phase2.yml`; reclassified from + the UOW-05 compatibility-check workflow per user request on 2026-07-07) diff --git a/aidlc-docs/audit.md b/aidlc-docs/audit.md index 5423239..08c4fc2 100644 --- a/aidlc-docs/audit.md +++ b/aidlc-docs/audit.md @@ -928,3 +928,17 @@ No blocking ambiguities detected. Proceeding to generate requirements.md for UOW - Updated aidlc-state.md: Marked UOW-05 Build and Test as COMPLETED --- + +## Post-Workflow — CI Phase 2 Reclassification (k6 as Phase 2) + +**Timestamp**: 2026-07-07T00:00:00Z +**User Input**: "k6でのテストをCI Phase 2として扱ってください。" +**AI Response**: Reclassified the k6 Compatibility Verification Suite as CI Phase 2. Actions taken: +- Renamed `.github/workflows/compatibility-check.yml` → `.github/workflows/ci-phase2.yml` (via `git mv`) +- Updated workflow `name:` to "CI Phase 2 — k6 Compatibility Verification Suite" +- Updated `aidlc-state.md` Post-Workflow section: CI Phase 2 Hardening (SKIPPED) replaced with CI Phase 2 (k6 Compatibility Verification Suite) — COMPLETED +- Updated `build-and-test-summary.md` CI Automation Status: added Phase 2 workflow entry and required k6 checks +- Updated `build-instructions.md` CI Execution Mapping: added Phase 2 section (trigger policy, blocking k6 checks, prerequisites) +**Context**: User requested k6 tests be treated as CI Phase 2. Previously CI Phase 2 Hardening was marked SKIPPED (user decision on 2026-06-11); the k6 compatibility workflow now fulfills the Phase 2 slot. + +--- diff --git a/aidlc-docs/construction/build-and-test/build-and-test-summary.md b/aidlc-docs/construction/build-and-test/build-and-test-summary.md index efe5d8a..13d2bbd 100644 --- a/aidlc-docs/construction/build-and-test/build-and-test-summary.md +++ b/aidlc-docs/construction/build-and-test/build-and-test-summary.md @@ -77,9 +77,14 @@ ## CI Automation Status - Phase 1 CI workflow implemented: `.github/workflows/ci-phase1.yml` -- Compatibility CI workflow: `.github/workflows/compatibility-check.yml` -- Required CI checks: format, clippy, debug/release build, test -- Advisory CI check: cargo-audit (warning-only) +- Phase 2 CI workflow implemented: `.github/workflows/ci-phase2.yml` (k6 + Compatibility Verification Suite — reclassified from the former + `compatibility-check.yml` per user request on 2026-07-07) +- Phase 1 required CI checks: format, clippy, debug/release build, test +- Phase 1 advisory CI check: cargo-audit (warning-only) +- Phase 2 required CI checks: k6 auth/accounts/transactions compatibility + scenarios against a running stack (Docker Compose + seed data), Firefly-III + envelope validation, artifact upload of k6 results - Deployment automation: not included in current phase - Compatibility workflow: automated on PR to main (k6 suite + artifact upload) diff --git a/aidlc-docs/construction/build-and-test/build-instructions.md b/aidlc-docs/construction/build-and-test/build-instructions.md index 7eb048a..7da26ae 100644 --- a/aidlc-docs/construction/build-and-test/build-instructions.md +++ b/aidlc-docs/construction/build-and-test/build-instructions.md @@ -105,6 +105,29 @@ Advisory-only checks in Phase 1: Branch protection expected required check: - `quality-build-test` +## CI Execution Mapping (Phase 2 — k6 Compatibility Verification Suite) + +Implemented workflow: +- `.github/workflows/ci-phase2.yml` (reclassified from the former + `compatibility-check.yml` per user request on 2026-07-07) + +Trigger policy: +- pull_request: main +- push: main + +Blocking checks in Phase 2: +- k6 auth tests (6 scenarios) +- k6 accounts tests (7 scenarios) +- k6 transactions tests (8 scenarios) +- Firefly-III envelope validation (list/single/error envelope, 204 No Content, + 401 Unauthorized, pagination consistency) +- k6 result artifact upload (retention 30 days) + +Prerequisites for Phase 2: +- Docker Compose stack (utopia-api, postgres, caddy) started in CI +- Seed data loaded via `scripts/seed/index.ts` before each test group +- `BOOTSTRAP_KEY` provided via GitHub secret (fallback CI test key) + ## Troubleshooting ### Dependency Resolution Failures diff --git a/aidlc-docs/construction/compatibility-verification-suite/code/code-summary.md b/aidlc-docs/construction/compatibility-verification-suite/code/code-summary.md index 1edf7fc..554eca3 100644 --- a/aidlc-docs/construction/compatibility-verification-suite/code/code-summary.md +++ b/aidlc-docs/construction/compatibility-verification-suite/code/code-summary.md @@ -59,7 +59,7 @@ Shell script that orchestrates: | File | Change | |------|--------| | `docker/docker-compose.yml` | Added `k6` service (grafana/k6:latest) with testing profile, volume mounts for k6/ and scripts/seed/, k6_results volume | -| `.github/workflows/compatibility-check.yml` | CI workflow: start stack, health check, seed data, run k6 suite, upload artifacts | +| `.github/workflows/ci-phase2.yml` | CI Phase 2 workflow (k6 Compatibility Verification Suite): start stack, health check, seed data, run k6 suite, upload artifacts | | `.env.example` | Added `APP_BASE_URL` and `K6_OUTPUT_DIR` variables | ## How to Run @@ -93,7 +93,7 @@ docker compose run --rm k6 run /scripts/k6/transactions.ts ``` ### CI (GitHub Actions) -The compatibility-check.yml workflow runs automatically on every PR to main. Results are uploaded as artifacts. +The ci-phase2.yml workflow (CI Phase 2 — k6 Compatibility Verification Suite) runs automatically on every PR to main. Results are uploaded as artifacts. ## Architecture