Files
2nd/10_Wiki/Topics/Domain_Programming/Architecture/Continuous_Integration_CI.md
T
Antigravity Agent c24165b8bc refactor(topics): 멀티 에이전트용 지식 재편 — _Common(공통 기본기) + Domain_* 구조
에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게
[공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류.
문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인).

- Topic_Programming → Domain_Programming (내부 구조 보존)
- Topic_Graphic → Domain_Design
- Topic_Business → Domain_Product
- Topic_General → Domain_General
- _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning),
  Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing)
- 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서)
- 빈 폴더 정리 (memory/procedures)
- 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 11:05:56 +09:00

4.7 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-continuous-integration-ci Continuous Integration (CI) 10_Wiki/Topics verified self
CI
Continuous Integration
지속적 통합
none A 0.92 applied
ci
devops
automation
github-actions
2026-05-10 pending
language framework
yaml github-actions

Continuous Integration (CI)

매 한 줄

"매 push마다 build + test, fast feedback". Grady Booch (1991) 가 제안, Martin Fowler 가 대중화. 2026 현재 GitHub Actions / GitLab CI 가 표준이며, AI-assisted PR review (Claude Opus 4.7) 와 결합되어 매 commit 검증 cycle 이 분 단위로 압축됨.

매 핵심

매 원칙

  • Mainline integration 빈번: 매 developer 매일 main 에 merge.
  • Automated build: 매 commit trigger build pipeline.
  • Automated test: unit + integration + lint 매 자동 실행.
  • Fast feedback: <10 min 안에 결과. 길어지면 dev 매 ignore.
  • Single source of truth: 매 single repo, single mainline.

매 stages

  • Lint (10s) — eslint, ruff, gofmt.
  • Unit test (1-3 min) — vitest, pytest, go test.
  • Integration test (3-8 min) — testcontainers, ephemeral DB.
  • Build artifact (1-2 min) — docker image, npm tarball.
  • Static analysis (parallel) — SonarQube, Snyk, CodeQL.

매 응용

  1. SaaS product 매 trunk-based development.
  2. Open-source project 매 PR validation.
  3. Monorepo 매 affected-only build (Turborepo, Nx).

💻 패턴

Modern GitHub Actions (2026)

name: CI
on:
  push: { branches: [main] }
  pull_request:
  merge_group:

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  test:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v5
      - uses: actions/setup-node@v5
        with: { node-version: '22', cache: 'pnpm' }
      - run: pnpm install --frozen-lockfile
      - run: pnpm lint
      - run: pnpm test --coverage
      - uses: codecov/codecov-action@v5

Matrix build

strategy:
  fail-fast: false
  matrix:
    os: [ubuntu-24.04, macos-14, windows-2022]
    node: [20, 22]
runs-on: ${{ matrix.os }}

Affected-only (monorepo)

- run: pnpm exec turbo run test --filter=...[origin/main]

Reusable workflow

# .github/workflows/reusable-test.yml
on:
  workflow_call:
    inputs:
      node-version: { type: string, default: '22' }
jobs:
  test:
    runs-on: ubuntu-24.04
    steps: [ ... ]

Container-based test (testcontainers)

# pytest with ephemeral postgres
from testcontainers.postgres import PostgresContainer

def test_repo():
    with PostgresContainer("postgres:17") as pg:
        url = pg.get_connection_url()
        # run integration test against real DB

Cache layers (docker buildx)

- uses: docker/build-push-action@v6
  with:
    context: .
    cache-from: type=gha
    cache-to: type=gha,mode=max
    tags: ghcr.io/org/app:${{ github.sha }}

AI PR review (2026)

- uses: anthropic-experimental/claude-code-action@v1
  with:
    api-key: ${{ secrets.ANTHROPIC_API_KEY }}
    model: claude-opus-4-7
    review-mode: pr-comment

매 결정 기준

상황 Approach
Open-source GitHub repo GitHub Actions
Self-hosted, private GitLab CI / Drone
Monorepo Turborepo + affected-only
Polyglot, complex Buildkite / Bazel
Mobile (iOS/Android) Bitrise / Xcode Cloud

기본값: GitHub Actions + concurrency cancel + matrix + cache.

🔗 Graph

🤖 LLM 활용

언제: PR diff review, flaky test detection, commit message generation, changelog 생성. 언제 X: secret-handling pipeline (보안), production deploy gate (deterministic 해야 함).

안티패턴

  • Slow pipeline (>20 min): dev 매 ignore, "broken main" 정상화.
  • Flaky test 방치: trust collapse → 매 retry, retry, retry.
  • No mainline protection: 직접 push to main, PR 없음.
  • Build on developer machine only: "works on my machine" 재현.
  • Secrets in logs: env 출력, token leak.

🧪 검증 / 중복

  • Verified (Fowler 2006 Continuous Integration article, GitHub Actions docs 2026).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — full content with modern GitHub Actions patterns