Closed (fixed)
Project:
OhDear Integration
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2022 at 09:07 UTC
Updated:
5 Sep 2024 at 12:09 UTC
Jump to comment: Most recent
Comments
Comment #2
useernamee commentedThis test was not failing locally because monitoring module is patched with
Comment #4
useernamee commentedI'm out of ideas. Tests are passing locally:
With similar version:
Will try to update phpunit locally and see if tests still pass.
Comment #5
useernamee commentedI wasn't able to reproduce the issue with phpunit 9.5.25.
I suspect the fail comes from #3277649: Deprecation notice for htmlspecialchars with php 8.1 but I'm not sure. Locally I have this patch applied.
Comment #6
useernamee commentedI've run tests locally with 8.x-1.11 tag of monitoring module and tests are passing. Which rules out my diagnose for test fails. So it looks like it is something that is related to phpunit configuration on drupal-ci that is running the tests.
Does anyone else have an idea how to approach this issue? (What could be the issue that tests are passing locally and failing on drupal-ci)
Comment #7
useernamee commentedComment #8
useernamee commentedIt looks like it is php version issue. Locally tests are passing on php8.1, not sure why they are not here, but I've tried a lot of things.
Comment #9
useernamee commentedComment #11
roderikWhen I was checking the queue last week, I came across this issue and just pushed the 're-test' button with D10 + PHP8 (which is all we care about right now I guess?)
It succeeded.
Reviewed the code. Whether or not it fixes broken tests, the changes still look potentially useful. (Maybe it'll appease PHPStan when we start using it?)
So it can be merged into 1.x -- which is then mergeable into 2.x if you want. There are no conflicts.
What I pushed is just merging the up-to-date 1.x into the old MR. No actual changes.
Comment #13
ankitv18 commentedCherry-picked commits from https://www.drupal.org/project/ohdear_integration/issues/3455573
Now pipelines for phpunit are passing ~~ RTBC++
Comment #14
useernamee commentedLooks good, thus merging.
Comment #16
useernamee commentedI have created a follow-up: #3469661: Fix code style and spelling errors
Comment #17
useernamee commentedWe'll need this fix on 2.x branch as well.
Comment #18
useernamee commented