Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "archipy",
"source": ".",
"description": "Cursor and Claude Code plugin: rules, skills, agents, and hooks for building apps with ArchiPy",
"version": "0.19.0"
"version": "0.19.1"
}
]
}
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "archipy",
"version": "0.19.0",
"version": "0.19.1",
"description": "Cursor and Claude Code plugin: rules, skills, agents, and hooks for building apps with ArchiPy",
"author": {
"name": "SyntaxArc"
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "archipy",
"source": ".",
"description": "Cursor and Claude Code plugin: rules, skills, agents, and hooks for building apps with ArchiPy",
"version": "0.19.0"
"version": "0.19.1"
}
]
}
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "archipy",
"version": "0.19.0",
"version": "0.19.1",
"description": "Cursor and Claude Code plugin: rules, skills, agents, and hooks for building apps with ArchiPy",
"author": {
"name": "SyntaxArc"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ jobs:
agents
rules
fail: true
env:
# Authenticated GitHub requests avoid 503s from unauthenticated runner traffic.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.19.1] - 2026-10-10

### Fixed

- `scaffold-bdd` template `environment.py` no longer calls `logging.basicConfig`, which bypassed Behave's log capture
and printed warnings/errors for passing scenarios; the skill and `testing-bdd-for-apps.mdc` now set
`capture_log` + `logging_clear_handlers` under `[tool.behave]`
- `archipy-reviewer` flags `logging.basicConfig` / stderr handlers in `features/` as **Must fix**, and missing log-capture
settings in `[tool.behave]` as **Should fix**

## [0.19.0] - 2026-10-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Consumer plugin for apps that depend on PyPI [`archipy`](https://pypi.org/projec
maintaining the ArchiPy library itself.

For ArchiPy core changes, use the
[ArchiPy CONTRIBUTING](https://github.com/SyntaxArc/ArchiPy/blob/master/CONTRIBUTING.md) guide.
[ArchiPy CONTRIBUTING](https://syntaxarc.github.io/ArchiPy/community/contributing/) guide.

## Local setup

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,5 +417,5 @@ See [CHANGELOG.md](CHANGELOG.md).
- [ArchiPy library](https://github.com/SyntaxArc/ArchiPy) — Python package (Apache-2.0)
- [ArchiPy documentation](https://syntaxarc.github.io/ArchiPy/)
- Contributing to **ArchiPy core** → use
the [ArchiPy CONTRIBUTING](https://github.com/SyntaxArc/ArchiPy/blob/master/CONTRIBUTING.md) guide
the [ArchiPy CONTRIBUTING](https://syntaxarc.github.io/ArchiPy/community/contributing/) guide
- Contributing to **this plugin** → [CONTRIBUTING.md](CONTRIBUTING.md)
3 changes: 3 additions & 0 deletions agents/archipy-reviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ makes it worse.
- Infrastructure the app owns (databases, caches, queues, Temporal, object storage) runs in testcontainers via
`@needs-*` tags; mocking it is a finding. Only third-party APIs with no container may be faked at the adapter port.
- Containers start before the app is built and are not restarted per feature; `reset_state()` isolates scenarios.
- `logging.basicConfig(...)` or a stderr `StreamHandler` in `features/` (e.g. `environment.py` `before_all`) is a
**Must fix**: it bypasses Behave's log capture, so warnings/errors print for passing scenarios. Also flag a
`[tool.behave]` in `pyproject.toml` missing `capture_log = true` / `logging_clear_handlers = true` as a **Should fix**.

**DTO field types** (`models/dtos/`, changed lines only)

Expand Down
4 changes: 4 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ include_mail = false

# Treat GitHub API rate-limit as soft-OK so CI is not flaky unauthenticated.
accept = ["200..=299", "429"]

# GitHub intermittently answers 5xx for repo pages; retry instead of failing on the first transient error.
max_retries = 5
retry_wait_time = 10
6 changes: 6 additions & 0 deletions rules/testing-bdd-for-apps.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ The only allowed substitute is at the adapter port: override that one adapter pr
fake that implements the same port (or run a stub HTTP server in a generic `DockerContainer`). Everything the app owns —
databases, caches, queues, Temporal, object storage, identity — runs in a real container.

## Log Output

Passing scenarios print no logs. Set `capture_log = true` and `logging_clear_handlers = true` under `[tool.behave]` in
`pyproject.toml`, and never call `logging.basicConfig` or attach a stderr handler in `features/` (it bypasses Behave's
capture). Captured logs appear only for failed scenarios.

## Async Steps

Behave 1.3.3 supports native `async def` steps. Await async APIs directly; never call `asyncio.run()` inside a step.
Expand Down
15 changes: 15 additions & 0 deletions skills/scaffold-bdd/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ Fill every `ADAPT` hook; import app modules inside the hooks, never at module to
Return `None` from a hook the app does not need. Set `from configs.app_config import AppConfig` in `environment.py`
to the app's config class.

### Log capture (`pyproject.toml`)

Merge into `[tool.behave]` (keep existing keys) so logs print only for failed scenarios:

```toml
[tool.behave]
capture = true
capture_log = true
logging_clear_handlers = true
```

Never call `logging.basicConfig` or add a stderr `StreamHandler` in `features/`: it bypasses Behave's capture and prints
warnings/errors for passing scenarios. Remove one if the app already has it.

### Containers (`features/test_containers.py`)

The template registers Postgres, MySQL, Redis, Kafka, Temporal, MinIO, Elasticsearch, Keycloak, Vault, and ScyllaDB
Expand All @@ -89,6 +103,7 @@ Pin images in `.env.test` when the app needs versions other than the defaults in
## Do not

- Behave only (not pytest) as primary style.
- No `logging.basicConfig` / stderr handlers in `features/`; rely on Behave log capture.
- Steps never call repositories, adapters, or DI providers directly. Logics are reachable only in process/task projects
(no services layer), through `process_logic`; apps with a services layer go through REST/gRPC for every scenario.
- Never create the test app without `AppUtils`, and never use `grpc_testing` or direct servicer calls.
Expand Down
2 changes: 1 addition & 1 deletion skills/scaffold-bdd/reference/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _needed_containers(context: Context) -> set[str]:


def before_all(context: Context) -> None:
logging.basicConfig(level=logging.INFO)
# No logging.basicConfig: its stderr handler bypasses Behave's log capture and prints logs for passing scenarios.
context.logger = logging.getLogger("behave.tests")
context.scenario_context_pool = ScenarioContextPoolManager()
# Start every tagged container before the app exists: engines and clients bind to endpoints at construction,
Expand Down
Loading