Update AGENTS.md: use -short flag for all local tests

- Changed all test commands to 'go test -short ./...'
- Clarified that full tests run in CI
- Updated: Code Standards, Before Committing, Landing the Plane, Building and Testing, Release Process
- Agents should only run short tests; CI runs full suite
This commit is contained in:
Steve Yegge
2025-11-06 18:48:13 -08:00
parent ed6be66343
commit b23c472f55
+8 -8
View File
@@ -520,7 +520,7 @@ bd show bd-41 --json # Verify merged content
- **Go version**: 1.21+ - **Go version**: 1.21+
- **Linting**: `golangci-lint run ./...` (baseline warnings documented in [docs/LINTING.md](docs/LINTING.md)) - **Linting**: `golangci-lint run ./...` (baseline warnings documented in [docs/LINTING.md](docs/LINTING.md))
- **Testing**: All new features need tests (`go test ./...`) - **Testing**: All new features need tests (`go test -short ./...` for local, full tests run in CI)
- **Documentation**: Update relevant .md files - **Documentation**: Update relevant .md files
### File Organization ### File Organization
@@ -538,7 +538,7 @@ beads/
### Before Committing ### Before Committing
1. **Run tests**: `go test ./...` 1. **Run tests**: `go test -short ./...` (full tests run in CI)
2. **Run linter**: `golangci-lint run ./...` (ignore baseline warnings) 2. **Run linter**: `golangci-lint run ./...` (ignore baseline warnings)
3. **Update docs**: If you changed behavior, update README.md or other docs 3. **Update docs**: If you changed behavior, update README.md or other docs
4. **Commit**: Issues auto-sync to `.beads/issues.jsonl` and import after pull 4. **Commit**: Issues auto-sync to `.beads/issues.jsonl` and import after pull
@@ -626,8 +626,8 @@ bd sync --merge
# 1. File remaining work # 1. File remaining work
bd create "Add integration tests for sync" -t task -p 2 --json bd create "Add integration tests for sync" -t task -p 2 --json
# 2. Run quality gates # 2. Run quality gates (only if code changes were made)
go test ./... go test -short ./...
golangci-lint run ./... golangci-lint run ./...
# 3. Close finished issues # 3. Close finished issues
@@ -976,10 +976,10 @@ gh issue view 201
# Build # Build
go build -o bd ./cmd/bd go build -o bd ./cmd/bd
# Test # Test (short - for local development)
go test ./... go test -short ./...
# Test with coverage # Test with coverage (full tests - for CI)
go test -coverprofile=coverage.out ./... go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out go tool cover -html=coverage.out
@@ -1036,7 +1036,7 @@ See `scripts/README.md` for more details.
1. Bump version with `./scripts/bump-version.sh <version> --commit` 1. Bump version with `./scripts/bump-version.sh <version> --commit`
2. Update CHANGELOG.md with release notes 2. Update CHANGELOG.md with release notes
3. Run full test suite: `go test ./...` 3. Run tests locally: `go test -short ./...` (CI will run full suite)
4. Push version bump: `git push origin main` 4. Push version bump: `git push origin main`
5. Tag release: `git tag v<version>` 5. Tag release: `git tag v<version>`
6. Push tag: `git push origin v<version>` 6. Push tag: `git push origin v<version>`