Skip to content

[stable32] test: kill escaped mutants in certificate FileService - #8089

Merged
vitormattos merged 1 commit into
LibreSign:stable32from
maia-andre:backport/8079/stable32
Aug 28, 2026
Merged

[stable32] test: kill escaped mutants in certificate FileService#8089
vitormattos merged 1 commit into
LibreSign:stable32from
maia-andre:backport/8079/stable32

Conversation

@maia-andre

Copy link
Copy Markdown
Contributor

Backport of PR #8079

The backportbot failed on this branch with an authentication error (the stable33/34/35 backports #8080/#8081/#8082 went through), so this is the manual backport it requested. Clean cherry-pick of c015a47, no conflicts.

Infection reported 8 escaped mutants in lib/Service/Certificate/FileService.php
(Covered Code MSI 57.89%): the path concatenation in
loadCertificateFileByGeneration() and the file_exists/is_readable guards in
readCertificateFile() were never exercised with an existing certificate file.

Add scenarios reading real ca.pem/ca-key.pem files from the virtual filesystem
and an existing-but-unreadable file case. Covered Code MSI is now 100% for this
scope (20/20 mutants killed).

Ref LibreSign#8053

Assisted-by: Claude Code:claude-fable-5
Signed-off-by: André Maia <andrefnkmm@gmail.com>
@vitormattos

Copy link
Copy Markdown
Member

I was going to ignore this one since we’re only going to put out one more release of Nextcloud 32, which is why I didn't pay much attention to the failure. Thanks for looking out for it.

@vitormattos

Copy link
Copy Markdown
Member

We follow this: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule
And we only maintain the development of non EOL branches.

@vitormattos
vitormattos merged commit daa8a37 into LibreSign:stable32 Aug 28, 2026
61 checks passed
@github-project-automation github-project-automation Bot moved this from 0. Backlog to 4. to release in Roadmap Aug 28, 2026
@maia-andre

Copy link
Copy Markdown
Contributor Author

Thanks for the review and the merge, @vitormattos — and for the pointer to the maintenance schedule! Noted that 32 has only one more release ahead (32.0.15 on 2026-09-10, EOL in September). I'll check the schedule before proposing backports so I only target non-EOL branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants