Merge remote-tracking branch 'origin/main' into develop
Deploy / Deploy Staging (push) Failing after 161h20m13s
Tests / lint (pull_request) Failing after 161h20m13s
Tests / test (pull_request) Failing after 161h20m13s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 161h20m48s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 161h20m53s
CI/CD Pipeline / Frontend Lint (push) Failing after 161h21m27s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 161h21m34s
Deploy / Production Browser E2E (push) Failing after 1819h50m9s
Deploy / Build Production Runtime Images (push) Failing after 1819h50m13s
Deploy / Deploy Production (push) Failing after 1820h21m34s

# Conflicts:
#	infra/docker/api.Dockerfile
This commit is contained in:
灵应
2026-07-02 19:27:52 +08:00
3 changed files with 9 additions and 14 deletions
+3 -9
View File
@@ -1,16 +1,12 @@
name: Tests
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
container:
image: xiaoxia-ci-python:3.12
runs-on: runtime-builder
steps:
- name: Checkout code
@@ -61,9 +57,7 @@ jobs:
PYTHONPATH="$PWD/apps/api:$PWD" python -m pytest tests/unit -q
lint:
runs-on: ubuntu-latest
container:
image: xiaoxia-ci-python:3.12
runs-on: runtime-builder
steps:
- name: Checkout code
+1 -1
View File
@@ -34,7 +34,7 @@ COPY packages/ /app/packages/
COPY alembic.ini /app/alembic.ini
COPY migrations/ /app/migrations/
COPY alembic/ /app/alembic/
COPY scripts/validate_release_env.py /app/scripts/validate_release_env.py
COPY scripts/ /app/scripts/
# 设置环境变量
ENV PATH="/opt/venv/bin:$PATH"
+5 -4
View File
@@ -52,7 +52,7 @@ services:
environment:
APP_ENV: ${APP_ENV:-staging}
APP_VERSION: ${APP_VERSION:-0.1.0}
APP_VERSION: ${APP_VERSION}
GENERATED_FILES_DIR: /app/generated
GENERATED_FILES_URL_PREFIX: /generated-files
PUBLIC_API_BASE_URL: ${PUBLIC_API_BASE_URL:-https://api.xiaoxiajianji.com}
@@ -87,7 +87,7 @@ services:
resources:
limits:
cpus: '2.0'
memory: 2G
memory: 2g
reservations:
cpus: '0.5'
memory: 512M
@@ -106,7 +106,7 @@ services:
environment:
APP_ENV: ${APP_ENV:-staging}
APP_VERSION: ${APP_VERSION:-0.1.0}
APP_VERSION: ${APP_VERSION}
WORKER_CONCURRENCY: ${WORKER_CONCURRENCY:-1}
WORKER_MAX_TASKS_PER_CHILD: ${WORKER_MAX_TASKS_PER_CHILD:-100}
GENERATED_FILES_DIR: /app/generated
@@ -137,7 +137,7 @@ services:
resources:
limits:
cpus: '2.0'
memory: 2G
memory: 2g
reservations:
cpus: '0.5'
memory: 1G
@@ -210,3 +210,4 @@ networks:
external: true
# 注意: 必须先创建网络
# docker network create xiaoxia-net