Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a470827
docs(test): 核心功能测试架构设计(单元 + 集成 + E2E)
ULookup Jul 8, 2026
827a35d
docs(test): spec self-review 修正
ULookup Jul 8, 2026
be5197e
plan(test): Phase 0a 测试基础设施实现计划
ULookup Jul 8, 2026
3bf3fb5
docs(test): 重新设计为 Go 测试架构 + Phase 0 CI 计划
ULookup Jul 8, 2026
647cb12
docs(test): 测试用例目录补充设计(124 个补充用例)
ULookup Jul 8, 2026
cc771ab
docs(test): BVT 测试设计(18 个烟雾测试用例)
ULookup Jul 8, 2026
fb46cf9
docs(test): E2E 场景测试设计(12 个场景)
ULookup Jul 8, 2026
393d53c
docs(test): 统一测试架构主设计,归档原 4 份 spec
ULookup Jul 9, 2026
ecf6485
docs(test): 新增 Phase 1/2/3 实现计划
ULookup Jul 9, 2026
3b816c4
feat(test): cleanup 包 + config database 段 + func setup 调用 CleanupAll …
ULookup Jul 9, 2026
30f384e
feat(test): WebSocket 客户端 + push proto 生成 (code-only, tests pending s…
ULookup Jul 9, 2026
2977043
feat(test): verify 包 - DB + ES 直查验证 (code-only, tests pending stack)
ULookup Jul 9, 2026
befb3b0
feat(test): fixture 扩展 - group/message/ws
ULookup Jul 10, 2026
15ecdcd
feat(bvt): setup_test.go - TestMain 加载 config + WaitForStackReady + C…
ULookup Jul 10, 2026
0819cf0
test(bvt): BVT-001~003 基础设施健康检查
ULookup Jul 10, 2026
5ca5674
test(bvt): BVT-004~006 认证链路冒烟
ULookup Jul 10, 2026
d30efa5
test(bvt): BVT-007~008 社交链路冒烟
ULookup Jul 10, 2026
1c3f4be
test(bvt): BVT-009~011 消息链路冒烟
ULookup Jul 10, 2026
84b3919
test(bvt): BVT-012~014 会话链路冒烟
ULookup Jul 10, 2026
96882b1
test(bvt): BVT-015~017 媒体链路冒烟
ULookup Jul 10, 2026
6e4ea01
test(bvt): BVT-018 presence 链路冒烟
ULookup Jul 10, 2026
04b3e60
test(func): FN-TM-01/03/04 transmite 错误路径 + 读扩散
ULookup Jul 10, 2026
dc203e6
test(func): FN-MS-01/06/10 + SelectByClientMsgId + UpdateReadAck
ULookup Jul 10, 2026
953fae8
test(func): GetMemberIds 成功 + 非成员拒绝
ULookup Jul 10, 2026
332ab07
test(func): FN-WS-01/02 WebSocket 推送验证
ULookup Jul 10, 2026
ccca47f
test(func): FN-DC-01/02/03 数据一致性验证
ULookup Jul 10, 2026
4cb1643
test(func): FN-CC-01 并发相同 client_msg_id 幂等
ULookup Jul 10, 2026
5eb0015
test(func): FN-SEC-01/02/06 安全测试
ULookup Jul 10, 2026
f93d17f
test(func): SC-04 离线消息同步
ULookup Jul 13, 2026
8e09fee
test(func): SC-06 消息可靠性(MQ 可用版本)
ULookup Jul 13, 2026
6275421
ci: BVT job 门禁 + test-bvt Makefile target
ULookup Jul 13, 2026
59e6690
fix(test): final review fixes - endpoint path, push health check, git…
ULookup Jul 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: CI

on:
push:
branches: [main, develop, 3.0-dev]
pull_request:
branches: [3.0-dev]
schedule:
- cron: "0 2 * * *"

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential protobuf-compiler netcat-openbsd
- name: Build C++ services
run: mkdir -p build && cd build && cmake .. && cmake --build . -j$(nproc)
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Go vet
run: cd tests && go vet ./...
- name: Go fmt check
run: |
cd tests
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "$unformatted" >&2
exit 1
fi

bvt:
needs: build
runs-on: ubuntu-22.04
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler netcat-openbsd
- name: Start full stack
run: docker compose up -d --build
- name: Wait for services
run: ./scripts/wait_for_services.sh
- name: Generate Go protobuf
run: cd tests && make proto
- name: Download Go deps
run: cd tests && go mod download
- name: Run BVT smoke tests
run: cd tests && make test-bvt
- name: Tear down
if: always()
run: docker compose down -v

func:
needs: bvt
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request' || github.event_name == 'schedule'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler netcat-openbsd
- name: Start full stack
run: docker compose up -d --build
- name: Wait for services
run: ./scripts/wait_for_services.sh
- name: Generate Go protobuf
run: cd tests && make proto
- name: Download Go deps
run: cd tests && go mod download
- name: Run functional tests
run: cd tests && make test-func
- name: Tear down
if: always()
run: docker compose down -v

perf:
needs: func
runs-on: ubuntu-22.04
if: github.event_name == 'schedule'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler netcat-openbsd
- name: Start full stack
run: docker compose up -d --build
- name: Wait for services
run: ./scripts/wait_for_services.sh
- name: Generate Go protobuf
run: cd tests && make proto
- name: Download Go deps
run: cd tests && go mod download
- name: Run performance tests
run: cd tests && make test-perf
- name: Tear down
if: always()
run: docker compose down -v
Loading
Loading