mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-13 16:25:05 -05:00
The frontend `e2e_test` doesn't have a working build cache setup, causing really slow builds = slow test jobs. These changes reduce total test runtime from ~12 minutes to ~5 minutes. ### Changes 🏗️ - Inject build cache config into docker compose config; let `buildx bake` use GHA cache directly - Add `docker-ci-fix-compose-build-cache.py` script - Optimize `backend/Dockerfile` + root `.dockerignore` - Replace broken DIY pnpm store caching with `actions/setup-node` built-in cache management - Add caching for test seed data created in DB ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - CI
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
# Ignore everything by default, selectively add things to context
|
|
*
|
|
|
|
# Documentation (for embeddings/search)
|
|
!docs/
|
|
|
|
# Platform - Libs
|
|
!autogpt_platform/autogpt_libs/
|
|
|
|
# Platform - Backend
|
|
!autogpt_platform/backend/
|
|
|
|
# Platform - Frontend
|
|
!autogpt_platform/frontend/
|
|
|
|
# Classic - AutoGPT
|
|
!classic/original_autogpt/autogpt/
|
|
!classic/original_autogpt/pyproject.toml
|
|
!classic/original_autogpt/poetry.lock
|
|
!classic/original_autogpt/README.md
|
|
!classic/original_autogpt/tests/
|
|
|
|
# Classic - Benchmark
|
|
!classic/benchmark/agbenchmark/
|
|
!classic/benchmark/pyproject.toml
|
|
!classic/benchmark/poetry.lock
|
|
!classic/benchmark/README.md
|
|
|
|
# Classic - Forge
|
|
!classic/forge/
|
|
!classic/forge/pyproject.toml
|
|
!classic/forge/poetry.lock
|
|
!classic/forge/README.md
|
|
|
|
# Classic - Frontend
|
|
!classic/frontend/build/web/
|
|
|
|
# Explicitly re-ignore unwanted files from whitelisted directories
|
|
# Note: These patterns MUST come after the whitelist rules to take effect
|
|
|
|
# Hidden files and directories (but keep frontend .env files needed for build)
|
|
**/.*
|
|
!autogpt_platform/frontend/.env
|
|
!autogpt_platform/frontend/.env.default
|
|
!autogpt_platform/frontend/.env.production
|
|
|
|
# Python artifacts
|
|
**/__pycache__/
|
|
**/*.pyc
|
|
**/*.pyo
|
|
**/.venv/
|
|
**/.ruff_cache/
|
|
**/.pytest_cache/
|
|
**/.coverage
|
|
**/htmlcov/
|
|
|
|
# Node artifacts
|
|
**/node_modules/
|
|
**/.next/
|
|
**/storybook-static/
|
|
**/playwright-report/
|
|
**/test-results/
|
|
|
|
# Build artifacts
|
|
**/dist/
|
|
**/build/
|
|
!autogpt_platform/frontend/src/**/build/
|
|
**/target/
|
|
|
|
# Logs and temp files
|
|
**/*.log
|
|
**/*.tmp
|