Merge lp:~michihenning/persistent-cache-cpp/fix-copyright-xenial into lp:persistent-cache-cpp/devel

Proposed by Michi Henning
Status: Merged
Approved by: James Henstridge
Approved revision: 38
Merged at revision: 38
Proposed branch: lp:~michihenning/persistent-cache-cpp/fix-copyright-xenial
Merge into: lp:persistent-cache-cpp/devel
Diff against target: 44 lines (+9/-3)
2 files modified
debian/control (+2/-0)
tests/copyright/check_copyright.sh (+7/-3)
To merge this branch: bzr merge lp:~michihenning/persistent-cache-cpp/fix-copyright-xenial
Reviewer Review Type Date Requested Status
James Henstridge Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+280104@code.launchpad.net

Commit message

Work-around for broken licensecheck on xenial.

Description of the change

Work-around for broken licensecheck on xenial.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
James Henstridge (jamesh) wrote :

This change disables the test entirely. Would it be possible to get it to always run the test but ignore the result on Xenial (similar to how we've ignored errors in tests on PPC/s390, but still run them).

Revision history for this message
Michi Henning (michihenning) wrote :

We could do that, but we'd get many hundreds of errors in the log.

I have this on my todo list anyway. It affects this project, thumbnailer, unity-api, and unity-scopes-api, so it needs doing. All these projects have disabled the test the same way as here, so I'm a bit reluctant to make a change only here, seeing that it's a temporary work-around for the failure anyway.

Note that we won't accidentally release with missing copyright headers because that is tested separately by the build machinery.

I added a unit test for this originally mainly so we wouldn't only find out on Jenkins or in a silo when there was a problem with a copyright header.

Revision history for this message
James Henstridge (jamesh) wrote :

Fair enough then.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2015-08-07 10:58:11 +0000
3+++ debian/control 2015-12-10 05:32:25 +0000
4@@ -4,10 +4,12 @@
5 Build-Depends: cmake,
6 cmake-extras (>= 0.4),
7 debhelper (>= 9),
8+ devscripts,
9 doxygen,
10 libboost-filesystem-dev,
11 libgtest-dev,
12 libleveldb-dev,
13+ lsb-release,
14 pkg-config,
15 python3,
16 Standards-Version: 3.9.6
17
18=== modified file 'tests/copyright/check_copyright.sh'
19--- tests/copyright/check_copyright.sh 2015-07-21 06:22:48 +0000
20+++ tests/copyright/check_copyright.sh 2015-12-10 05:32:25 +0000
21@@ -17,9 +17,7 @@
22 # Authored by: Michi Henning <michi.henning@canonical.com>
23
24 #
25-# Check that, somewhere in the first 30 lines of each file, the string "Copyright" (case independent) appears.
26-# Print out a messsage for each file without a copyright notice and exit with non-zero status
27-# if any such file is found.
28+# Check that we have acceptable license information in our source files.
29 #
30
31 usage()
32@@ -31,6 +29,12 @@
33 [ $# -lt 1 ] && usage
34 [ $# -gt 2 ] && usage
35
36+# TODO: Temporary hack to work around broken licensecheck on xenial. Remove this once that is fixed.
37+distro=$(lsb_release -c -s)
38+[ "$distro" = "xenial" ] && {
39+ exit 0
40+}
41+
42 ignore_pat="\\.sci$"
43
44 #

Subscribers

People subscribed via source and target branches

to all changes: