[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] p2 repo analyzers to fail if some rules are violated

On 10/17/2016 12:48 PM, Mickael Istria wrote:

Hi all,

Does the p2repo.analyzer application have a way to return an erroneous code in case some rules are violated? I could see it returning an error in case of wrong configuration, but not in case a bundle is missing some legal files for instance. Is there some configuration to allow it to fail in case of violated rules? If not, is there already a bug for that?
Yes and no. Dennis Huebner contributed some code to run the tests more as JUnit tests and produce tables where components can be configured to "pass", "fail", or "give a warning" based on the results. But this method is not documented anywhere except the code and I would classify it as experimental (though I think Dennis may have been using it in production builds; but, as many of us, he got "called off" onto other challenges before it was completely done and documented). You need to use a flag, -useNewApi, to get this behavior. As one *example* of these experimental reports, see
http://download.eclipse.org/eclipse/downloads/drops4/R-4.6.1-201609071200/buildlogs/errors-and-moderate_warnings.html


And, FYI, you (and others) may want to (re-) read
https://wiki.eclipse.org/CBI/p2repoAnalyzers/Repo_Reports

I updated and combined some documents so it will make make a little more sense, and gives a little better orientation to the project. But it does not go into detail nor answer your original question.