Skip to content

Commit 7523386

Browse files
shaypal5CopilotCopilot
authored
docs: update AGENTS local testing workflows (#365)
* docs: update AGENTS local testing workflows * fix: replace non-existent test-mongo-local.sh calls in Makefile and clarify MongoDB Docker requirement (#366) * Initial plan * docs: fix broken Makefile mongo targets and clarify MongoDB Docker requirement in AGENTS.md Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 0df7dc4 commit 7523386

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

AGENTS.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,13 @@ ______________________________________________________________________
439439
- `make test-all-local` - Test all backends with Docker
440440
- `make test-external` - Test all external backends
441441
- `make test-mongo-local` - Test MongoDB only
442+
- `make test-mongo-inmemory` - Test MongoDB marker set with local/in-memory setup
443+
- `make test-mongo-also-local` - Test MongoDB together with local core tests
442444
- `make test-redis-local` - Test Redis only
443445
- `make test-sql-local` - Test SQL only
444446
- `make services-start` - Start all Docker containers
445447
- `make services-stop` - Stop all Docker containers
448+
- `make services-logs` - Tail logs for Dockerized test services
446449

447450
**Available Cores:**
448451

@@ -462,8 +465,11 @@ ______________________________________________________________________
462465
- `-k, --keep-running` - Keep containers running after tests
463466
- `-h, --html-coverage` - Generate HTML coverage report
464467
- `-f, --files` - Run only specific test files
468+
- `-p, --parallel` - Run tests with `pytest-xdist`
469+
- `-w, --workers` - Set number of parallel workers (default: `auto`)
465470

466-
**Note:** External backends (MongoDB, Redis, SQL) require Docker. S3, memory, and pickle backends work without Docker.
471+
**Note:** Redis and SQL backends require Docker. MongoDB tests run in-memory by default (no Docker needed) when invoked directly (for example, `pytest -m mongo` or `make test-mongo-inmemory` without `CACHIER_TEST_VS_DOCKERIZED_MONGO` set). When using `./scripts/test-local.sh mongo` or including `mongo` in the core list, MongoDB is always run via a Docker container and requires Docker. S3, memory, and pickle backends work without Docker.
472+
You can also set cores with `CACHIER_TEST_CORES="mongo redis" ./scripts/test-local.sh`, in which case both MongoDB and Redis will run via Docker.
467473

468474
______________________________________________________________________
469475

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ test-mongo-inmemory:
6969

7070
test-mongo-docker:
7171
@echo "Running MongoDB tests against Docker MongoDB..."
72-
./scripts/test-mongo-local.sh
72+
./scripts/test-local.sh mongo
7373

7474
test-mongo-local: test-mongo-docker
7575

7676
test-mongo-also-local:
7777
@echo "Running MongoDB tests with local core tests..."
78-
./scripts/test-mongo-local.sh --mode also-local
78+
./scripts/test-local.sh mongo memory pickle
7979

8080
# New unified testing targets
8181
test-local:

0 commit comments

Comments
 (0)