View Issue Details

IDProjectCategoryView StatusLast Update
5234Composr alpha bug reportsGeneral / Uncategorisedpublic2024-09-13 02:16
ReporterPDStig Assigned ToPDStig  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Summary5234: Unit test issues on Windows 11
DescriptionThe following issues popped up in the unit testing when running Composr v11 on Windows 11:

* All of the CQC checks (except cqc__function_sigs for some reason) do not run; connection timed out

* My default AMPPS (WAMP) install set the MySQL max_allowed_packet to 1M, which is not enough for cms_cache entries (causing some tests to fail). Here is an example: Composr: A query of 1,015,931 bytes is too big for the current MySQL <kbd>max_allowed_packet</kbd> setting of 1,048,576 bytes [INSERT INTO cms11_cache (dependencies, staff_status, the_member, the_groups, is_bot, timezone, the_value, date_and_time, lang, the_theme, cached_for, identifier) VALUES ('!admin!menu__dropdown', NULL, NULL, '[[2,8,8],[],[],[[\"submit_midrange_content\",\"\",\"galleries\",\"download_1\",1],[\"submit_...]. Setting the max packet to 2M fixed this, but probably not ideal to expect users to have to change their default.

* Consideration for basic_code_formatting: It's complaining a lot about Windows text format. Git for Windows by default saves files in Windows format locally in a repos but commits in UNIX style. There is an option on install to change this behavior.

* crypt triggers out of memory: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4194312 bytes)

* disk_usage_spec: Unexpected PHP Error [filesize() [<a href='http://php.net/manual/en/function.filesize.php'>function.filesize.php</a>]: stat failed for data_custom/execute_temp.php] severity [2] in [C:\Program Files\Ampps\www\composr\_tests\tests\unit_tests\disk_usage_spec.php line 45] (execute_temp.php does not exist but execute_temp.php.bundle does)

* Max execution time of 10 seconds exceeded on: lang_spelling, rest, timezones

* mail: Fail: mail_test_set -> testAttachmentCleanup -> Expected true, got [Boolean: false] at [C:\Program Files\Ampps\www\composr\_tests\tests\unit_tests\mail.php line 50]
Fail: mail_test_set -> testAttachmentCleanup -> Expected true, got [Boolean: false] at [C:\Program Files\Ampps\www\composr\_tests\tests\unit_tests\mail.php line 50]

* standard_dir_files: Fail: standard_dir_files_test_set -> testHtaccessConsistency -> Invalid .htaccess file: a:14:{i:0;s:33:"adminzone/pages/modules/.htaccess";i:1;s:40:"adminzone/pages/modules_custom/.htaccess";i:2;s:30:"buildr/pages/modules/.htaccess";i:3;s:37:"buildr/pages/modules_custom/.htaccess";i:4;s:27:"cms/pages/modules/.htaccess";i:5;s:34:"cms/pages/modules_custom/.htaccess";i:6;s:28:"docs/pages/modules/.htaccess";i:7;s:35:"docs/pages/modules_custom/.htaccess";i:8;s:29:"forum/pages/modules/.htaccess";i:9;s:36:"forum/pages/modules_custom/.htaccess";i:10;s:23:"pages/modules/.htaccess";i:11;s:30:"pages/modules_custom/.htaccess";i:12;s:28:"site/pages/modules/.htaccess";i:13;s:35:"site/pages/modules_custom/.htaccess";} with hash of 6df8752284886eee788dd3d1f3cfb5d3 at [C:\Program Files\Ampps\www\composr\_tests\tests\unit_tests\standard_dir_files.php line 105]

* tar: Unexpected PHP Error [fwrite() [<a href='http://php.net/manual/en/function.fwrite.php'>function.fwrite.php</a>]: write of 512 bytes failed with errno=13 Permission denied] severity [8] in [C:\Program Files\Ampps\www\composr\sources\tar.php line 670] (Could not save C:\Users\xanaf\AppData\Local\Temp\tmp9F9.tmp. Are you out of disk space or quota space?)

* timezones: 29 failures (see attachment)

* webdav: Fail: webdav_test_set -> testWebdav -> .htaccess file not present for WebDAV at [C:\Program Files\Ampps\www\composr\_tests\tests\unit_tests\webdav.php line 37]

* zip: Fail: zip_test_set -> testMZip -> Expected true, got [Boolean: false] at [C:\Program Files\Ampps\www\composr\_tests\tests\unit_tests\zip.php line 69]
TagsNo tags attached.
Attach Tags
Attached Files
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2023-01-23 22:34

administrator   ~7884

Everything is fixed except the cqc issues: codechecker.php buffer overflow

PDStig

2024-09-13 02:16

administrator   ~9333

These were all resolved over time already

Issue History

Date Modified Username Field Change
2023-01-06 19:57 PDStig New Issue
2023-01-06 19:57 PDStig Status Not Assigned => Assigned
2023-01-06 19:57 PDStig Assigned To => Chris Graham
2023-01-06 19:57 PDStig File Added: Running-test-set-unit_tests-timezones.png
2023-01-17 22:31 Chris Graham Assigned To Chris Graham => user4172
2023-01-23 22:34 PDStig Note Added: 0007884
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised
2024-09-13 02:16 PDStig Status Assigned => Resolved
2024-09-13 02:16 PDStig Resolution open => fixed
2024-09-13 02:16 PDStig Note Added: 0009333