Bug 267116 - [target] rework p2 target provisioner
Summary: [target] rework p2 target provisioner
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
: 263294 272498 (view as bug list)
Depends on:
Blocks: 182373 264053 264119 268210 268212
  Show dependency tree
 
Reported: 2009-03-04 16:39 EST by Chris Aniszczyk CLA
Modified: 2009-04-17 11:47 EDT (History)
8 users (show)

See Also:


Attachments
patch (43.09 KB, patch)
2009-04-13 16:32 EDT, Darin Wright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Aniszczyk CLA 2009-03-04 16:39:50 EST
We're in the process of redoing the p2 target provisioner in PDE. I was excited about the possibility of using a profile to manage some of the target... however, this may be a bad idea after talking to Jeff. He suggested that we look at using the new Mirroring/Slicer functionality in p2 to fetch the artifacts we need. This way, we don't need to spoof a profile like we do currently, and we're able to fetch things like the delta pack.

So let's discuss the pros and cons here.
Comment 1 Chris Aniszczyk CLA 2009-03-04 16:49:49 EST
If we use the slicer approach, we will have to make sure that the artifacts are in runnable form too. This may involve running some of the repo2runnable logic.
Comment 2 Curtis Windatt CLA 2009-03-05 14:38:25 EST
*** Bug 263294 has been marked as a duplicate of this bug. ***
Comment 3 Curtis Windatt CLA 2009-03-05 14:40:47 EST
If we use the Repo2Runnable tool we will have to deal with bug 264267.  Either the tool will have to support it or perhaps we can figure out the complete set of IUs to download.
Comment 4 Pascal Rapicault CLA 2009-03-06 15:00:27 EST
You could also use the PermissiveSlicer class to figure out the list of things that needs to be grabbed and then pass that to the p2ToRunnable task. This is especially doable if you are doing everything in Java
Comment 5 Darin Wright CLA 2009-04-13 16:32:49 EDT
Created attachment 131707 [details]
patch

Initial draft of IU bundle container. Each bundle container specifies a set of IUs and Repos. An IProfile is maintained for each target definition - collect and install phases are run (no configure phase). The profile is set up with environment & nl properties to get proper OS-specific bundles/fragments installed. Additionally, features are installed.
Comment 6 Darin Wright CLA 2009-04-13 16:34:06 EDT
*** Bug 264119 has been marked as a duplicate of this bug. ***
Comment 7 Darin Wright CLA 2009-04-14 17:08:37 EDT
Released initial code for IUBundleContainer along with tests.
Comment 8 Curtis Windatt CLA 2009-04-15 17:31:42 EDT
Committed the first set of UI changes.  Definitely still needs polish but the new UI will make it easier to test the bundle container.
Comment 9 Curtis Windatt CLA 2009-04-16 10:12:11 EDT
*** Bug 272498 has been marked as a duplicate of this bug. ***
Comment 10 Curtis Windatt CLA 2009-04-16 17:36:23 EDT
Darin and I put in several improvements today, both to the UI and to the resolution code.  I consider this bug fixed, as it really just needs some polish which we can open new bugs for.