Merge lp:~gesha/linaro-license-protection/readme-update into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Georgy Redkozubov
Status: Merged
Approved by: James Tunnicliffe
Approved revision: 88
Merged at revision: 89
Proposed branch: lp:~gesha/linaro-license-protection/readme-update
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 110 lines (+21/-30)
1 file modified
README (+21/-30)
To merge this branch: bzr merge lp:~gesha/linaro-license-protection/readme-update
Reviewer Review Type Date Requested Status
Milo Casagrande (community) Approve
Review via email: mp+116401@code.launchpad.net

Description of the change

This branch updates README file to reflect current state of the linaro-license-protection.

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

Hello Georgy,

I took a look at the merge proposal and the fixes looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2012-06-20 11:49:12 +0000
3+++ README 2012-07-24 05:11:19 +0000
4@@ -10,7 +10,7 @@
5 This code provides such license protection on the hosting web server:
6 other parts of infrastructure need to properly integrate with it (see
7 eg. android-build.linaro.org section). At the moment, it's implemented as
8-a click-through license acceptance on the Apache side.
9+a click-through license acceptance on the server side with Apache+Django.
10
11 To ensure and prove this keeps working, we are also using automated tests
12 with this code.
13@@ -20,29 +20,27 @@
14 -----
15
16 This tree is the base for snapshots.linaro.org and releases.linaro.org www
17-roots as served by Apache. It makes heavy use of mod_rewrite from within
18-the .htaccess file.
19+roots as served by Apache. It uses Django and mod_xsendfile.
20
21-Currently, all directories/files containing either 'origen' or 'snowball'
22+Currently, if BUILD-INFO.txt is found in a directory it is parsed and
23+information from that file is used to apply appropriate protection to the
24+requested file, otherwise old-style EULA handling is used: if special EULA
25+file is found then it is used for selecting license and theme for requested
26+file, otherwise all directories/files containing either 'origen' or 'snowball'
27 in the URL path are protected with appropriate license (Samsung or ST-E)
28 click-through.
29
30 Dependencies
31 ............
32
33-libapache2-mod-php5
34+libapache2-mod-xsendfile >= 0.10
35+python-django >= 1.3.1
36+python-django-openid-auth
37
38 Testing:
39- phpunit, python 2.7, testrepository (>=0.0.6), python-html2text,
40+ python 2.7, testrepository (>=0.0.6), python-html2text,
41 python-subunit, python-beautifulsoup
42
43-Recent (as of 2012-05-08) Ubuntu/Debian releases have a broken phpunit
44-package and thus require installation of phpunit through PEAR:
45-
46- $ sudo apt-get install php-pear
47- $ sudo pear config-set auto_discover 1
48- $ sudo pear install pear.phpunit.de/PHPUnit
49-
50
51 Technical details
52 -----------------
53@@ -50,8 +48,8 @@
54 releases.linaro.org
55 ...................
56
57-Root directory for releases.linaro.org includes .htaccess and licenses/*.
58-It has mod_rewrite enabled.
59+Root directory for releases.linaro.org includes downloadable artifacts served
60+by Apache and Django application.
61
62 It allows a few hard-coded hosts to bypass the click-through protection,
63 by their IPs:
64@@ -70,15 +68,15 @@
65 Further, to allow android-build.linaro.org to push to snapshots.linaro.org
66 www area directly, we set-up two different users on the system with SSH keys:
67
68- * android-build-linaro:
69+ * linaro-android-build-publish:
70
71 chrooted to /srv/snapshots.linaro.org/www/android/ and allows sftp
72 access to push files over; home directory
73
74- * android-build-linaro-trigger:
75+ * linaro-android-build-publish-trigger:
76
77 limited to executing only a single command through
78- /etc/ssh/user-authorized-keys/android-build-linaro-trigger
79+ /etc/ssh/user-authorized-keys/linaro-android-build-publish-trigger
80
81 command="/home/android-build-linaro-trigger/scripts
82 /trigger-android-build-linaro.sh ${SSH_ORIGINAL_COMMAND#* }"
83@@ -99,8 +97,10 @@
84 Runs Jenkins and uses SFTP plugin to access the above two users. Private
85 keys live in
86
87- /home/ubuntu/snapshots-sync/snapshots-sync — android-build-linaro
88- /home/ubuntu/snapshots-sync/snapshots-filemove — android-build-linaro-trigger
89+ /home/ubuntu/snapshots-sync2/linaro-android-build-publish —
90+ linaro-android-build-publish
91+ /home/ubuntu/snapshots-sync2/linaro-android-build-publish-trigger —
92+ linaro-android-build-publish-trigger
93
94 To ensure serialization of steps, and allow LAVA submission, these happen as
95 build steps, and not as publishing steps.
96@@ -204,13 +204,4 @@
97
98 These tests require an internet connection.
99
100-Tests for PHP license-matching logic
101-....................................
102-
103-Unit tests for the license-matching logic written in PHP are automatically
104-ran as part of the full test suite (testr run). However, for a more
105-detailed output, you may need to run phpunit directly.
106-
107-To run the tests separately, do the following:
108-
109- $ phpunit tests/LicenseHelperTest
110+

Subscribers

People subscribed via source and target branches