Skip to content

PHP 8.6.0alpha2 - Test suite fails #2898

Description

@remicollet

Running test suite with PHP 8.6.0alpha, valkey 9.1.1 and develop branch

...
testSession_compression                                        [FAILED]
testSession_savedToRedis                                       [FAILED]
testSession_lockKeyCorrect                                     [FAILED]
testSession_lockingDisabledByDefault                           [PASSED]
testSession_lockReleasedOnClose                                [PASSED]
testSession_lock_ttlMaxExecutionTime                           [PASSED]
testSession_lock_ttlLockExpire                                 [PASSED]
testSession_lockHoldCheckBeforeWrite_otherProcessHasLock       [FAILED]
testSession_lockHoldCheckBeforeWrite_nobodyHasLock             [PASSED]
testSession_correctLockRetryCount                              [FAILED]
testSession_defaultLockRetryCount                              [FAILED]
testSession_noUnlockOfOtherProcess                             [FAILED]
testSession_lockWaitTime                                       [FAILED]
testMultipleConnect                                            [PASSED]
testConnectDatabaseSelect                                      [PASSED]
testConnectException                                           [PASSED]
testTlsReconnect                                               [SKIPPED]
testTlsConnect                                                 [SKIPPED]
testReset                                                      [PASSED]
testCopy                                                       [PASSED]
testCommand                                                    [PASSED]
testFunction                                                   [PASSED]
testWaitAOF                                                    [PASSED]
testBadOptionValue                                             [PASSED]
testSession_regenerateSessionId_noLock_noDestroy               [PASSED]
testSession_regenerateSessionId_noLock_withDestroy             [PASSED]
testSession_regenerateSessionId_withLock_noDestroy             [PASSED]
testSession_regenerateSessionId_withLock_withDestroy           [PASSED]
testSession_regenerateSessionId_noLock_noDestroy_withProxy     [PASSED]
testSession_regenerateSessionId_noLock_withDestroy_withProxy   [PASSED]
testSession_regenerateSessionId_withLock_noDestroy_withProxy   [PASSED]
testSession_regenerateSessionId_withLock_withDestroy_withProxy [PASSED]
testSession_ttl_equalsToSessionLifetime                        [FAILED]
testSession_ttl_resetOnWrite                                   [FAILED]
testSession_ttl_resetOnRead                                    [FAILED]
...


Assertion failed: testSession_compression - '' doesnt match '/.*testing_compression_none.*/'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8526 (testSession_compression) '' doesnt match '/.*testing_compression_none.*/'
Assertion failed: testSession_compression - '' doesnt match '/.*testing_compression_lzf.*/'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8526 (testSession_compression) '' doesnt match '/.*testing_compression_lzf.*/'
Assertion failed: testSession_compression - '' doesnt match '/.*testing_compression_lz4.*/'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8526 (testSession_compression) '' doesnt match '/.*testing_compression_lz4.*/'
Assertion failed: testSession_compression - '' doesnt match '/.*testing_compression_zstd.*/'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8526 (testSession_compression) '' doesnt match '/.*testing_compression_zstd.*/'
Assertion failed: testSession_savedToRedis - Key 'PHPREDIS_SESSION:f46e8138a14b589680676623c97ea39b' does not exist.
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8537 (testSession_savedToRedis) Key 'PHPREDIS_SESSION:f46e8138a14b589680676623c97ea39b' does not exist.
Assertion failed: /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8557 (externalCmdFailure)
         Message: Failed waiting for session lock key 'PHPREDIS_SESSION:79e502e920c8ea815ac9fbc6c62f8692_LOCK'
       Exit code: 0
         Command: /opt/remi/php86/root/usr/bin/php -n -d extension=igbinary -d extension=/work/GIT/pecl-and-ext/redis/modules/redis.so /work/GIT/pecl-and-ext/redis/tests/startSession.php  --handler 'redis' --save-path 'tcp://127.0.0.1:6379?' --id '79e502e920c8ea815ac9fbc6c62f8692' --sleep 5 --max-execution-time 300 --locking-enabled 1 --lock-retries -1 --lifetime 1440 --compression 'none' >/tmp/sessioni4vci1ujcg2n5Z8GAyn 2>&1 & echo $!
