Skip to content

Fix CI/CD for Ubuntu 26.04 - #985

Merged
jtojnar merged 5 commits into
simplepie:masterfrom
FreshRSS:fix-ci-cd-ubuntu26.04
Jul 4, 2026
Merged

jtojnar merged 5 commits into
simplepie:masterfrom
FreshRSS:fix-ci-cd-ubuntu26.04

Conversation

@Alkarex

@Alkarex Alkarex commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

testSanitizeURLResolution test fails for PHP 7.2 under Ubuntu 26.04:

There were 4 failures:

1) SanitizeTest::testSanitizeURLResolution with data set "audio with alternative source src absolute paths, resolved, fixed" ('<audio><source src="a/b.wav" ...audio>', '<audio preload="none"><source...audio>')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'<audio preload="none"><source src="http://example.com/a/b.wav"><source src="http://example.com/c/d.mp3"></audio>'
+'<audio preload="none"><source src="http://example.com/a/b.wav">
+<source src="http://example.com/c/d.mp3"></audio>'

/home/runner/work/simplepie/simplepie/tests/SanitizeTest.php:90
phpvfscomposer:///home/runner/work/simplepie/simplepie/vendor/phpunit/phpunit/phpunit:97

2) SanitizeTest::testSanitizeURLResolution with data set "video with alternative source src, resolved, fixed" ('<video><source src="a/b.mpeg"...video>', '<video preload="none"><source...video>')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'<video preload="none"><source src="http://example.com/a/b.mpeg"><source src="http://example.com/d.mov"></video>'
+'<video preload="none"><source src="http://example.com/a/b.mpeg">
+<source src="http://example.com/d.mov"></video>'

/home/runner/work/simplepie/simplepie/tests/SanitizeTest.php:90
phpvfscomposer:///home/runner/work/simplepie/simplepie/vendor/phpunit/phpunit/phpunit:97

3) SimplePie\Tests\Unit\SanitizeTest::testSanitizeURLResolution with data set "audio with alternative source src absolute paths, resolved, fixed" ('<audio><source src="a/b.wav" ...audio>', '<audio preload="none"><source...audio>')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'<audio preload="none"><source src="http://example.com/a/b.wav"><source src="http://example.com/c/d.mp3"></audio>'
+'<audio preload="none"><source src="http://example.com/a/b.wav">
+<source src="http://example.com/c/d.mp3"></audio>'

/home/runner/work/simplepie/simplepie/tests/Unit/SanitizeTest.php:104
phpvfscomposer:///home/runner/work/simplepie/simplepie/vendor/phpunit/phpunit/phpunit:97

4) SimplePie\Tests\Unit\SanitizeTest::testSanitizeURLResolution with data set "video with alternative source src, resolved, fixed" ('<video><source src="a/b.mpeg"...video>', '<video preload="none"><source...video>')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'<video preload="none"><source src="http://example.com/a/b.mpeg"><source src="http://example.com/d.mov"></video>'
+'<video preload="none"><source src="http://example.com/a/b.mpeg">
+<source src="http://example.com/d.mov"></video>'

/home/runner/work/simplepie/simplepie/tests/Unit/SanitizeTest.php:104
phpvfscomposer:///home/runner/work/simplepie/simplepie/vendor/phpunit/phpunit/phpunit:97

FAILURES!
Tests: 2097, Assertions: 3308, Failures: 4.

Need to apply some whitespace normalisation.

@Alkarex

Alkarex commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Tests passing both for Ubuntu 26.04 and for ubuntu-latest (currently 24.04)

@jtojnar
jtojnar merged commit 18957a8 into simplepie:master Jul 4, 2026
11 checks passed
@Inverle
Inverle deleted the fix-ci-cd-ubuntu26.04 branch July 4, 2026 18:06
Alkarex added a commit to FreshRSS/simplepie that referenced this pull request Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants