Giter Site home page Giter Site logo

Comments (10)

hvbtup avatar hvbtup commented on July 20, 2024

Good question! I am facing the same issue.
Personally, I think that the CI test is fundamentally broken. If and which errors occur seems to be more or less random. I guess that's the reason why the -DskipTests was the default before the BIRT reboot.

from birt.

xavierdpt avatar xavierdpt commented on July 20, 2024

Maybe it could be worth doing the build with -fn instead of -DskipTests. This will report all failing tests instead of skipping them, and make it easier to identify which tests are failing randomly and which tests are failing more consistently.

from birt.

SteveSchafer-Innovent avatar SteveSchafer-Innovent commented on July 20, 2024

Using PR 650 as a test, I reverted it to the code that existed when PR 643 (issue 642) passed successfully, and it fails with

Failures:
org.eclipse.birt.report.model.metadata.ElementDefnTest.testGetGroupNames(org.eclipse.birt.report.model.metadata.ElementDefnTest)
Run 1: ElementDefnTest.testGetGroupNames:84 expected:<6> but was:<0>
Run 2: PASS
Run 3: PASS

If I run the same mvn commands that are in ci.yml locally it fails with different errors, so that's not going to be a good way to troubleshoot this. What I can do is make changes to PR 650 to see what effect they have. I don't fully understand what's happening when CI is executed, but it's pretty clear that something is different from April 23 when PR 643 CI succeeded.

When CI executes, does it use the ci.yml that's in the PR or the one that's in master? I'll find out experimentally.

from birt.

ruspl-afed avatar ruspl-afed commented on July 20, 2024

When CI executes, does it use the ci.yml that's in the PR or the one that's in master?

It should use the ci.yml and all the rest from the PR's branch

from birt.

SteveSchafer-Innovent avatar SteveSchafer-Innovent commented on July 20, 2024

@ruspl-afed Yes I just verified that it does. So I can make it work by just getting rid of the tests, haha.

from birt.

ruspl-afed avatar ruspl-afed commented on July 20, 2024

@ruspl-afed Yes I just verified that it does. So I can make it work by just getting rid of the tests, haha.

Firm but fair, sir :)

from birt.

SteveSchafer-Innovent avatar SteveSchafer-Innovent commented on July 20, 2024

The particular error I'm getting in PR 650 is caused by MetaDataDictionary not containing the correct objects. MetaDataDictionary is a static object that normally gets loaded from a file named rom.def, however it also gets loaded with other files as part of some unit tests. The failure in CI may be caused by the order in which unit tests are executed. I'm continuing to research this...

from birt.

ruspl-afed avatar ruspl-afed commented on July 20, 2024

Thank you @SteveSchafer-Innovent for investing so much of your time to this issue

from birt.

SteveSchafer-Innovent avatar SteveSchafer-Innovent commented on July 20, 2024

I was able to fix it with a line of code. I submitted a PR (658) which passes the CI tests. Hopefully once this PR is merged, the other PR's will work.

from birt.

SteveSchafer-Innovent avatar SteveSchafer-Innovent commented on July 20, 2024

PR merged and closed so closing this issue.

from birt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.