Skip to content

A free open source IT asset/license management system

Bumped test memory limit

snipedbe3013c9923
diff --git a/.github/workflows/tests-mysql.yml b/.github/workflows/tests-mysql.yml
index 63c7ee3042..bf73520e6a 100644
--- a/.github/workflows/tests-mysql.yml
+++ b/.github/workflows/tests-mysql.yml
@@ -81,7 +81,9 @@ jobs:
DB_USERNAME: root
LOG_CHANNEL: single
LOG_LEVEL: debug
- run: php artisan test
+ # -d memory_limit=1G: see comment in tests-sqlite.yml. Same reason,
+ # same headroom.
+ run: php -d memory_limit=1G artisan test
- name: Upload Laravel logs as artifacts
if: always()
diff --git a/.github/workflows/tests-postgres.yml b/.github/workflows/tests-postgres.yml
index 3f763e9bce..4c2673e167 100644
--- a/.github/workflows/tests-postgres.yml
+++ b/.github/workflows/tests-postgres.yml
@@ -80,7 +80,9 @@ jobs:
DB_PASSWORD: password
LOG_CHANNEL: single
LOG_LEVEL: debug
- run: php artisan test
+ # -d memory_limit=1G: see comment in tests-sqlite.yml. Same reason,
+ # same headroom.
+ run: php -d memory_limit=1G artisan test
- name: Upload Laravel logs as artifacts
if: always()
diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml
index cb8c9155a3..f9d05f53e0 100644
--- a/.github/workflows/tests-sqlite.yml
+++ b/.github/workflows/tests-sqlite.yml
@@ -65,7 +65,12 @@ jobs:
DB_CONNECTION: sqlite
LOG_CHANNEL: single
LOG_LEVEL: debug
- run: php artisan test
+ # -d memory_limit=1G: CI runs the entire test suite in a single
+ # PHP process, so memory accumulates from every prior test. Default
+ # 500M was pushing the process into OOM on Blade renders late in
+ # the alphabetical run (e.g. Users/Ui/TwoFactorResetTest). 1G
+ # gives comfortable headroom for suite growth.
+ run: php -d memory_limit=1G artisan test
- name: Upload Laravel logs as artifacts
if: always()