Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jenkins.debian.net
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
3
Merge Requests
3
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Debian QA
jenkins.debian.net
Commits
ca89fba0
Commit
ca89fba0
authored
Jan 25, 2019
by
Holger Levsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reproducible Arch Linux: also include 3h mini-stat in irc message
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
4f7f5029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
reproducible_archlinux_scheduler.sh
bin/reproducible_archlinux_scheduler.sh
+10
-0
No files found.
bin/reproducible_archlinux_scheduler.sh
View file @
ca89fba0
...
...
@@ -257,6 +257,16 @@ update_archlinux_repositories() {
msg_depwait404
=
""
fi
MESSAGE
=
"
${
message
}${
msg_old
}${
msg_depwait404
}
, for
$total
scheduled out of
$TOTAL
."
# the next 3 lines could maybe do some refactoring. but then, all of this should be rewritten in python using templates...
DISTROID
=
$(
query_db
"SELECT id FROM distributions WHERE name='archlinux'"
)
MAXDATE
=
"
$(
date
-u
+
'%Y-%m-%d %H:%M'
-d
'3 hours ago'
)
"
RECENT
=
$(
query_db
"SELECT count(s.name) FROM sources AS s
JOIN results AS r
ON s.id=r.package_id
WHERE s.distribution=
$DISTROID
AND s.architecture='x86_64'
AND r.build_date > '
$MAXDATE
'"
)
MESSAGE
=
"
$MESSAGE
(
$RECENT
builds in the last 3h)"
echo
-n
"
$(
date
-u
)
- "
irc_message archlinux-reproducible
"
$MESSAGE
"
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment