Diff for "LEP/DerivativeDistributions"

Not logged in - Log In / Register

Differences between revisions 37 and 38
Revision 37 as of 2010-11-15 16:46:21
Size: 10274
Editor: jml
Comment:
Revision 38 as of 2010-11-16 17:17:15
Size: 10384
Comment:
Deletions are marked like this. Additions are marked like this.
Line 83: Line 83:

''Bugs are at:''' [[https://launchpad.net/launchpad-project/+bugs?field.tag=derivation|Bugs for this LEP]]

Derivative Distributions

As an OEM provider
I want to make a customized version of Ubuntu
so that I can ship the OS best suited to my hardware

As a Linaro partner
I want to create a new distribution/archive in the hosting software in 3 or 4 clicks
so that this does not require deploying a new instance for each distribution.

As a Linaro partner
I want this new distribution visible only to a certain set of people, and only a subset of that group can upload
so that it's easy to see who is in each of those groups on a single page, at most 1 click from the overview page of the distribution. It is also simple to modify each of the groups, with at most 3 clicks required to add or remove someone from one of the groups.

As Meg who works for a partner enabling pre-release hardware
I want to upload modified packages to an archive for a hardware project
so that others who are working on the project can then build on top of this work.

As Lou, the lead developer on the project
I want to go to a web page and see the current state of the archive
so that I am able to remove some obsolete packages. This can be done from a single page, and is at most three clicks to remove a package. Bulk operation should be possible.

Rationale

We are doing this so it's easier for Linaro partners and Canonical's OEM team to build custom distributions.

This brings Launchpad's famous usability and feature set to more people who want to use it but currently have to use 3rd party products to do this.

Stakeholders

  • Linaro
  • OEM Services

Constraints

  • Ability to sync packages from the parent series, some auto, some manual, optionally rebuilding them
    • merge-o-matic type functionality, see merges.ubuntu.com
  • Allow one distribution to have many derived distributions
    • These derived distributions must be discoverable from the "parent" distribution.
  • Track state of packages compared those in the parent's archive:
    • Report of differences against parent(s)
      • what might I want? what do I need to push upstream?
    • Action on reports: syncing packages in both directions
    • Sync all packages changed in parent but not changed in child
      • User-defined periodic auto-sync of explicitly listed packages from parent
  • Package branches for derived archives/distros
    • XXX - do we maintain official package branches in Launchpad or are they the responsibility of the derived distro "owner"? - jml
  • Create a new distribution
    • Only XXX admins (commercial admins right now but this should change) can make new distributions, however the "driver" of the new distribution will be allowed to create/derive new series
  • Create new derived distro series based on packagesets
    • Restricted to distro drivers
    • Required because people don't want to import all of parent (think about build time)
  • Support different release cycles and release models from the parent distro
    • OEM case is frequently a small, finite number of rolling releases
  • Open distroseries well before the series is ready for uploading so that QA folk can assign bugs to future distroseries

Nice to have

  • new packagesets for derived distros based on parent's packagesets
  • diff of packagesets
  • Arbitrarily-named suites
    • XXX - how are these created? who has permission to do so? how do they interact with bug affects & package branches? - jml

  • Configurable constraints like:
    • preventing someone from uploading a package with the same version as a package in a parent distribution (binaries will have conflicting checksums)
    • uploading a package with an incorrect version (e.g. a version that will most likely be higher then the next upload in a parent distribution; ie. version scheme constraints).
    • XXX - "like"? Please list the configurable constraints we're providing.
    • XXX - What are the motivations for these features? - jml

Workflows

  • Linaro partner creates a new distribution and derives a new series from an Ubuntu series.
  • After a couple of weeks of hacking on a derived distribution, Meg syncs all the changes from Ubuntu into her derived series.

  • Lou proposes a branch from his derived distribution to be merged into the upstream distribution
  • Kiko looks at the Linaro distribution (derived from Ubuntu), gets a visual sense of the size of the delta between Ubuntu & Linaro. He investigates further, and sees that there are only one or two packages that are significantly different. He requests a merge of the Linaro packages to the upstream.

  • Meg figures out that a bug in her derived distribution is actually a bug in the parent distribution. She files a bug and adds a bugtask for the upstream distribution package and a bugtask for her own package.
  • Bryce is brought in to consult on an X problem in Linaro. He looks at the Linaro distribution and is able to quickly see the differences between Ubuntu & Linaro for X packageset packages only.

Success

How will we know when we are done?

Bugs are at: Bugs for this LEP

From https://wiki.ubuntu.com/Specs/M/ARMArchiveBranching: There will be a number of milestone test cases that we have:

  • Having basic archive management working and able to accept uploads, build packages and publish them to an archive.
  • Ability to branch a subset of Ubuntu in to the new archive management software.
  • Ability to view differences between Ubuntu and a derivative using the web interface.
  • Ability to do the same via the API.
  • Ability to trigger syncs using the web interface.
  • Ability to do the same via the API.

How will we measure how well we have done?

Mockups

Creating a new derived distroseries

new-derivied-distroseries-mockup.png

Questions

  • Should we use checkboxes? I personally think that we should consider checkboxes for the architectures... even if there are say 15 different architectures, they can be adequately grouped using fieldsets (eg. one for all arm arches) where appropriate. This would enable people to know what they are selecting from at a glance. My main concerns with a js picker (like the tags one) is that (I imagine) users need to know some letters of the arch to search for. -- michael.nelson 2010-08-17 07:08:27

New portlet for the distroseries page

derived-distros-portlet.png

Questions for the derived distroseries portlet

  • Be the first to add one.

Showing packages differences

Derived series differences

derived-series-diffs_uiround2.png

Questions for Derived series differences

  • How can we communicate the changelog? Mathias had a good idea - make it easy for people to view the changelog without leaving the page. This is hard for a few reasons, but would be great to do in some form. So, as is, users can click on the Lucid package and then there's a link to the full changelog, and in the DB we have the most recent changelog entry.

    • Easiest incremental enhancement here would be to include the latest changelog entry in the alt text for the link... ie. it would only be discovered if someone went for more information (but even then, only if they hold the mouse still).
    • Next incremental enhancement would be a JS only one of adding a (view changelog) link next to the package via JS that displays the changelog in an overlay dialog (ie. without leaving the page).
    • Now that we're using a dropdown, we could display the latest changelog entry of either or both?

Derived series missing packages

derived-series-missing-packages_2.png

Questions for Derived series missing packages

  • Is the '6 new Lucid packages that have been ignored' link enough? When clicking on this link, all previously ignored packages will be displayed with an extra column for the comment. I'd rather do this than additionally include an extra filter option "include ignored packages" or similar? -- michael.nelson 2010-08-18 08:06:28

Derived series unique packages

derived-series-unique-packages_2.png

Questions for Derived series unique packages

  • Is there anything else useful for the table? (I've added description)

User testing

Round 1

Took place as remote audio calls on July 28th and August 2nd 2010, with:

  • James Westby
  • Mathias Gug
  • Didier Roche.

Transcripts and audio
Recommendations

Thoughts?

  • Check over the Ubuntu owner / bug supervisor etc model and see if it's relevant to non-standard projects
  • Look up past literature on this subject
  • What Ubuntu-specific scripts are we running against Launchpad?
    • XXX - how would you find out?
  • Derivative distributions should be first class distributions.
  • Configurable, entirely flexible, powerful policies about behaviors are key.

I see three main "features" here:

  1. Creating distributions that can be uploaded to that will then build & publish packages.

  2. Synchronizing distributions and the associated UI & new controls.

  3. Creating derived distribution series.

There's also a bunch of associated stuff that must be considered:

  • merging between branches that are associated via a derived distribution link
  • searching for bugs etc. upstream, downstream and in "sibling" distributions

Old mockups

Creating a new derived distroseries: new-derivied-distroseries-mockup.png

New portlet for the distroseries page: derived-portlet-mockup.png

Showing packages differences: derived-series-diffs.png derived-series-missing-packages.png derived-series-unique-packages.png

LEP/DerivativeDistributions (last edited 2011-07-25 09:29:56 by rvb)