Skip to content

org.eclipse.swt.tests.junit.Test_org_eclipse_swt_custom_StyledText.test_caretSizeAndPositionVariableGlyphMetrics fails on master #294

Closed

Activity

  1. added
    junit
    on Aug 12, 2022
  2. mickaelistria commented on Sep 20, 2022

    @mickaelistria
    Contributor

    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.

  3. mickaelistria commented on Sep 21, 2022

    @mickaelistria
    Contributor

    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...

  4. jukzi commented on Oct 19, 2022

    @jukzi
    Contributor

    Please revert whatever caused that or fix the test.

  5. akurtakov commented on Oct 20, 2022

    @akurtakov
    Member

    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.

  6. added this to the 4.27 M3 milestone on Dec 15, 2022
  7. iloveeclipse commented on Dec 15, 2022

    @iloveeclipse
    Member

    As discussed on #504, if we don't have solution for 4.27 M3 we will "mute" the test via #504.

  8. akurtakov commented on Dec 15, 2022

    @akurtakov
    Member

    If only there was XFAIL concept in JUnit so these can stay easily findable while not breaking the build.

  9. HannesWell commented on Jan 21, 2023

    @HannesWell
    Member

    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?

  10. akurtakov commented on Jan 22, 2023

    @akurtakov
    Member

    Running the build on older pango version will make the tests work but they would still fail on newer one.

  11. HannesWell commented on Jan 22, 2023

    @HannesWell
    Member

    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.^^

  12. akurtakov commented on Jan 22, 2023

    @akurtakov
    Member

    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.^^

    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/ .

  13. HannesWell commented on Jan 22, 2023

    @HannesWell
    Member

    Understand. So #514 is kind of a step backwards, in this regard since it uses centos-latest?

  14. akurtakov commented on Jan 22, 2023

    @akurtakov
    Member

    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.

  15. HannesWell commented on Jan 22, 2023

    @HannesWell
    Member

    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.

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

Metadata

Metadata

Assignees

Labels

junit

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions