You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText.test_caretSizeAndPositionVariableGlyphMetrics fails on master #294
I'll need to verify that against an older version; but I believe that styledText.getTextBounds(0, 1) now return wrong-ish bounds. Those are supposed to be the bounds of the drawn character, and it seems to use the line height instead.
So the main change is that StyledText.getLocationAtOffset(0) now returns the position including the offset generated by the variable line height (used to be returning y=0 on previous RHEL, now returning y=85. But I actually believe that the new value is actually more correct; so maybe the code was implementing a workaround for a long time, and we now have it to enable it conditionally according to the environment...
This failure is due to change in Pango library which changed in the OS. Reverting to older docker image is not an option for security reasons. I have spent some time trying to fix this one but still can't figure it. If there is anyone knowledgable of pango details help is more than welcome.
This failure is due to change in Pango library which changed in the OS. Reverting to older docker image is not an option for security reasons. I have spent some time trying to fix this one but still can't figure it. If there is anyone knowledgable of pango details help is more than welcome.
In #514 I noticed that all tests pass, as mentioned in #504 (comment), this is maybe because with that change the tests run on the standard centos-latest/8 image? Should we link this issue with #514?
Running the build on older pango version will make the tests work but they would still fail on newer one.
So the centos-latest images use the old pango version and the tests will fail again, if those images use newer versions?
I have to admit, that until now I never heard of pango.^^
Running the build on older pango version will make the tests work but they would still fail on newer one.
So the centos-latest images use the old pango version and the tests will fail again, if those images use newer versions? I have to admit, that until now I never heard of pango.^^
Understand. So #514 is kind of a step backwards, in this regard since it uses centos-latest?
Yes, but I fully understand how this step is needed to get more automation on swt side. It can be looked at how to get tests run on newer platform later.
Understand. So #514 is kind of a step backwards, in this regard since it uses centos-latest?
Yes, but I fully understand how this step is needed to get more automation on swt side. It can be looked at how to get tests run on newer platform later.
Sounds good. Yes once #514 many other things can be improved as well.
Activity
mickaelistria commentedon Sep 20, 2022
I'll need to verify that against an older version; but I believe that
styledText.getTextBounds(0, 1)now return wrong-ish bounds. Those are supposed to be the bounds of the drawn character, and it seems to use the line height instead.mickaelistria commentedon Sep 21, 2022
So the main change is that
StyledText.getLocationAtOffset(0)now returns the position including the offset generated by the variable line height (used to be returningy=0on previous RHEL, now returningy=85. But I actually believe that the new value is actually more correct; so maybe the code was implementing a workaround for a long time, and we now have it to enable it conditionally according to the environment...jukzi commentedon Oct 19, 2022
Please revert whatever caused that or fix the test.
akurtakov commentedon Oct 20, 2022
This failure is due to change in Pango library which changed in the OS. Reverting to older docker image is not an option for security reasons. I have spent some time trying to fix this one but still can't figure it. If there is anyone knowledgable of pango details help is more than welcome.
Skip test that fails on Linux docker image on PR validation only (ecl…
iloveeclipse commentedon Dec 15, 2022
As discussed on #504, if we don't have solution for 4.27 M3 we will "mute" the test via #504.
akurtakov commentedon Dec 15, 2022
If only there was XFAIL concept in JUnit so these can stay easily findable while not breaking the build.
Bump tests bundle version for 4.27
Bump tests bundle version for 4.27
Skip test that fails on Linux docker image on PR validation only (ecl…
HannesWell commentedon Jan 21, 2023
In #514 I noticed that all tests pass, as mentioned in #504 (comment), this is maybe because with that change the tests run on the standard centos-latest/8 image? Should we link this issue with #514?
akurtakov commentedon Jan 22, 2023
Running the build on older pango version will make the tests work but they would still fail on newer one.
HannesWell commentedon Jan 22, 2023
So the centos-latest images use the old pango version and the tests will fail again, if those images use newer versions?
I have to admit, that until now I never heard of pango.^^
akurtakov commentedon Jan 22, 2023
Correct. The reason why tests were run on new fedora was exactly that to test on new version of dependencies like supported Ubuntu, Fedora, Suse while reducing build script differencies as centos and fedora are kind of cousins.
Pango is the text rending library used by Gtk https://gitlab.gnome.org/GNOME/pango/ .
HannesWell commentedon Jan 22, 2023
Understand. So #514 is kind of a step backwards, in this regard since it uses
centos-latest?akurtakov commentedon Jan 22, 2023
Yes, but I fully understand how this step is needed to get more automation on swt side. It can be looked at how to get tests run on newer platform later.
HannesWell commentedon Jan 22, 2023
Sounds good. Yes once #514 many other things can be improved as well.
Skip test that fails on Linux docker image on PR validation only (ecl…
Skip test that fails on Linux docker image on PR validation only (#294)
disable test_caretSizeAndPositionVariableGlyphMetrics eclipse-platfor…
disable test_caretSizeAndPositionVariableGlyphMetrics eclipse-platfor…
disable test_caretSizeAndPositionVariableGlyphMetrics #294