Merge ~hyask/meta-release:main into meta-release:main

Proposed by Skia
Status: Merged
Merged at revision: b13f7d86179eb97e7630f848d9676ba028e546bb
Proposed branch: ~hyask/meta-release:main
Merge into: meta-release:main
Diff against target: 148 lines (+54/-24)
3 files modified
.launchpad.yaml (+11/-0)
meta-release-unit-testing (+18/-18)
url-checker.sh (+25/-6)
Reviewer Review Type Date Requested Status
Brian Murray Approve
Review via email: mp+455210@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for working on this!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.launchpad.yaml b/.launchpad.yaml
2new file mode 100644
3index 0000000..d5b03dd
4--- /dev/null
5+++ b/.launchpad.yaml
6@@ -0,0 +1,11 @@
7+pipeline:
8+ - url_checker
9+
10+jobs:
11+ url_checker:
12+ series: jammy
13+ architectures: amd64
14+ packages:
15+ - curl
16+ run: |
17+ ./url-checker.sh meta-release*
18diff --git a/meta-release-unit-testing b/meta-release-unit-testing
19index 5f0c17e..6d18b82 100644
20--- a/meta-release-unit-testing
21+++ b/meta-release-unit-testing
22@@ -4,7 +4,7 @@ Version: 04.10
23 Date: Wed, 20 Oct 2004 07:28:17 UTC
24 Supported: 0
25 Description: This is the warty warthog release
26-Release-File: http://archive.ubuntu.com/ubuntu/dists/warty/Release
27+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/warty/Release
28
29 Dist: hoary
30 Name: Hoary Hedgehog
31@@ -12,7 +12,7 @@ Version: 05.04
32 Date: Fri, 08 Apr 2005 08:18:19 UTC
33 Supported: 0
34 Description: This is the Hoary Hedgehog release
35-Release-File: http://archive.ubuntu.com/ubuntu/dists/hoary/Release
36+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/hoary/Release
37
38 Dist: breezy
39 Name: Breezy Badger
40@@ -20,7 +20,7 @@ Version: 05.10
41 Date: Thu, 13 Oct 2005 19:34:42 UTC
42 Supported: 0
43 Description: This is the Breezy Badger release
44-Release-File: http://archive.ubuntu.com/ubuntu/dists/breezy/Release
45+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/breezy/Release
46
47 Dist: dapper
48 Name: Dapper Drake
49@@ -28,10 +28,10 @@ Version: 6.06 LTS
50 Date: Thu, 01 Jun 2006 9:00:00 UTC
51 Supported: 0
52 Description: This is the Dapper Drake release
53-Release-File: http://archive.ubuntu.com/ubuntu/dists/dapper/Release
54+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/dapper/Release
55 ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
56-UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/dapper/main/dist-upgrader-all/current/dapper.tar.gz
57-UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/dapper/main/dist-upgrader-all/current/dapper.tar.gz.gpg
58+UpgradeTool: http://old-releases.ubuntu.com/ubuntu/dists/dapper/main/dist-upgrader-all/current/dapper.tar.gz
59+UpgradeToolSignature: http://old-releases.ubuntu.com/ubuntu/dists/dapper/main/dist-upgrader-all/current/dapper.tar.gz.gpg
60
61 Dist: edgy
62 Name: Edgy Eft
63@@ -39,10 +39,10 @@ Version: 6.10
64 Date: Thu, 26 Oct 2006 12:00:00 UTC
65 Supported: 0
66 Description: This is the Edgy Eft release
67-Release-File: http://archive.ubuntu.com/ubuntu/dists/edgy/Release
68-ReleaseNotes: http://changelogs.ubuntu.com/EdgyReleaseAnnouncement
69-UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/edgy-updates/main/dist-upgrader-all/current/edgy.tar.gz
70-UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/edgy-updates/main/dist-upgrader-all/current/edgy.tar.gz.gpg
71+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/edgy/Release
72+ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
73+UpgradeTool: http://old-releases.ubuntu.com/ubuntu/dists/edgy-updates/main/dist-upgrader-all/current/edgy.tar.gz
74+UpgradeToolSignature: http://old-releases.ubuntu.com/ubuntu/dists/edgy-updates/main/dist-upgrader-all/current/edgy.tar.gz.gpg
75
76 Dist: feisty
77 Name: Feisty Fawn
78@@ -50,10 +50,10 @@ Version: 7.04
79 Date: Thu, 19 Apr 2007 13:00:00 +0200
80 Supported: 0
81 Description: This is the 7.04 release
82-Release-File: http://archive.ubuntu.com/ubuntu/dists/feisty/Release
83-ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/feisty-proposed/main/dist-upgrader-all/current/ReleaseAnnouncement
84-UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/feisty-proposed/main/dist-upgrader-all/current/feisty.tar.gz
85-UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/feisty-proposed/main/dist-upgrader-all/current/feisty.tar.gz.gpg
86+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/feisty/Release
87+ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
88+UpgradeTool: http://old-releases.ubuntu.com/ubuntu/dists/feisty-proposed/main/dist-upgrader-all/current/feisty.tar.gz
89+UpgradeToolSignature: http://old-releases.ubuntu.com/ubuntu/dists/feisty-proposed/main/dist-upgrader-all/current/feisty.tar.gz.gpg
90
91 Dist: gutsy
92 Name: Gutsy Gibbon
93@@ -61,10 +61,10 @@ Version: 7.10
94 Date: Thu, 18 Oct 2007 12:00:00 UTC
95 Supported: 0
96 Description: This is the 7.10 release
97-Release-File: http://archive.ubuntu.com/ubuntu/dists/gutsy/Release
98-ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/gutsy/main/dist-upgrader-all/current/ReleaseAnnouncement
99-UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/gutsy/main/dist-upgrader-all/current/gutsy.tar.gz
100-UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/gutsy/main/dist-upgrader-all/current/gutsy.tar.gz.gpg
101+Release-File: http://old-releases.ubuntu.com/ubuntu/dists/gutsy/Release
102+ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
103+UpgradeTool: http://old-releases.ubuntu.com/ubuntu/dists/gutsy/main/dist-upgrader-all/current/gutsy.tar.gz
104+UpgradeToolSignature: http://old-releases.ubuntu.com/ubuntu/dists/gutsy/main/dist-upgrader-all/current/gutsy.tar.gz.gpg
105
106 Dist: herring
107 Name: Holly Holbach
108diff --git a/url-checker.sh b/url-checker.sh
109index 37eed31..db5f5bd 100755
110--- a/url-checker.sh
111+++ b/url-checker.sh
112@@ -1,11 +1,30 @@
113 #!/bin/bash
114
115-FILE=$1
116+global_failures=0
117
118-for url in $(grep -o "http://.*" $FILE)
119-do
120- RESULT=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' $url)
121- if [ $RESULT != '200' ]; then
122- echo $url $RESULT
123+for file in $@; do
124+ failures=0
125+ echo "Checking file '$file'"
126+ # Blacklist {countrymirror} addresses that are in meta-release-unit-testing, and won't resolve anyway
127+ for url in $(grep -o "http://.*" $file | grep -v '{countrymirror}')
128+ do
129+ RESULT=$(curl -o /dev/null --silent --head --write-out '%{http_code}\n' $url)
130+ if [ $RESULT != '200' ]; then
131+ echo "$url failed with code $RESULT"
132+ failures=$((failures+1))
133+ fi
134+ done
135+ if [ $failures -eq 0 ]; then
136+ echo "File '$file' checks out"
137+ else
138+ echo "File '$file' contains $failures errors"
139+ global_failures=$((global_failures+1))
140 fi
141 done
142+if [ $global_failures -eq 0 ]; then
143+ echo "Everything checks out, exiting"
144+ exit 0
145+else
146+ echo "Errors were reported, exiting with code 1"
147+ exit 1
148+fi

Subscribers

People subscribed via source and target branches