Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352233

Summary: Validation error message: missing information
Product: [Technology] CBI Reporter: Miles Daffin <miles.daffin>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 352530    
Bug Blocks:    
Attachments:
Description Flags
Validation fails with conflicts but no hierarchical information in error message.
none
Model with 4 conflicts but only 2 diagnostic hierarchies. none

Description Miles Daffin CLA 2011-07-15 12:52:19 EDT
The validation error reporting was recently improved to help the user understand where in the model errors were coming from by formatting the information in a hierarchical manner reflecting the structure of the model. 

I am consistently seeing missing information when reporting conflicts in the aggregation. A maximum of 2 diagnostic hierarchies are reported even if the number of conflicting IUs exceeds 2. For example:

----
Problems while verifying configuration: win32,win32,x86

Only one of the following can be installed at once: 
  Scala IDE for Eclipse 2.0.0.beta08-28-201107121559-7d78460 (org.scala-ide.sdt.feature.feature.jar 2.0.0.beta08-28-201107121559-7d78460)
  Scala IDE for Eclipse 2.0.0.beta08-29-201107121555-7d78460 (org.scala-ide.sdt.feature.feature.jar 2.0.0.beta08-29-201107121555-7d78460)
  Scala IDE for Eclipse 2.0.0.nightly-29-201107150011-6914a14 (org.scala-ide.sdt.feature.feature.jar 2.0.0.nightly-29-201107150011-6914a14)

org.scala-ide.sdt.feature.feature.jar 2.0.0.beta08-28-201107121559-7d78460 is required by:
  Contribution(Scala IDE 2.8 Beta)
    MappedRepository(http://download.scala-ide.org/releases-28/2.0.0-beta/)
      Feature(org.scala-ide.sdt.feature.feature.group [2.0.0.beta08-28,2.0.0.beta08-29))
org.scala-ide.sdt.feature.feature.jar 2.0.0.nightly-29-201107150011-6914a14 is required by:
  Contribution(Scala IDE 2.9 Nightly)
    MappedRepository(http://download.scala-ide.org/nightly-update-wip-experiment-2.9.0-1)
      Feature(org.scala-ide.sdt.feature.feature.group 2.0.0.nightly)
----
Comment 1 Miles Daffin CLA 2011-07-15 13:26:43 EDT
Updating to blocker since I cannot easily debug current set of builds without this information.
Comment 2 Miles Daffin CLA 2011-07-18 09:01:51 EDT
In some cases there is no type 3 hierarchy information at all (see BUG352237 for information types). We just get validation errors with types 1, 2 and 4. The attached model (issue01.b3aggr) fails validation under configuration linux,gtk,x86. The error message consistently has no hierarchy info.
Comment 3 Miles Daffin CLA 2011-07-18 09:03:31 EDT
Created attachment 199825 [details]
Validation fails with conflicts but no hierarchical information in error message.
Comment 4 Thomas Hallgren CLA 2011-07-18 15:27:53 EDT
Fixed in rev. 1533.
Comment 5 Miles Daffin CLA 2011-07-19 13:45:13 EDT
Confirmed fixed for the model in attachment 199825 [details], which has 3 conflicting versions of the same bundle. We now have 3 model hierarchies so we can see where each conflicting version of the bundle comes from. However, in some other models, we still only have a maximum of 2 hierarchies irrespective of the number of reported conflicts. See attachment.
Comment 6 Miles Daffin CLA 2011-07-19 13:46:15 EDT
Created attachment 199924 [details]
Model with 4 conflicts but only 2 diagnostic hierarchies.
Comment 7 Thomas Hallgren CLA 2011-07-20 02:04:27 EDT
When analyzing this I found that the reason for the lack of hierarchies is that p2 only spits out detailed explanations for two branches of the four branches. I'm reporting this as a bug in p2.
Comment 8 Miles Daffin CLA 2011-07-20 10:40:07 EDT
From the chat on BUG352530 it seems like this may not be fixed by P2. The workaround for now, for cases where more than 2 conflicting items are found, may be to note the hierarchies, disable stuff and re-validate. Not ideal though.
Comment 9 Thomas Hallgren CLA 2011-07-20 16:11:39 EDT
(In reply to comment #8)
> From the chat on BUG352530 it seems like this may not be fixed by P2. The
> workaround for now, for cases where more than 2 conflicting items are found,
> may be to note the hierarchies, disable stuff and re-validate. Not ideal
> though.

I agree it's not ideal, but that seems to be the only option. I'm closing this as a WONTFIX.
Comment 10 Miles Daffin CLA 2011-07-25 06:44:51 EDT
I don't understand why the model in  attachment 199825 [details] has one hierarchy for each of the 3 conflicting IUs. In this case P2 would seem to be providing information for all branches, not just 2. Why is this?
Comment 11 Thomas Hallgren CLA 2011-07-25 07:23:39 EDT
There are actually just two branches but one of them contains a patch. The patch itself reveals a third branch so b3 is able to report this using an additional piece of logic.
Comment 12 Thomas Hallgren CLA 2011-07-25 09:40:06 EDT
.
Comment 13 David Williams CLA 2016-09-16 15:51:48 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
Made no changes to assignee's for closed bugs, even though some were old inbox.]