FORGE-F008 Add unified testing toolkit for generated projects
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Current state
|
||||
|
||||
FORGE-F008 is implementation-complete on `codex`, pending Captain acceptance: `toolkits/testing` separates manual Compose environments from automated suites and allowlisted `act` jobs, and the Flask/React generator copies it into new projects. All 29 Forge tests and a generated Compose configuration check pass. Live Docker/`act` execution is blocked by daemon access, and Windows is unverified.
|
||||
|
||||
FORGE-F014 is Captain-accepted and provides a portable testtask runner and existing-project installer. A target worktree must explicitly configure its test command. A disposable PitchInvader-shaped fixture validated the workflow; PitchInvader itself has not been tested or modified. Windows validation remains pending.
|
||||
|
||||
FORGE-F001, FORGE-F002, FORGE-F006, and FORGE-F007 were human accepted and are present on `codex`. F003 and F004 candidates are integrated locally with external validation and acceptance pending. The Captain-authorised F004 lifecycle follow-up from `codex-forge-f004-lifecycle` was integrated into `codex` at `727a64e` after combined Forge checks; it extends F002's accepted context contract without reopening F002. FORGE-F011 is a planned visual design quality follow-up to F003; image-to-editable-Penpot reconstruction remains unproven and requires investigation. F006 provides an independent Flask/React template package and generator, with SQLite, PostgreSQL, MySQL, and MariaDB migrations verified in disposable Docker containers. Windows generation remains untested. The original bootstrap repository remains available; no external retirement was performed. Explicit business/personal profile configuration is implemented. `bortstack-context`, `bortstack-contributor`, and `bortstack-design` packages are present; one skill directory remains reserved. The repository `testtask` entry point is provisioned but blocked because Forge has no application runtime or manual-test hook. No cross-template generator or active legacy-skill migration has been implemented. Captain reports successful external validation of local Penpot 2.18 Docker and integrated MCP, but this session has no Penpot connector/browser. JJ's hands-on and Windows workflow has not been tested. Decisions FORGE-001 through FORGE-011 remain accepted. FORGE-008 authorises direct `codex` work generally; Captain explicitly requested isolation for the F004 lifecycle follow-up.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Handoff
|
||||
|
||||
FORGE-F008 candidate (2026-11-19): Captain authorised direct `codex` implementation from `b9cc143`. `toolkits/testing` and the Flask/React generator now provide separate manual and automated entry points with shared read-only target selection. Existing PitchInvader, RouletteBuddy, and Roborto Testtask repositories were inspected but not modified. All 29 Forge tests, generated Compose configuration, task ID audit, installer dry-run, Python compilation, and `git diff --check` passed. Fake-runtime fixtures exercised Compose and safe `act`; live startup, real `act`, and local-account provisioning were not run because Docker daemon access was denied. Windows remains untested. Review the scoped commit on `codex`; Captain acceptance is required before F008 is Complete. Do not migrate existing applications as part of this task.
|
||||
|
||||
FORGE-F014: Captain accepted the isolated candidate on 2026-11-19 and requested merge to `codex`. Branch `codex-forge-f014` at `/tmp/bortstack-forge-f014` is based on `860d6d4`; implementation commit `17660d8`. Portable distribution is under `distribution/testtask`; `scripts/install-testtask.py` installs it without replacing existing files. Each target branch worktree needs `.bortstack/testtask.json` with an explicit command array. The disposable fixture passed; no PitchInvader files were changed. Windows and real PitchInvader validation remain open. Preserve the task worktree after integration.
|
||||
|
||||
Current work: Captain authorised and completed integration of the contributor lifecycle follow-up from `codex-forge-f004-lifecycle` (`c2d4561`) into `codex` at merge commit `727a64e`. The source worktree is `/tmp/bortstack-forge-f004-lifecycle`, baseline `934e62c`; the target had advanced to `900bd6c` with FORGE-F011 planning. F002 remains Complete. F004 is integrated locally but still pending JJ's external validation and human acceptance. The original F004 worktree remains preserved.
|
||||
|
||||
+5
-1
@@ -78,12 +78,16 @@ Acceptance: both profiles work with separately configured ownership and branding
|
||||
Implementation record (2026-11-17): Added a dependency-free flat profile configurator and read/write module, updated the profile contract and context skill, and tested business and personal records in temporary new/existing directories with different owners and brands. The command requires explicit contributor, testing, and deployment values, preserves existing project files, and refuses to overwrite an existing profile. Linux tests passed; Windows command and filesystem behavior have not been exercised on Windows. No real external project was changed. Captain accepted F007 on 2026-11-17.
|
||||
|
||||
## FORGE-F008 — Standardise Local Testing and `act`
|
||||
Status: Planned. Priority: Medium. Dependencies: FORGE-F006.
|
||||
Status: Implementation Complete on `codex`; Captain acceptance pending. Priority: Medium. Dependencies: FORGE-F006. Captain explicitly authorised implementation on 2026-11-19 under FORGE-008's direct-`codex` policy; baseline `b9cc143`.
|
||||
|
||||
Provide simple local test commands, Docker testing where appropriate, optional GitHub Actions-compatible `act`, clear results, separation of test failures from infrastructure failures, safeguards against publishing/deployment, and bounded automated repair. Remote CI must not be required for local verification.
|
||||
|
||||
Acceptance: validate a generated template locally and demonstrate failure classification and deployment protection.
|
||||
|
||||
Implementation scope (2026-11-19): One canonical `toolkits/testing` package supplies separate manual `testtask.sh` and automated `testrunner.sh` entry points with shared read-only target resolution. Generated Flask/React projects receive the package, explicit `.bortstack/testing.json`, Docker Compose manual environment settings, a local account provisioner, and unit/integration commands. Existing-project installation and legacy Roborto migration remain outside F008. The older Forge `distribution/testtask` stays in place for its accepted F014 scope; it is not the manual launcher. Local fixtures cover branch/task resolution, worktree paths with spaces, manual Compose lifecycle boundaries, credential selection failure, suite selection/failure, and safe `act` allowlisting. Docker daemon access and Windows validation are pending; do not claim live Compose or GitHub-hosted success. Human acceptance is required before Complete.
|
||||
|
||||
Validation: 29 Forge tests passed, including generated-project inclusion and invocation, branch/task/worktree resolution, isolated Compose fixture lifecycle, credential privacy and selection, suite results, and fake-runtime safe `act`. A generated Flask/React project's `docker compose config --quiet` passed. `context_audit.py`, installer dry-run, Python compilation, and `git diff --check` passed. `act` is installed (`0.2.91`) but the Docker daemon denied access, so live Compose startup, real local Actions execution, and account provisioning remain unverified. Windows is untested. No existing application repository or production resource was changed.
|
||||
|
||||
## FORGE-F009 — Optional Gitea Integration
|
||||
Status: Planned (deferred). Priority: Deferred. Dependencies: FORGE-F005.
|
||||
|
||||
|
||||
@@ -3,3 +3,5 @@
|
||||
A template descriptor identifies template ID and version, supported project type, configuration variables, generation procedure, dependencies, development commands, validation/test commands, optional capabilities, platform requirements, and initial context behavior. `templates/flask-react/template.json` is the first implemented descriptor; `templates/flask-react/generate.py` is its standalone generation API. F005 will orchestrate selection and project profiles across templates. Generated projects have no Forge runtime dependency.
|
||||
|
||||
The migration source is the existing `flask-react-auth-base` repository at the commit recorded in the descriptor. It remains external and unchanged. Forge's generator accepts a project name, new destination, and optional `--git-init`; it refuses existing destinations and paths inside Forge. Email and hosting foundations are optional per FORGE-009, with no active GitHub workflow or automatic deployment in generated projects.
|
||||
|
||||
FORGE-F008 copies the canonical testing toolkit into generated projects. The generated `.bortstack/testing.json` owns Compose manual-development settings, local account provisioning, automated suite commands and optional approved `act` jobs. `testtask.sh` is for manual environments; `testrunner.sh` is for automated suites. The package contract and platform requirements are in `toolkits/testing/README.md`.
|
||||
|
||||
Reference in New Issue
Block a user