Skip to content

chore(1.x): release 0.1.0 - #3

Closed
github-actions[bot] wants to merge 23 commits into
1.xfrom
release-please--branches--1.x--components--cycle/testing
Closed

github-actions[bot] wants to merge 23 commits into
1.xfrom
release-please--branches--1.x--components--cycle/testing

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

0.1.0 (2026-11-20)

Features

  • add Config builder for testo.php (38cfc59)
  • add database layer with driver suites, isolation and mocks (f78061e)
  • add ORM layer with per-test ORM and heap integrity check (94ca751)
  • add orm-style query counters to DatabaseTestCase (387faa5)
  • add shared docker compose setup for test databases (be6da86)
  • count a passed heap check as an assertion (e5fc7a6)
  • split per-driver suites into Feature, Acceptance and Regression (8d02302)

Bug Fixes

  • harness fixes from the test migration (#7) (2f16d43)
  • let Config build for repos without test folders (67f73d8)
  • skip uninitialized typed properties in the heap check (6dce5dd)

Performance Improvements

  • drop test tables without introspecting them (aa47fed)

Documentation

  • add README and AGENTS.md (8bbdcd5)
  • add the Cycle header, badges and installation block to README (#6) (a2c134b)
  • ship the cycle-testing agent skill (f036b88)

Dependencies

  • composer: add buggregator/trap dependency and add dev keyword (2fff680)

Code Refactoring

  • drop DB_DEBUG in favour of the query.sql channel (#9) (f156e5a)

This PR was generated with Release Please. See documentation.

roxblnfk and others added 12 commits November 20, 2026 11:07
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DatabasePlugin runs a suite against one driver: a lazily opened connection
pool, a one-time availability probe (skip, or fail with DB_REQUIRED), the
DropTables/Transaction/None isolation modes, #[OnlyDriver]/#[ExceptDriver]
filtering, context injection into DatabaseTestCase, SQL/query/schema
assertions, TableBuilder, and the wrap/stub drivers ported from
cycle/database's tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
unit(), acceptance() excludes and src skip missing paths, which Testo's
FinderConfig rejects; with no suite left, build() emits an empty Unit
suite so the run reports NO TESTS instead of failing on the config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Config::perDriver(name, path, ...) builds <Kind>/<Driver> suites;
feature(), acceptance() and regression() are shortcuts sharing its
options. regression() takes the whole path as the common part (one
Issue<N>/ folder per reported issue), keeping a driver folder, if any,
to its own suite. The package's database tests move to Feature/; a test
that indexed a text column, rejected by MySQL and SQLServer, now uses a
string column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The first release is 0.1.0; breaking changes bump the minor version until 1.0.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
roxblnfk and others added 3 commits November 20, 2026 11:52
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* ci: add CI workflows and install QA tools as bamarni-bin tools

- Tests: Unit on PHP 8.2-8.5 with lowest and highest dependencies; Feature, Acceptance and
  Regression suites on SQLite, MySQL, Postgres and SQLServer through resources/docker/compose.yaml
  with DB_REQUIRED=1; coverage of the Unit and SQLite suites uploaded to Codecov.
- Psalm 7 and spiral/code-style in vendor-bin, run through the spiral/gh-actions workflows.
- composer audit in security.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* style: apply spiral/code-style

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions
github-actions Bot force-pushed the release-please--branches--1.x--components--cycle/testing branch from edb5e14 to ca64cae Compare November 20, 2026 08:02
* fix: name pooled drivers after their connection

DatabaseConfig names every driver after its connection, and code under
test (cycle/transaction) compares getName() across databases; pooled
drivers had no name, so getName() threw. The suite driver and its
variants are now `default`, a Layout::withSqlite() database's driver
takes the database name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat: add SimpleContainer, a PSR-11 container for tests

Port of the SimpleContainer the entity-behavior repos copy around:
definitions first, then a memoised factory, else NotFoundException.
psr/container becomes a dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: compile ORM schemas against the suite's layout

SchemaSource::compiled() compiled on Layout::single(), so an entity
mapped to another database failed with "Undefined database". OrmPlugin
now hands the suite's layout to the source, Memory::orm() its own, and
compiled() takes an optional layout override; a source resolves once per
layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep ClassList compatible with spiral/tokenizer 2.x

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: declare the ClassList::getClasses() return type for Psalm

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions
github-actions Bot force-pushed the release-please--branches--1.x--components--cycle/testing branch from ca64cae to 2a86c10 Compare November 20, 2026 08:15
roxblnfk and others added 4 commits November 20, 2026 12:48
The per-test purge read every column, index and foreign key of every
table twice before dropping it: ~30 ms (MySQL) to ~120 ms (Postgres,
SQLServer) for three tables. Purger::dropTables() lists the tables in
one query and drops them in one statement (MySQL and SQLite with
foreign key checks off, Postgres with CASCADE, SQLServer after dropping
its foreign keys): 3-9 ms, and one SELECT when nothing is left.

The raw DROP bypasses PostgresHandler, which resets the driver's
primary key cache; the purge now resets it on every pooled Postgres
driver, so a recreated table no longer reports a stale primary key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A test that only saves and loads relied on PHPUnit's assertClearState()
in tearDown to count as asserting; under Testo it ended Risky. The ORM
interceptor runs inside the assertion collector, so a clean heap now
records one passed assertion. #[SkipHeapCheck] records nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An entity from make() keeps its typed properties uninitialized; a
mapper extracting through a reflection hydrator (orm-promise-mapper)
throws on them, failing the heap check. HeapIntegrity now falls back to
the initialized properties, as orm's own mapper does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
captureReadQueries()/captureWriteQueries() set a capture point and
assertNumReads()/assertNumWrites() check the queries since it, as orm's
BaseTest did; without a capture they count from the test's start. The
points live on QueryLog (markReads(), readsSinceMark(), ...), which the
harness resets after every test, so none carries over to the next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions
github-actions Bot force-pushed the release-please--branches--1.x--components--cycle/testing branch from 2a86c10 to a6b3d8d Compare November 20, 2026 08:52
@github-actions
github-actions Bot force-pushed the release-please--branches--1.x--components--cycle/testing branch from a6b3d8d to 8172f57 Compare November 20, 2026 08:54
roxblnfk and others added 2 commits November 20, 2026 13:03
Echoing SQL to stdout duplicated what the Testo query.sql channel
already attaches to every test (console output of a failed test, HTML
report). Removed QueryLog's echo option, Env::debug() and DB_DEBUG.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions
github-actions Bot force-pushed the release-please--branches--1.x--components--cycle/testing branch from 8172f57 to 66e9afd Compare November 20, 2026 09:04
@roxblnfk roxblnfk closed this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant