Merge lp:~rharding/launchpad/yuiv5 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Richard Harding on 2012-08-13 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15800 |
| Proposed branch: | lp:~rharding/launchpad/yuiv5 |
| Merge into: | lp:launchpad |
| Diff against target: |
168 lines (+30/-31) 5 files modified
Makefile (+20/-2) buildout-templates/bin/combo-rootdir.in (+7/-1) buildout.cfg (+0/-24) lib/lp/app/templates/base-layout-macros.pt (+3/-3) versions.cfg (+0/-1) |
| To merge this branch: | bzr merge lp:~rharding/launchpad/yuiv5 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Robert Collins (community) | 2012-08-13 | Approve on 2012-08-13 | |
|
Review via email:
|
|||
Commit Message
Move YUI libary to Makefile and generate side by side installs so yui_version feature flag functions.
Description of the Change
= Summary =
This is another attempt to get side by side versions of YUI to install and
hook into the existing yui_version feature flag.
== Pre Implementation ==
Discussed moving things out of the buildout with lifeless. We're hitting
friction with having one version of YUI in versions.cfg (which is for python
packages) and doing multiple versions of YUI at once for testing.
== Implementation Notes ==
We move the versions of YUI supported into the Makefile as YUI_VERSIONS.
There's a default version which is symlinked to the usual build/js/yui target.
This get overridden by the feature flag and allows setting other versions
we've got packaged. Currently, we only allow 3.3.0 (default) and 3.5.1.
The download cache contains both versions, all systems have unzip installed as
part of lp-deps.
== Q/A ==
Make sure we can switch to using the 3.5.1 JS via the feature flag below and see all the combo load urls sprout paths in the query string that mention 3.5.1 and yet still return blobs of JS.
js.yui_version default 1 yui-3.5.1
Note: at the start of this work all JS tests were made to pass with 3.5.1.
Since this has taken time to get going, some tests are failing.
https:/
Since this work is behind a feature flag, it is safe to land and the list of
failing tests can be updated as a next step.
== Tests ==
All tests currently pass with YUI 3.3.0. Note that our current test system
only runs tests against the default YUI version. Tests against the other
versions must be manually run by altering the build/js/yui symlink to the
version you want to test.
== LoC Qualification ==
Just barely negative LoC
| Richard Harding (rharding) wrote : | # |
> This looks good to me. Does it pass ec2?
Will find out once I get an ok on the code review.

This looks good to me. Does it pass ec2?