Problems with linuxppc_2_4_devel
I have some date problem BK think that we are at feb23 and that dose not look right when running revtool. Do anyone else see this or is it my clone?
Also I get alot of "ERROR-cannot cd to linuxppc_2_4_devel" when running bk pull
--
Kenneth Johansson
Ericsson Telecom AB Tel: +46 8 404 71 83
Viderögatan 3 Fax: +46 8 404 72 72
164 80 Stockholm [email protected]
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Kenneth Johansson
I have some date problem BK think that we are at feb23 and that dose not look right when running revtool. Do anyone else see this or is it my clone?
Also I get alot of "ERROR-cannot cd to
linuxppc_2_4_devel" when running bk pull
What does:
$ bk parent say (from your source tree)
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Tom Rini
Quoted 3 lines · Kenneth Johansson
I have some date problem BK think that we are at feb23 and that dose not look right when running revtool. Do anyone else see this or is it my clone?
It is somebody who build a change set in the future :-), or at least with its machine clock set well into the future end November. I noticed it and Larry McVoy answered that he could not do anything since BK requires increasing timestamps. You'll find it in the archives of linuxppc-dev for November 2001.
IOW, check that your clock is not borked before committing changesets...
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines
IOW, check that your clock is not borked before committing changesets...
Would you like me to make you a "pre-commit" trigger which catches these problems?
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Larry McVoy
Would you like me to make you a "pre-commit" trigger which catches these problems?
If you've got the time, sure. Hopefully we're all done breaking our clocks tho. :)
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
What I was thinking was one of two approaches:
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
b) see if the time is "too different" from the last changeset. Most trees are fairly active and if the time is too far ahead (say a month?), then raise a warning and ask the user to confirm this is the correct time.
Comments?
Quoted 11 lines · Tom Rini
Quoted 2 lines · Larry McVoy
Would you like me to make you a "pre-commit" trigger which catches these problems?
If you've got the time, sure. Hopefully we're all done breaking our clocks tho. :)
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 2 lines · Larry McVoy
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
This would require some external program tho, wouldn't it?
Quoted 3 lines
b) see if the time is "too different" from the last changeset. Most trees are fairly active and if the time is too far ahead (say a month?), then raise a warning and ask the user to confirm this is the correct time.
I'd say 'b' with an override option (yes, the clock IS fine, the tree has just been dead for awhile).
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Tom Rini
Quoted 2 lines · Larry McVoy
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
This would require some external program tho, wouldn't it?
It's called ntpq, and I believe most people should have it installed, even if they don't go to full ntpd synchornisation. Besides that, the NTP protocol is very simple, especially if you don't care about round trip time measurement: it's UDP (on port 123 AFAIR).
Quoted 7 lines
Quoted 4 lines
b) see if the time is "too different" from the last changeset. Most trees are fairly active and if the time is too far ahead (say a month?), then raise a warning and ask the user to confirm this is the correct time.
I'd say 'b' with an override option (yes, the clock IS fine, the tree has just been dead for awhile).
Probably the best solution indeed...
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Gabriel Paubert
On Tue, 15 Jan 2002, Tom Rini wrote:
Quoted 8 lines
Quoted 6 lines · Larry McVoy
Quoted 3 lines
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
This would require some external program tho, wouldn't it?
It's called ntpq, and I believe most people should have it installed
[snip]
Should doesn't mean they will tho. :) And the first time you assume everyone has something, 5 people pop up screaming 'cuz they don't.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Tom Rini
Quoted 9 lines · Gabriel Paubert
Quoted 5 lines · Tom Rini
Quoted 2 lines · Larry McVoy
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
This would require some external program tho, wouldn't it?
It's called ntpq, and I believe most people should have it installed
[snip]
Should doesn't mean they will tho. :) And the first time you assume everyone has something, 5 people pop up screaming 'cuz they don't.
No, but as I said, the protocol is trivial if you want a very approximate time (use NTP v3 since all V4 servers I know support it). The problem is finding the closest server, not sending an UDP packet and decoding the answer and giving up if you don't receive anything after 5 packets or so. I'm almost certain there is database of servers somewhere, but I just don't remember where (between 2 cesium clocks, one hydrogen maser, 2 GPS and one radio receiver I have enough references for my use at the telescope ;-)). I also don't know whether some people could be blocked from using NTP, but I don't think that it is a satisfactory solution in any case.
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Larry McVoy
What I was thinking was one of two approaches:
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
While there are NTP servers all around the globe (and I maintain the one we have here at work), finding the nearest one is not always easy. Furthermore some people may create a changeset while disconnected on a laptop or would object the cost of an additional call just to get the time.
Quoted 3 lines
b) see if the time is "too different" from the last changeset. Most trees are fairly active and if the time is too far ahead (say a month?), then raise a warning and ask the user to confirm this is the correct time.
Probably better, although I like the a) solution because it is likely to be more exact. AFAIK the bk variables in the usr home directory only affect the GUI Tools look and feel, it would be too much a stretch to add a time server specification, no ?
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Larry McVoy
What I was thinking was one of two approaches:
a) try and connect to a well known time server and see if the time is too far off at commit time. May or may not work.
Are you talking about doing this just on ppc.bkbits.net or on everybody's repository clone as well? I think it would be an excellent idea for ppc.bkbits.net to reject changesets whose time is after the current time. I don't think we want to make everybody's clones do that though.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Tom Rini
Quoted 2 lines · Larry McVoy
Would you like me to make you a "pre-commit" trigger which catches these problems?
If you've got the time, sure. Hopefully we're all done breaking our clocks tho. :)
Never underestimate the capability of people to screw up, seven something as trivial as the clock ;-)
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Couldn't the pre-trigger actually check with an ntp server at the bk end and put up a warning if the commit times are off by "too much".
Quoted 7 lines · Tom Rini
Quoted 3 lines · Larry McVoy
Would you like me to make you a "pre-commit" trigger which catches these problems?
Quoted 9 lines
If you've got the time, sure. Hopefully we're all done breaking our clocks tho. :)
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 3 lines · Gavin Hemphill
Couldn't the pre-trigger actually check with an ntp server at the bk end and put up a warning if the commit times are off by "too much".
It is simpler to have the clock of the server be phase-locked on an NTP server. I don't know where the bk servers are located but they almost certainly have an NTP server within 100ms RTT (round-trip time). If paranoid, the pre-trigger script could even refuse any changeset as long as the local clock is not phase-locked, i.e., during the first few minutes after a reboot (however the ntpdate <time-server-host> which is performed normally during boot scripts to initially set the clock before starting the NTP daemon should be more than sufficient).
Besides that, this is a good idea, it should only check the timestamp on the Changeset is not in the future (bk already ensures that timestamps ordering in the graph of changesets). A time well in the past is acceptable since a changeset or set of changesets can be pushed well after being done in a private tree.
After this, a developer with a bad clock can either wait to push (if it's only a few minutes or hours in the future) or undo and redo his changeset(s) if his/her clock was far too much in advance.
Regards,
Gabriel.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 7 lines · Tom Rini
Quoted 5 lines · Kenneth Johansson
I have some date problem BK think that we are at feb23 and that dose not look right when running revtool. Do anyone else see this or is it my clone?
Quoted 7 lines
Quoted 2 lines
Also I get alot of "ERROR-cannot cd to
linuxppc_2_4_devel" when running bk pullWhat does:
$ bk parent say (from your source tree)
Sorry for the delay I catched a bug unfortunately it was deoxyribonucleic acid based instead of ones and zeros.
$bk parent
Parent repository is http://ppc.bkserver.net/linuxppc_2_4_devel
I almost always get the error but sometimes it workes. Today it worked the first try.
--
Kenneth Johansson
Ericsson Telecom AB Tel: +46 8 404 71 83
Viderögatan 3 Fax: +46 8 404 72 72
164 80 Stockholm [email protected]
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/