chore: add backend agent guidance and portable template tests - #1337
Open
udgover wants to merge 3 commits into
Open
chore: add backend agent guidance and portable template tests#1337udgover wants to merge 3 commits into
udgover wants to merge 3 commits into
Conversation
Use a per-test temporary template directory so the API suite runs on non-container hosts without writing under /opt. Register environment and logging cleanup before database setup so failures cannot leak process-wide state into later tests.
Document the repository map, uv-based toolchain, validation commands, cross-repository API contract, and safety boundaries so automated contributors operate consistently with current manifests and CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
uv, Ruff,ty, pytest, and safety conventions/opt/yeti/templatesWhy
The backend participates in a local multi-repository workspace, but its automation guidance needs to remain accurate when the repository is used independently. During validation, the template API tests reproduced five host-only
PermissionErrorfailures because they assumed a container filesystem path. The test-only hardening keeps production behavior unchanged while making local validation portable.Validation
uv sync --group devuv run --no-sync ruff check .uv run --no-sync ruff format . --checkuv run ty check --exit-zero-on-warninguv run pytest tests/apiv2/templates.py tests/core_tests/taskscheduler.py(6 passed)uv run pytest tests/schemas(190 passed)uv run pytest tests/apiv2(205 passed)uv run pytest tests/core_tests(31 passed)Total: 426 tests passed. Existing dependency and serializer warnings remain unchanged.