Merge lp:~fboudra/linaro-license-protection/bug978711-create-latest-and-headers-symlinks-v2 into lp:~linaro-automation/linaro-license-protection/trunk
Proposed by
Fathi Boudra
Status: | Merged |
---|---|
Merged at revision: | 64 |
Proposed branch: | lp:~fboudra/linaro-license-protection/bug978711-create-latest-and-headers-symlinks-v2 |
Merge into: | lp:~linaro-automation/linaro-license-protection/trunk |
Diff against target: |
67 lines (+19/-8) 2 files modified
scripts/publish_to_snapshots.py (+18/-7) testing/test_publish_to_snapshots.py (+1/-1) |
To merge this branch: | bzr merge lp:~fboudra/linaro-license-protection/bug978711-create-latest-and-headers-symlinks-v2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deepti B. Kalakeri (community) | Approve | ||
Review via email: mp+104142@code.launchpad.net |
Description of the change
Create latest and HEADER.html symlinks for Ubuntu images. (LP: #978711)
To post a comment you must log in.
On Mon, Apr 30, 2012 at 9:53 PM, Fathi Boudra <email address hidden>wrote:
> Fathi Boudra has proposed merging infrastructure) /bugs.launchpad .net/linaro- ci/+bug/ 978711 /code.launchpad .net/~fboudra/ linaro- license- protection/ bug978711- create- latest- and-headers- symlinks- v2/+merge/ 104142<https:/ /code.launchpad .net/%7Efboudra /linaro- license- protection/ bug978711- create- latest- and-headers- symlinks- v2/+merge/ 104142> /code.launchpad .net/~fboudra/ linaro- license- protection/ bug978711- create- latest- and-headers- symlinks- v2/+merge/ 104142<https:/ /code.launchpad .net/%7Efboudra /linaro- license- protection/ bug978711- create- latest- and-headers- symlinks- v2/+merge/ 104142> publish_ to_snapshots. py' publish_ to_snapshots. py 2012-04-25 11:25:15 +0000 publish_ to_snapshots. py 2012-04-30 16:22:20 +0000 symlink( self, target_dir_path): dirname( target_ dir_path)
> lp:~fboudra/linaro-license-protection/bug978711-create-latest-and-headers-symlinks-v2
> into lp:linaro-license-protection.
>
> Requested reviews:
> Linaro Infrastructure (linaro-
> Related bugs:
> Bug #978711 in Linaro CI: "Create latest and headers symlinks for
> published images"
> https:/
>
> For more details, see:
>
> https:/
>
> Create latest and HEADER.html symlinks for Ubuntu images. (LP: #978711)
> --
>
> https:/
> Your team Linaro Infrastructure is requested to review the proposed merge
> of
> lp:~fboudra/linaro-license-protection/bug978711-create-latest-and-headers-symlinks-v2
> into lp:linaro-license-protection.
>
> === modified file 'scripts/
> --- scripts/
> +++ scripts/
> @@ -129,15 +129,22 @@
>
> return build_dir_path, target_dir_path
>
> - def create_
> - target_parent_dir = os.path.
>
We can probably leave this as is and use the target_parent_dir path in the
symlink_path = os.path.join(...)
This will help us to stick to the 80 column rule and also reduce duplicae
call to os.path.dirname.
> - symlink_path = os.path. join(target_ parent_ dir, "lastSuccessful") symlink( self, args, target_dir_path): join(target_ path, "HEADER.html") join(target_ dir_path, "HEADER.html") join(os. path.dirname( target_ dir_path) , join(os. path.dirname( target_ dir_path) , islink( symlink_ path): symlink_ path) header_ path, header_ symlink_ path)
> + def create_
> + header_path = os.path.
> + header_symlink_path = os.path.
> +
> + if args.job_type == "android":
> + symlink_path = os.path.
> "lastSuccessful")
> + else:
> + symlink_path = os.path.
> "latest")
> +
> try:
> if os.path.
> os.unlink(
>
> + os.symlink(
>
Do you want to create symlink from /tmp/www/ precise/ images/ nano/1/ to HEADER. html ?? precise/ images/ nano/1/ to precise/ HEADER. html ?
/tmp/www/
I think we should have a symlink from /tmp/www/
/tmp/www/
Between the content of the HEADER.html is empty is this going to be copied
from somewhere or generate on fly ?
> os.symlink( target_ dir_path, symlink_path)
> - print "The lastSuccessful build is now linked to ",
> target_dir_path
> + print "The latest build is now linked to ", target_dir_path
> return PASS
> except Exception, details:
> print "Fail...