1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-sysadm] [319] Have only one instance of the bot running per host at a time, even if they are building for different arch
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B319%5D%20Have%20only%20one%20instance%20of%20the%20bot%20running%20per%0A%20host%20at%20a%20time%2C%20even%20if%20they%20are%20building%20for%20different%20arch&In-Reply-To=%3C20110118223020.D4F784296C%40valstar.mageia.org%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="002228.html">
<LINK REL="Next" HREF="002230.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-sysadm] [319] Have only one instance of the bot running per host at a time, even if they are building for different arch</H1>
<B>root at mageia.org</B>
<A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B319%5D%20Have%20only%20one%20instance%20of%20the%20bot%20running%20per%0A%20host%20at%20a%20time%2C%20even%20if%20they%20are%20building%20for%20different%20arch&In-Reply-To=%3C20110118223020.D4F784296C%40valstar.mageia.org%3E"
TITLE="[Mageia-sysadm] [319] Have only one instance of the bot running per host at a time, even if they are building for different arch">root at mageia.org
</A><BR>
<I>Tue Jan 18 23:30:20 CET 2011</I>
<P><UL>
<LI>Previous message: <A HREF="002228.html">[Mageia-sysadm] [318] Fix first part of message not being displayed
</A></li>
<LI>Next message: <A HREF="002230.html">[Mageia-sysadm] [851] List each node for both arch
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2229">[ date ]</a>
<a href="thread.html#2229">[ thread ]</a>
<a href="subject.html#2229">[ subject ]</a>
<a href="author.html#2229">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Revision: 319
Author: pterjan
Date: 2011-01-18 23:30:20 +0100 (Tue, 18 Jan 2011)
Log Message:
-----------
Have only one instance of the bot running per host at a time, even if they are building for different arch
Modified Paths:
--------------
build_system/iurt/trunk/ulri
Modified: build_system/iurt/trunk/ulri
===================================================================
--- build_system/iurt/trunk/ulri 2011-01-18 20:57:56 UTC (rev 318)
+++ build_system/iurt/trunk/ulri 2011-01-18 22:30:20 UTC (rev 319)
@@ -165,7 +165,6 @@
$run{pidfile_home} = $config->{tmp};
$run{pidfile} = "upload";
-my $pidfile = check_pid(\%run);
#my $cache = init_cache(\%run, $config, { done => {} });
my $cache = { done => {} };
@@ -236,7 +235,7 @@
$arch =~ s/-.*//;
}
- $run{bot}{$arch}{$host}{$bot} = $prefix;
+ $run{bot}{$host}{$bot} = $prefix;
# this should be in the cache, but waiting for a cache-clean option
$compildone->{$prefix}{$arch} = 1;
@@ -294,6 +293,7 @@
plog('MSG', "check build bot results");
+my $pidfile = check_pid(\%run);
my %later;
foreach my $prefix (keys %pkg_tree) {
my $ent = $pkg_tree{$prefix};
@@ -421,7 +421,7 @@
plog('INFO', "delete lock file for $prefix");
unlink $lock_file;
- $run{bot}{$arch}{$host}{$bot} = 0;
+ $run{bot}{$host}{$bot} = 0;
if ($later) {
next bot;
@@ -538,6 +538,7 @@
} # end bot
} # end prefix
+unlink $pidfile;
#
@@ -625,7 +626,7 @@
foreach my $host (keys %{$config->{bot}{$arch}}) {
foreach my $bot (keys %{$config->{bot}{$arch}{$host}}) {
- next if $run{bot}{$arch}{$host}{$bot};
+ next if $run{bot}{$host}{$bot};
# Enable noarch lock after the first bot snarfs the package
#
@@ -633,7 +634,7 @@
plog('INFO', "building on $host/$arch ($bot)");
- $run{bot}{$arch}{$host}{$bot} = $prefix;
+ $run{bot}{$host}{$bot} = $prefix;
$compildone->{$prefix}{$arch} = 1;
my $bot_conf = $config->{bot}{$arch}{$host}{$bot};
@@ -749,7 +750,6 @@
#dump_cache(\%run);
-unlink $pidfile;
exit();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110118/3f1088dd/attachment.html>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="002228.html">[Mageia-sysadm] [318] Fix first part of message not being displayed
</A></li>
<LI>Next message: <A HREF="002230.html">[Mageia-sysadm] [851] List each node for both arch
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#2229">[ date ]</a>
<a href="thread.html#2229">[ thread ]</a>
<a href="subject.html#2229">[ subject ]</a>
<a href="author.html#2229">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>
|