Repository navigation
chore(1.x): release 0.1.0 - #3
Closed
github-actions[bot] wants to merge 23 commits into
Closed
github-actions[bot] wants to merge 23 commits into
github-actions[bot] wants to merge 23 commits into
Conversation
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>
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
Bot
force-pushed
the
release-please--branches--1.x--components--cycle/testing
branch
from
November 20, 2026 08:02
edb5e14 to
ca64cae
Compare
* 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
Bot
force-pushed
the
release-please--branches--1.x--components--cycle/testing
branch
from
November 20, 2026 08:15
ca64cae to
2a86c10
Compare
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
Bot
force-pushed
the
release-please--branches--1.x--components--cycle/testing
branch
from
November 20, 2026 08:52
2a86c10 to
a6b3d8d
Compare
github-actions
Bot
force-pushed
the
release-please--branches--1.x--components--cycle/testing
branch
from
November 20, 2026 08:54
a6b3d8d to
8172f57
Compare
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
Bot
force-pushed
the
release-please--branches--1.x--components--cycle/testing
branch
from
November 20, 2026 09:04
8172f57 to
66e9afd
Compare
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.
🤖 I have created a release beep boop
0.1.0 (2026-11-20)
Features
Bug Fixes
Performance Improvements
Documentation
Dependencies
devkeyword (2fff680)Code Refactoring
This PR was generated with Release Please. See documentation.