diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 035adaaf6..813897388 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -797,6 +797,14 @@ jobs: name: feature-timing-mysql-${{ matrix.shard }} path: build/test-results/mysql-shard-${{ matrix.shard }}* + - name: Verify bounded dashboard reads on MySQL + if: ${{ matrix.shard == 0 }} + run: vendor/bin/phpunit tests/Unit/V2/OperatorDashboardReadBoundsTest.php --fail-on-warning + env: + DB_CONNECTION: mysql + QUEUE_CONNECTION: redis + XDEBUG_MODE: off + - name: Upload laravel.log if MySQL tests fail if: ${{ github.server_url == 'https://github.com' && (failure() || steps.mysql_suite.outcome == 'failure') }} uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 @@ -936,6 +944,14 @@ jobs: # than a silent hang. PGOPTIONS: "-c synchronous_commit=off -c statement_timeout=120000 -c lock_timeout=30000 -c idle_in_transaction_session_timeout=60000" + - name: Verify bounded dashboard reads on PostgreSQL + if: ${{ matrix.shard == 0 }} + run: vendor/bin/phpunit tests/Unit/V2/OperatorDashboardReadBoundsTest.php --fail-on-warning + env: + DB_CONNECTION: pgsql + QUEUE_CONNECTION: redis + XDEBUG_MODE: off + - name: Emit PostgreSQL shard diagnostics if: ${{ always() }} env: @@ -1057,6 +1073,23 @@ jobs: REDIS_PASSWORD: '' XDEBUG_MODE: off + - name: Verify bounded dashboard reads on MariaDB + run: | + vendor/bin/phpunit tests/Unit/V2/OperatorDashboardReadBoundsTest.php --fail-on-warning + DB_CONNECTION=mariadb vendor/bin/phpunit tests/Unit/V2/OperatorDashboardReadBoundsTest.php --fail-on-warning + env: + APP_KEY: base64:i3g6f+dV8FfsIkcxqd7gbiPn2oXk5r00sTmdD6V5utI= + DB_CONNECTION: mysql + DB_DATABASE: testbench + DB_USERNAME: root + DB_PASSWORD: password + CACHE_DRIVER: redis + CACHE_STORE: redis + QUEUE_CONNECTION: redis + QUEUE_FAILED_DRIVER: 'null' + REDIS_PASSWORD: '' + XDEBUG_MODE: off + - name: Upload Laravel log if MariaDB tests fail if: ${{ github.server_url == 'https://github.com' && failure() }} uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 diff --git a/composer.json b/composer.json index 66b357877..4674425b6 100644 --- a/composer.json +++ b/composer.json @@ -79,7 +79,7 @@ "dev-main": "2.0.x-dev" }, "durable-workflow": { - "product-train": "2.4.2", + "product-train": "2.4.3", "laravel-embedded-upgrade-contract": "resources/laravel-embedded-upgrade-contract.json", "laravel-dependency-security-policy": "resources/laravel-dependency-security-policy.json" }, diff --git a/tests/Unit/Traits/TimersTest.php b/tests/Unit/Traits/TimersTest.php index a7a90f360..8ff269921 100644 --- a/tests/Unit/Traits/TimersTest.php +++ b/tests/Unit/Traits/TimersTest.php @@ -95,7 +95,7 @@ public function testStoresResult(): void $storedWorkflow->timers() ->create([ 'index' => 0, - 'stop_at' => now(), + 'stop_at' => WorkflowStub::now(), ]); WorkflowStub::timer('1 minute')