-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests.yml #83
Update tests.yml #83
Conversation
Changed doctrine/dbal to ^2.9, as the ^2.10 constraint excludes support for PHP 7.1
Hey @calebporzio, so, I had to revert Hope that now resolves most of the issues as it is purely down to the failing tests. Kind regards, |
Ok, I think I fixed the failing tests can you verify this update works now? Also, do we need to composer require testbench at all? |
Hey @calebporzio, I pulled in the latest master branch to a separate repo and tried re-running the test there. Feel free to check: https://github.com/morpheus7CS/sushi-ci-test/runs/1736791017?check_suite_focus=true
Skipped tests trigger failure on Github Actions' side, so instead of removing them, I grouped them into a The rest works and can be merged. Thanks a lot for your work. Kind regards, |
Could we get an epic merge on this bad boy? 👍 |
Thanks so much, sorry for the ridiculous lag. |
After introducing sushi to our project, our monitoring tool reported the following error (stacktrace shortened for brevity): ``` PDOException: SQLSTATE[HY000]: General error: 1 table "schmelzkurve_scoring_table_results" already exists #88 /vendor/laravel/framework/src/Illuminate/Database/Connection.php(485): PDOStatement::execute #87 /vendor/laravel/framework/src/Illuminate/Database/Connection.php(485): Illuminate\Database\Connection::Illuminate\Database\{closure} #86 /vendor/laravel/framework/src/Illuminate/Database/Connection.php(685): Illuminate\Database\Connection::runQueryCallback #85 /vendor/laravel/framework/src/Illuminate/Database/Connection.php(652): Illuminate\Database\Connection::run #84 /vendor/laravel/framework/src/Illuminate/Database/Connection.php(486): Illuminate\Database\Connection::statement #83 /vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php(109): Illuminate\Database\Schema\Blueprint::build #82 /vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(365): Illuminate\Database\Schema\Builder::build #81 /vendor/laravel/framework/src/Illuminate/Database/Schema/Builder.php(228): Illuminate\Database\Schema\Builder::create #80 /vendor/calebporzio/sushi/src/Sushi.php(142): App\Models\SchmelzkurveScoringTableResult::createTable #79 /vendor/calebporzio/sushi/src/Sushi.php(89): App\Models\SchmelzkurveScoringTableResult::migrate #78 /vendor/calebporzio/sushi/src/Sushi.php(45): App\Models\SchmelzkurveScoringTableResult::Sushi\{closure} #77 /vendor/calebporzio/sushi/src/Sushi.php(66): App\Models\SchmelzkurveScoringTableResult::bootSushi ``` This error can happen in rare circumstances due to a race condition. Concurrent requests may both see the necessary preconditions for the table creation, but only one can actually succeed. My initial attempt at resolving this was to look for a method that creates the table only if it does not exist (`create table if not exists`), but Laravel exposes no such method. Thus, I think the only viable solution is to risk it and catch the resulting error.
Hey @calebporzio,
I've gone and updated the Github Actions test suite to reflect the support for the Laravel 7.x and 8.x versions as well as the PHP8 that @viezel has contributed recently.
From what I was able to see when testing this on a private repository, the dependency installation is no longer failing, but the build failure comes down to two test failures:
Hope this helps to get the build back to green soon.
Kind regards,
g