Assertion failed: testSession_lockHoldCheckBeforeWrite_otherProcessHasLock - 'Key redis_test not found' !== 'secondProcess'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8649 (testSession_lockHoldCheckBeforeWrite_otherProcessHasLock) 'Key redis_test not found' !== 'secondProcess'
Assertion failed: /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8673 (externalCmdFailure)
         Message: Failed waiting for session lock key
       Exit code: 0
         Command: /opt/remi/php86/root/usr/bin/php -n -d extension=igbinary -d extension=/work/GIT/pecl-and-ext/redis/modules/redis.so /work/GIT/pecl-and-ext/redis/tests/startSession.php  --handler 'redis' --save-path 'tcp://127.0.0.1:6379?' --id '85cdc3654d2f08e74a72d5ec3dfa081c' --sleep 10 --max-execution-time 300 --locking-enabled 1 --lock-retries -1 --lifetime 1440 --compression 'none' >/tmp/session9t5ik65o8lph6Vp5rYP 2>&1 & echo $!
Assertion failed: /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8689 (externalCmdFailure)
         Message: Expected failure but lock was acquired!
       Exit code: 0
         Command: /opt/remi/php86/root/usr/bin/php -n -d extension=igbinary -d extension=/work/GIT/pecl-and-ext/redis/modules/redis.so /work/GIT/pecl-and-ext/redis/tests/startSession.php  --handler 'redis' --save-path 'tcp://127.0.0.1:6379?' --id '85cdc3654d2f08e74a72d5ec3dfa081c' --max-execution-time 10 --locking-enabled 1 --lock-wait-time 100000 --lock-retries 10 --lifetime 1440 --compression 'none' 2>&1
          Output: SUCCESS
Assertion failed: testSession_correctLockRetryCount - '0.016913890838623' not between '1' and '3'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8695 (testSession_correctLockRetryCount) '0.016913890838623' not between '1' and '3'
Assertion failed: /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8715 (externalCmdFailure)
         Message: Failed waiting for session lock key
       Exit code: 0
         Command: /opt/remi/php86/root/usr/bin/php -n -d extension=igbinary -d extension=/work/GIT/pecl-and-ext/redis/modules/redis.so /work/GIT/pecl-and-ext/redis/tests/startSession.php  --handler 'redis' --save-path 'tcp://127.0.0.1:6379?' --id 'f849f769ba8bdbb0d77f2a169ad02e8b' --sleep 10 --max-execution-time 300 --locking-enabled 1 --lock-retries -1 --lifetime 1440 --compression 'none' >/tmp/sessiontudn5u5altri5mP5QvA 2>&1 & echo $!
Assertion failed: testSession_defaultLockRetryCount - 'SUCCESS' === 'SUCCESS'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8721 (testSession_defaultLockRetryCount) 'SUCCESS' === 'SUCCESS'
Assertion failed: testSession_defaultLockRetryCount - '0.018800020217896' not between '2' and '3'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8723 (testSession_defaultLockRetryCount) '0.018800020217896' not between '2' and '3'
Assertion failed: testSession_noUnlockOfOtherProcess - Failed waiting for session lock key
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8743 (testSession_noUnlockOfOtherProcess) Failed waiting for session lock key
Assertion failed: testSession_lockWaitTime - '0.027277946472168' not between '2.5' and '3.5'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:8782 (testSession_lockWaitTime) '0.027277946472168' not between '2.5' and '3.5'
Assertion failed: testSession_ttl_equalsToSessionLifetime - -2 !== 600
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:9026 (testSession_ttl_equalsToSessionLifetime) -2 !== 600
Assertion failed: testSession_ttl_resetOnWrite - -2 !== 1800
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:9038 (testSession_ttl_resetOnWrite) -2 !== 1800
Assertion failed: testSession_ttl_resetOnRead - 'Key redis_test not found' !== 'testSession_ttl_resetOnRead6a6315287a664'
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:9050 (testSession_ttl_resetOnRead) 'Key redis_test not found' !== 'testSession_ttl_resetOnRead6a6315287a664'
Assertion failed: testSession_ttl_resetOnRead - -2 !== 600
                  /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:9051 (testSession_ttl_resetOnRead) -2 !== 600

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions