Skip to content

[stable35] test(avatar): Check the guest avatar independent of the font renderer - #66017

Merged
DerDreschner merged 1 commit into
stable35from
backport/65954/stable35
Oct 29, 2026
Merged

DerDreschner merged 1 commit into
stable35from
backport/65954/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 29, 2026

Copy link
Copy Markdown

Backport of PR #65954

GuestAvatarTest::testGet() compared the generated PNG byte for byte with
a stored image. The anti-aliasing of the letter depends on the GD and
FreeType versions: the stored image matches Ubuntu 24.04 (libgd3
2.3.3-9ubuntu5, FreeType 2.13.2), while Ubuntu 26.04 (libgd3
2.3.3-13ubuntu2, FreeType 2.14.2) and the bundled GD of the official PHP
images render a few edge pixels differently. The nodb jobs therefore fail
whenever they run on a runner with the newer image.

Check the PNG format, the image size and the guest background color in the
light and the dark theme instead, and count the pixels in the letter
color: the anti-aliased edges differ between renderers, the strokes of the
letter don't. Also remove the SVG fixture, which has been unused since
guest avatars switched to PNG.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@backportbot
backportbot Bot requested review from provokateurin and susnux October 29, 2026 16:49
@backportbot
backportbot Bot requested a review from a team as a code owner October 29, 2026 16:49
@backportbot
backportbot Bot requested review from Altahrim and DerDreschner and removed request for a team October 29, 2026 16:49
@backportbot backportbot Bot added 3. to review Waiting for reviews tests Related to tests CI AI assisted labels Oct 29, 2026
@backportbot
backportbot Bot requested review from come-nc and salmart-dev October 29, 2026 16:49
@backportbot backportbot Bot added this to the Nextcloud 35.0.3 milestone Oct 29, 2026
@DerDreschner
DerDreschner merged commit 6c3500c into stable35 Oct 29, 2026
155 of 161 checks passed
@DerDreschner
DerDreschner deleted the backport/65954/stable35 branch October 29, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted CI tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants