-
Notifications
You must be signed in to change notification settings - Fork 0
[Fix-94] [INT][CH] Story 10.4 풀스택 스모크 리허설과 릴리스 증적 게이트를 구현 #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kyuoogle
wants to merge
21
commits into
main
Choose a base branch
from
Integration/FIX-94-Story-10.4-Integration-Test-Full-stack-Smoke-Rehearsal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
3d3e49f
ops: 관측 스택 검증 스크립트와 회귀 테스트를 추가
kyuoogle d3f5341
ops: 풀스택 콜드스타트 스모크와 API 문서 검증 자동화를 추가
kyuoogle 105332e
ops: 다중 인증 세션 격리 리허설 스크립트를 추가
kyuoogle 0ec4dfa
ops: 롤백 리허설과 go-no-go 체크리스트 자산을 추가
kyuoogle bdb54a8
test: 10.4 증적 집계 스크립트와 회귀 테스트를 추가
kyuoogle 8d9bef5
ci: 10.4 풀스택 스모크 리허설 워크플로를 추가
kyuoogle 8971c9c
fix: 10.4 리허설 워크플로와 증적 집계를 정합화
kyuoogle 588ffe7
fix: 10.4 풀스택 스모크 준비 대기와 BE 포인터를 정합화
kyuoogle af68b54
fix: 10.4 증적 계약과 리허설 검증을 정합화
kyuoogle b95e0ce
fix: 10.4 스모크 루프백 주소와 BE 포인터를 정합화
kyuoogle 6f5ce57
fix: 10.4 BE 서브모듈 포인터 해시를 정합화
kyuoogle 46e259d
fix: 10.4 스모크 mandatory API 경로를 분리
kyuoogle 5b5fbeb
fix: 10.4 스모크 실패 증적을 유지하도록 조정
kyuoogle 5f88ea9
fix: 10.4 스모크 step outcome을 정합화
kyuoogle 2b6371a
fix: mysql grant repair 스크립트 누락을 복구
kyuoogle b0bab8f
fix: edge health 라우팅을 management 포트로 분리
kyuoogle 86534c9
fix: 스모크 문서 검증과 세션 격리 대기를 조정
kyuoogle e3c0e39
fix: 관측 검증과 채널 재기동 대기를 보강
kyuoogle f533330
fix: 세션 격리 리허설의 deadlock 재시도를 추가
kyuoogle b59aef0
fix: 세션 격리 실행을 직렬화하고 deadlock 재시도를 확대
kyuoogle e27886e
fix: 세션 격리 주문 세션 step-up 검증을 자동화
kyuoogle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| scripts/observability/validate-observability-stack.sh text eol=lf | ||
| scripts/infra-bootstrap/repair-service-databases.sh text eol=lf | ||
| scripts/release-readiness/run-edge-gateway-validation.sh text eol=lf | ||
| scripts/release-readiness/run-full-stack-smoke.sh text eol=lf | ||
| scripts/release-readiness/run-rollback-rehearsal.sh text eol=lf |
186 changes: 186 additions & 0 deletions
186
.github/workflows/story-10-4-full-stack-smoke-rehearsal.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,186 @@ | ||
| name: Story 10.4 Full-Stack Smoke Rehearsal | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'BE' | ||
| - 'BE/**' | ||
| - 'docker-compose.yml' | ||
| - 'docker/**' | ||
| - 'scripts/release-readiness/**' | ||
| - 'scripts/observability/**' | ||
| - 'scripts/story-11-5-live-dashboard-account.mjs' | ||
| - 'tests/release-readiness/**' | ||
| - 'docs/ops/**' | ||
| - '.env.example' | ||
| - 'package.json' | ||
| - '.github/workflows/story-10-4-full-stack-smoke-rehearsal.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: story-10-4-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| full-stack-smoke-rehearsal: | ||
| name: story-10-4-full-stack-smoke-rehearsal | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 90 | ||
| env: | ||
| STORY_10_4_BUILD_ID: gha-${{ github.run_id }}-${{ github.run_attempt }} | ||
| COMPOSE_PROFILES: observability | ||
| VAULT_DEV_ROOT_TOKEN_ID: ci-vault-root-token | ||
| INTERNAL_SECRET_BOOTSTRAP: ci-bootstrap-secret | ||
| INTERNAL_SECRET: ci-runtime-secret | ||
| OBSERVABILITY_GRAFANA_ADMIN_USER: admin | ||
| OBSERVABILITY_GRAFANA_ADMIN_PASSWORD: admin | ||
| FEP_MARKETDATA_PROVIDER: REPLAY | ||
| SESSION_ISOLATION_BASE_URL: http://127.0.0.1:8080 | ||
| SESSION_ISOLATION_PASSWORD: LiveVideo115! | ||
| SESSION_ISOLATION_SESSION_TIMEOUT_MS: "180000" | ||
|
kyuoogle marked this conversation as resolved.
|
||
| SESSION_ISOLATION_REQUEST_TIMEOUT_MS: "90000" | ||
| SESSION_ISOLATION_POLL_TIMEOUT_MS: "90000" | ||
| ROLLBACK_REHEARSAL_MODE: simulate | ||
| ROLLBACK_REHEARSAL_OPERATOR: github-actions | ||
| ROLLBACK_REHEARSAL_CHANGE_REF: GHA-${{ github.run_id }} | ||
| ROLLBACK_REHEARSAL_OWNER: release-platform-oncall | ||
| NODE_TLS_REJECT_UNAUTHORIZED: "0" | ||
| EDGE_BASE_URL: https://127.0.0.1 | ||
| SMOKE_MANDATORY_API_BASE_URL: http://127.0.0.1:8080 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
| with: | ||
| submodules: recursive | ||
| token: ${{ secrets.SUBMODULES_TOKEN || secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 | ||
| with: | ||
| node-version: "20" | ||
|
|
||
| - name: Materialize rehearsal environment file | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| cp .env.example .env | ||
| { | ||
| printf 'COMPOSE_PROFILES=%s\n' "${COMPOSE_PROFILES}" | ||
| printf 'VAULT_DEV_ROOT_TOKEN_ID=%s\n' "${VAULT_DEV_ROOT_TOKEN_ID}" | ||
| printf 'INTERNAL_SECRET_BOOTSTRAP=%s\n' "${INTERNAL_SECRET_BOOTSTRAP}" | ||
| printf 'INTERNAL_SECRET=%s\n' "${INTERNAL_SECRET}" | ||
| printf 'OBSERVABILITY_GRAFANA_ADMIN_USER=%s\n' "${OBSERVABILITY_GRAFANA_ADMIN_USER}" | ||
| printf 'OBSERVABILITY_GRAFANA_ADMIN_PASSWORD=%s\n' "${OBSERVABILITY_GRAFANA_ADMIN_PASSWORD}" | ||
| printf 'FEP_MARKETDATA_PROVIDER=%s\n' "${FEP_MARKETDATA_PROVIDER}" | ||
| } >> .env | ||
|
|
||
| - name: Validate release-readiness scripts | ||
| run: npm run lint:release-readiness | ||
|
|
||
| - name: Run release-readiness regression tests | ||
| run: npm run test:release-readiness | ||
|
|
||
| - name: Run full-stack smoke | ||
| id: smoke | ||
| continue-on-error: true | ||
| shell: bash | ||
| env: | ||
| SMOKE_BUILD_ID: ${{ env.STORY_10_4_BUILD_ID }} | ||
| SMOKE_STACK_READY_TIMEOUT_SECONDS: "300" | ||
| run: | | ||
| set -euo pipefail | ||
| bash ./scripts/release-readiness/run-full-stack-smoke.sh | ||
|
|
||
| - name: Run edge gateway validation | ||
| id: edge | ||
| if: ${{ always() && steps.smoke.outcome == 'success' }} | ||
| continue-on-error: true | ||
| shell: bash | ||
| env: | ||
| EDGE_VALIDATION_BUILD_ID: ${{ env.STORY_10_4_BUILD_ID }} | ||
| SKIP_COMPOSE_UP: "1" | ||
| run: | | ||
| set -euo pipefail | ||
| bash ./scripts/release-readiness/run-edge-gateway-validation.sh | ||
|
|
||
|
kyuoogle marked this conversation as resolved.
|
||
| - name: Run five-session isolation rehearsal | ||
| id: session_isolation | ||
| if: ${{ always() && steps.smoke.outcome == 'success' }} | ||
| continue-on-error: true | ||
| env: | ||
| SESSION_ISOLATION_BUILD_ID: ${{ env.STORY_10_4_BUILD_ID }} | ||
| run: node ./scripts/release-readiness/run-five-session-isolation.mjs | ||
|
|
||
| - name: Run rollback rehearsal | ||
| id: rollback | ||
| if: always() | ||
| continue-on-error: true | ||
| shell: bash | ||
| env: | ||
| ROLLBACK_REHEARSAL_BUILD_ID: ${{ env.STORY_10_4_BUILD_ID }} | ||
| run: | | ||
| set -euo pipefail | ||
| bash ./scripts/release-readiness/run-rollback-rehearsal.sh | ||
|
|
||
| - name: Assemble Story 10.4 evidence | ||
| id: assemble | ||
| if: always() | ||
| continue-on-error: true | ||
| env: | ||
| STORY_10_4_BUILD_ID: ${{ env.STORY_10_4_BUILD_ID }} | ||
| run: npm run assemble:story-10-4:evidence | ||
|
|
||
| - name: Upload Story 10.4 evidence | ||
| if: always() | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | ||
| with: | ||
| name: story-10-4-full-stack-smoke-rehearsal-${{ github.run_id }}-${{ github.run_attempt }} | ||
| path: _bmad-output/test-artifacts/epic-10/${{ env.STORY_10_4_BUILD_ID }}/story-10-4/** | ||
| if-no-files-found: error | ||
| retention-days: 90 | ||
|
|
||
| - name: Tear down rehearsal stack | ||
| if: always() | ||
| shell: bash | ||
| run: | | ||
| docker compose down -v --remove-orphans || true | ||
| rm -f .env | ||
|
|
||
| - name: Enforce Story 10.4 gate | ||
| if: always() | ||
| shell: bash | ||
| run: | | ||
| failures=0 | ||
|
|
||
| if [[ "${{ steps.smoke.outcome }}" != "success" ]]; then | ||
| echo "Smoke step failed." | ||
| failures=1 | ||
| fi | ||
|
|
||
| if [[ "${{ steps.smoke.outcome }}" == "success" && "${{ steps.edge.outcome }}" != "success" ]]; then | ||
| echo "Edge gateway validation failed." | ||
| failures=1 | ||
| fi | ||
|
|
||
| if [[ "${{ steps.smoke.outcome }}" == "success" && "${{ steps.session_isolation.outcome }}" != "success" ]]; then | ||
| echo "Session isolation rehearsal failed." | ||
| failures=1 | ||
| fi | ||
|
|
||
| if [[ "${{ steps.rollback.outcome }}" != "success" ]]; then | ||
| echo "Rollback rehearsal failed." | ||
| failures=1 | ||
| fi | ||
|
|
||
| if [[ "${{ steps.assemble.outcome }}" != "success" ]]; then | ||
| echo "Story 10.4 evidence assembly failed." | ||
| failures=1 | ||
| fi | ||
|
|
||
| exit "${failures}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule BE
updated
54 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.