Skip to content

feat: add Model::firstOrInsert() with failure handling #14449

feat: add Model::firstOrInsert() with failure handling

feat: add Model::firstOrInsert() with failure handling #14449

Triggered via pull request February 27, 2026 20:03
Status Cancelled
Total duration 16m 1s
Artifacts 9

test-phpunit.yml

on: pull_request
Setup PHP Version for Code Coverage
2s
Setup PHP Version for Code Coverage
Matrix: Others
Matrix: CacheLive
Matrix: DatabaseLive
Matrix: SeparateProcess
Upload coverage results to Coveralls  /  coveralls
51s
Upload coverage results to Coveralls / coveralls
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 23 warnings
DatabaseLive (8.5, OCI8, 8.0) / tests
Process completed with exit code 2.
Upload coverage results to Coveralls / coveralls
Canceling since a higher priority waiting request for PHPUnit-feat/first-or-insert exists
Upload coverage results to Coveralls / coveralls
The operation was canceled.
PHPUnit
Canceling since a higher priority waiting request for PHPUnit-feat/first-or-insert exists
PHPUnit
Canceling since a higher priority waiting request for PHPUnit-feat/first-or-insert exists
Others (8.2) / Sanity Tests: /tests/system/API/ResponseTraitTest.php#L761
Took 0.5142s from 0.5000s limit to run CodeIgniter\\API\\ResponseTraitTest::testPaginateWithQueryBuilder
Others (8.2) / Sanity Tests: /tests/system/API/ResponseTraitTest.php#L158
Took 0.7372s from 0.5000s limit to run CodeIgniter\\API\\ResponseTraitTest::testNoFormatterJSON
Others (8.2) / Sanity Tests: /tests/system/CodeIgniterTest.php#L986
Took 1.0587s from 0.5000s limit to run CodeIgniter\\CodeIgniterTest::testRouteAttributeCacheIntegration
CacheLive (8.2) / Cache Live Tests: /tests/system/Cache/Handlers/AbstractHandlerTestCase.php#L30
Took 0.7736s from 0.5000s limit to run CodeIgniter\\Cache\\Handlers\\ApcuHandlerTest::testGetMetaDataMiss
SeparateProcess (8.2) / tests: /tests/system/Commands/GenerateKeyTest.php#L82
Took 0.9728s from 0.5000s limit to run CodeIgniter\\Commands\\GenerateKeyTest::testGenerateKeyShowsEncodedKey
DatabaseLive (8.2, MySQLi, 5.7) / tests: /tests/system/Commands/CreateDatabaseTest.php#L68
Took 1.3976s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLite3, 8.0) / tests: /tests/system/Commands/Database/MigrateStatusTest.php#L78
Took 0.5307s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.2, SQLite3, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L68
Took 1.1354s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, Postgre, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L68
Took 1.3478s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L68
Took 1.3821s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L92
Took 3.1455s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testCreateDatabaseIfNotExists
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L63
Took 3.2990s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testCreateDatabaseWithDots
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L68
Took 1.3208s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Commands/Database/MigrateStatusTest.php#L78
Took 0.8188s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1583
Took 0.8340s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testDropKey
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/InsertTest.php#L48
Took 0.8516s from 0.5000s limit to run CodeIgniter\\Database\\Live\\InsertTest::testInsertBatch
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/FabricatorLiveTest.php#L34
Took 0.8822s from 0.5000s limit to run CodeIgniter\\Database\\Live\\FabricatorLiveTest::testCreateAddsToDatabase
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Models/SaveModelTest.php#L272
Took 0.9069s from 0.5000s limit to run CodeIgniter\\Models\\SaveModelTest::testSaveNewEntityWithDate
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L68
Took 0.9701s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1236
Took 1.0229s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testSetKeyNames
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ConnectTest.php#L98
Took 1.0915s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ConnectTest::testConnectWithFailover
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1680
Took 1.4491s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexes
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L494
Took 2.8155s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testForeignKey

Artifacts

Produced during runtime
Name Size Digest
cache-live-tests-php-8.2-db-none Expired
143 KB
sha256:caf859b0d2019c5586c0674b20f56f0c51643e82f0b732c7ead20e8a6ea07502
database-live-tests-php-8.2-db-MySQLi5.7 Expired
15.1 MB
sha256:743bba466d41c50bf7210dde8464e047cd6c17eca4e752c352e87e048f79e4c0
database-live-tests-php-8.2-db-MySQLi8.0 Expired
15.1 MB
sha256:b66f9b462c6c034c75c6eee5527ed5e55cc713efbda05698e1554f7d8bc45d1e
database-live-tests-php-8.2-db-OCI88.0 Expired
15.2 MB
sha256:0efd40cb589e082dab156f06901b108d0821cf2eb0a32bde19cb0a58217f2090
database-live-tests-php-8.2-db-Postgre8.0 Expired
14.2 MB
sha256:528147a11f47b624449553bf29cb6b4c5ea1e702dcc23b1835f87d6dcd665079
database-live-tests-php-8.2-db-SQLSRV8.0 Expired
14.7 MB
sha256:8ab8bce49788aff0b385e981dd7a272f1e347ac517b8871d586e83f772411fcc
database-live-tests-php-8.2-db-SQLite38.0 Expired
14.7 MB
sha256:daab4b7b7b811a8ff2d6eb68d80fadef0c646a8c8be6ba60db44e6d784f69118
sanity-tests-php-8.2-db-none Expired
33.8 MB
sha256:f2eb82f9e919d6dcd486763e77c0b5247f5b376f3a070cb74ad645fae3b2acec
separate-process-tests-php-8.2-db-none Expired
3.42 MB
sha256:e5186225bb145354c8b0a5e2beeb6477ac48473bfa5763d452cc7c404644c991