sqlite-web 0.7.2
gitea.db
action_run_job
Create
Query
access
access_token
action
action_artifact
action_run
action_run_index
action_run_job
action_runner
action_runner_token
action_schedule
action_schedule_spec
action_task
action_task_output
action_task_step
action_tasks_version
action_variable
app_state
attachment
auth_token
badge
branch
collaboration
comment
commit_status
commit_status_index
commit_status_summary
commit_sync_log
commit_sync_status
dbfs_data
dbfs_meta
deploy_key
email_address
email_hash
external_login_user
follow
gpg_key
gpg_key_import
hook_task
issue
issue_assignees
issue_content_history
issue_dependency
issue_index
issue_label
issue_pin
issue_user
issue_watch
label
language_stat
lfs_lock
lfs_meta_object
login_source
milestone
mirror
notice
notification
oauth2_application
oauth2_authorization_code
oauth2_grant
org_user
package
package_blob
package_blob_upload
package_cleanup_rule
package_file
package_property
package_version
project
project_board
project_issue
protected_branch
protected_tag
public_key
pull_auto_merge
pull_request
push_mirror
reaction
release
renamed_branch
repo_archiver
repo_hidden_file
repo_indexer_status
repo_license
repo_redirect
repo_topic
repo_transfer
repo_unit
repository
review
review_state
secret
session
sqlite_sequence
star
stopwatch
system_setting
task
team
team_invite
team_repo
team_unit
team_user
topic
tracked_time
two_factor
upload
user
user_badge
user_blocking
user_open_id
user_redirect
user_setting
version
watch
webauthn_credential
webhook
Toggle helper tables
Structure
Content
Query
Insert
Drop
Import
Export
Delete row 16457 from action_run_job
id
16457
run_id
11697
repo_id
6
owner_id
5
commit_sha
9d69e1960ec649a49c0c6f307c0fc197f47ee4c4
is_fork_pull_request
0
name
📊 API 基准测试
attempt
1
workflow_payload
name: Performance Tests "on": # 每周一凌晨
name: Performance Tests "on": # 每周一凌晨 2 点运行 schedule: - cron: '0 2 * * 1' # 允许手动触发 workflow_dispatch: inputs: test_type: description: '测试类型' required: true default: 'benchmark' type: choice options: - benchmark - load - stress - all duration: description: '测试持续时间(秒)' required: false default: '60' type: string concurrency: description: '并发数' required: false default: '10' type: string # PR 触发时只运行基准测试 pull_request: branches: [main] paths: - 'backend/src/**' - 'backend/prisma/**' env: NODE_VERSION: "18" PNPM_VERSION: "8" jobs: benchmark: name: "\U0001F4CA API 基准测试" runs-on: ubuntu-latest if: needs.setup.outputs.test_type == 'benchmark' || needs.setup.outputs.test_type == 'all' steps: - name: "\U0001F4E5 检出代码" uses: actions/checkout@v4 - name: "\U0001F4E6 安装 pnpm" uses: pnpm/action-setup@v2 with: version: ${{ env.PNPM_VERSION }} - name: "\U0001F7E2 设置 Node.js" uses: actions/setup-node@v4 with: cache: pnpm node-version: ${{ env.NODE_VERSION }} - name: "\U0001F4E6 安装依赖" run: pnpm install --frozen-lockfile - name: "\U0001F5C4️ 初始化数据库" run: | cd backend npx prisma migrate deploy npx prisma db seed env: DATABASE_URL: postgresql://test:test@localhost:5432/juhi_perf - name: "\U0001F528 构建后端" run: | pnpm --filter shared build pnpm --filter backend build - name: "\U0001F680 启动后端服务" run: | cd backend npm run start & sleep 10 env: NODE_ENV: production PORT: 3000 DATABASE_URL: postgresql://test:test@localhost:5432/juhi_perf REDIS_URL: redis://localhost:6379 JWT_SECRET: perf-test-jwt-secret REFRESH_TOKEN_SECRET: perf-test-refresh-token - name: ⏳ 等待服务就绪 run: | timeout 60 bash -c 'until curl -s http://localhost:3000/health > /dev/null; do sleep 2; done' echo "服务已就绪" - name: "\U0001F4CA 运行基准测试" run: | cd backend npm run test -- tests/examples/performance.test.ts --reporter=json --outputFile=benchmark-results.json env: DATABASE_URL: postgresql://test:test@localhost:5432/juhi_perf API_URL: http://localhost:3000 - name: "\U0001F4DD 生成基准报告" run: "echo \"## \U0001F4CA API 基准测试报告\" >> $GITHUB_STEP_SUMMARY\necho \"\" >> $GITHUB_STEP_SUMMARY\necho \"测试时间: $(date)\" >> $GITHUB_STEP_SUMMARY\necho \"\" >> $GITHUB_STEP_SUMMARY\n\nif [ -f \"backend/benchmark-results.json\" ]; then\n echo \"### 测试结果\" >> $GITHUB_STEP_SUMMARY\n cat backend/benchmark-results.json | jq '.testResults[].assertionResults[] | {name: .ancestorTitles[-1] + \" > \" + .title, status: .status}' >> $GITHUB_STEP_SUMMARY || true\nfi\n" - name: "\U0001F4E4 上传基准测试结果" uses: actions/upload-artifact@v4 with: name: benchmark-results path: backend/benchmark-results.json retention-days: "30" timeout-minutes: "30" services: postgres: image: postgres:15 env: POSTGRES_DB: juhi_perf POSTGRES_PASSWORD: test POSTGRES_USER: test ports: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 redis: image: redis:7 ports: - 6379:6379 options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
...
job_id
benchmark
needs
["setup"]
runs_on
["ubuntu-latest"]
task_id
13751
status
2
started
1775440822
stopped
1775440994
created
1775440818
updated
1775440994
raw_concurrency
is_concurrency_evaluated
1
concurrency_group
concurrency_cancel
0
Delete
Cancel