Closed
Bug 88454
Opened 24 years ago
Closed 17 years ago
fast-update.pl: add automatic "last update time" & update whole tree
Categories
(Webtools Graveyard :: Tinderbox, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: bstell, Unassigned)
Details
Attachments
(7 files, 2 obsolete files)
|
4.56 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.81 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.46 KB,
patch
|
Details | Diff | Splinter Review | |
|
9.03 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.02 KB,
patch
|
Details | Diff | Splinter Review | |
|
2.46 KB,
patch
|
braddr
:
review+
|
Details | Diff | Splinter Review |
|
2.60 KB,
patch
|
Details | Diff | Splinter Review |
fast-update.pl is great.
I'd like to propose we add code to detect the last fast-update.pl time to
reduce the amount of cvs pulling.
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
| Reporter | ||
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
r=mcafee
| Reporter | ||
Comment 5•24 years ago
|
||
| Reporter | ||
Updated•24 years ago
|
Target Milestone: --- → Future
| Reporter | ||
Comment 6•24 years ago
|
||
| Reporter | ||
Comment 7•24 years ago
|
||
This version takes the "cvs co ..." commands in client.mk and converts them
to fast-update.pl commands.
I developed/debugged/tested this on a 2 week old copy of the tree.
Summary: add automatic "last update time" to fast-update.pl → fast-update.pl: add automatic "last update time" & update whole tree
Comment 8•24 years ago
|
||
I like the effort that's going into this but I was really hoping that
fast-update.pl could eventually just handle all the standard CVS commands on its
own, instead of having an external script...so basically you'd just replace
"cvs" with "config/fast-update.pl" and run the commands as normal..
| Reporter | ||
Comment 9•24 years ago
|
||
I broke it into 2 script because I see it being used 2 ways:
1) update this dir
2) update the whole tree
The fast-update.pl does the 1st.
I do not know anyway that any script could do the 2nd without knowing what
client.mk does. Different parts of the tree come from different places. There
is no way that I know of for any script to find these places.
Also, the 2nd goal should require the minimal long term maintenance to
keep it working correctly. As such I made it follow the checkout target's
components.
In my first pass I put it all in fast-update.pl but then it got very complicated
(relative to what #1 requires) so I split the "cvs co ..." parsing into a
separate command and put in a target in client.mk to know what all the parts
are.
I do not see any advantage to doing a "pull the tree" checkout with
fast-update.pl so we will always need the cvs command. The cvs command will be
the one that always gets attention since it is required. The fast-update.pl
command will always track a tiny bit behind.
Also I doubt that fast-update.pl will ever be able to completely replace the
cvs command. This would presume that bonsai perfectly reported what has
happened with the tree. There will always be the possibility that there is
a small difference hence people will want to do the real command if only to
verify if there is / is not a problem.
| Reporter | ||
Comment 10•24 years ago
|
||
However, that is not to say someone else could not rework this.
That would be quite okay with me.
All I want is a faster way to update my tree.
| Reporter | ||
Comment 11•24 years ago
|
||
be sure to set the execute bit for cvsco-fast-update.pl
Comment 12•24 years ago
|
||
chmod +x foo.pl
before adding foo.pl to cvs will set this permission
when the file is checked out, this can be changed by
changing the permissions on the repository file.
If this file needs to be changed let me know, it's easy to do.
Comment 13•24 years ago
|
||
re: my last comment, this is a new file! ok.
Comment 14•24 years ago
|
||
r=mcafee
Comment 15•24 years ago
|
||
I tried the 7/1 patch, this looks like it's working ok.
We should check this in so we can get some coverage on it.
Comment 16•24 years ago
|
||
Looks ok from my limited knowledge of makefiles & perl on other platforms. sr=
sfraser
| Reporter | ||
Comment 17•24 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 18•24 years ago
|
||
| Reporter | ||
Comment 19•24 years ago
|
||
Now that the core work is in I currently see 2 areas for improvment:
1) clear (actually rename) the checkout log as the "checkout" target does.
see attachment 45919 [details] [diff] [review]
2) I need to debug why bonsai does not report the addition of the
mozilla/modules/plugin/samples and mozilla/modules/plugin/tools dirs
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 20•24 years ago
|
||
Can I get an r= and sr= on attachment 45919 [details] [diff] [review]?
thanks
Status: REOPENED → ASSIGNED
| Reporter | ||
Comment 21•24 years ago
|
||
a bit more info:
I see the mozilla/modules/plugin dirs not being handled when I do a fast-update
of a 30 day old tree (a tree pulled before these dirs were added). Everything
appears fine in more current trees.
Doing a normal checkout does bring these files in and appears to clear things up
but fast-upate should do this.
Comment 22•24 years ago
|
||
Looks ok to me, r=mcafee
Comment 23•24 years ago
|
||
my makefile fu isn't up to reviewing that, but rs=sfraser if you need it.
| Reporter | ||
Comment 24•24 years ago
|
||
attachment 45919 [details] [diff] [review] checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 25•24 years ago
|
||
reopening this bug to address:
> need to debug why bonsai does not report the addition of the
> mozilla/modules/plugin/samples and mozilla/modules/plugin/tools dirs
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Updated•24 years ago
|
Status: REOPENED → ASSIGNED
| Reporter | ||
Comment 26•24 years ago
|
||
in my tree I see that the mozilla/modules/plugin/samples/simple/CVS/Entries file
looks odd:
/.cvsignore/1.1/Sat Dec 5 09:04:39 1998//
/Makefile.in/1.17/Fri Aug 10 07:35:51 2001//
..
/makefile.win/1.15/Fri Aug 17 04:51:57 2001//
D
The last line should look like
D/samples////
| Reporter | ||
Comment 27•24 years ago
|
||
Comment 28•24 years ago
|
||
r=mcafee for latest patch.
Comment 29•24 years ago
|
||
sr=sfraser
| Reporter | ||
Comment 30•24 years ago
|
||
I see that fast update also does not pass the branch tag to the cvs up command.
| Reporter | ||
Comment 31•24 years ago
|
||
After the tree opens and I can check in the last change I will add code to
test for the conditions where fast-update is not appropiate; eg:
Bonsai does not work when files have sticky tags.
The branch tag changes require all the files in all the subdirs
be retagged so the fast update strategy of limiting work to
single dirs (ie: non-recursive) is not appropiate
If the date tag is earlier then all the files in all the subdirs need to
be retagged so fast-update is not appropiate. Note: if the date tag is
later and fast-update is working correctly then fast-update will work
correctly since the untouched files will be the lastes even if their
tag is not the latest.
Comment 32•23 years ago
|
||
Comment 33•23 years ago
|
||
Comment on attachment 117289 [details] [diff] [review]
patch; periodically (and the first time we run) do a full checkout when tbox is set up to do fast-update
note about that patch: it's untested ATM, but I wanted to give a couple of
people a chance to look at it. It basically takes functionality I *have*
tested in the tbox3 client and dumps it in tbox1.
Attachment #117289 -
Flags: review?(bbaetz)
Comment 34•23 years ago
|
||
Attachment #46652 -
Attachment is obsolete: true
Comment 35•23 years ago
|
||
The use of Date::Parse should probably be a |require|
jkeiser's patch looks right, but I'm not really able to test ATM.
Comment 36•23 years ago
|
||
Comment on attachment 117305 [details] [diff] [review]
diffs against brad-fast tinderbox to add few fixes from bbaetz
been running on brad-fast for months. bbaetz wrote 'em, so I'll be the
reviewer. jkesiter, cls suggested you as the sr'er.
Attachment #117305 -
Flags: superreview?(jkeiser)
Attachment #117305 -
Flags: review+
Comment 37•23 years ago
|
||
Comment on attachment 117305 [details] [diff] [review]
diffs against brad-fast tinderbox to add few fixes from bbaetz
eek, I thought I responded to this ... I'm not an sr and I can't think who is
an sr in the realm of Perl and build changes. The changes seem OK to me
though.
Attachment #117305 -
Flags: superreview?(jkeiser)
Comment 38•23 years ago
|
||
Comment on attachment 117305 [details] [diff] [review]
diffs against brad-fast tinderbox to add few fixes from bbaetz
I'm the original author of fast-update.pl, and a sr, so I'll gladly sr= this.
the approach seems right.. next time please do a diff -u though - these diffs
are pretty hard to read...
one nit:
> print "checking lat update time in $filename\n";
"last" not "lat"
Attachment #117305 -
Flags: superreview+
Comment 39•22 years ago
|
||
Comment on attachment 117289 [details] [diff] [review]
patch; periodically (and the first time we run) do a full checkout when tbox is set up to do fast-update
Is this still a valid patch, given the other one on this bug?
Comment 40•22 years ago
|
||
Comment on attachment 117289 [details] [diff] [review]
patch; periodically (and the first time we run) do a full checkout when tbox is set up to do fast-update
bbaetz: the attachment still applies, still should work and is probably still
untested.
Comment 41•22 years ago
|
||
FYI, I have a tinderbox client running and once the initial run checks out I'll
test this.
Comment 42•22 years ago
|
||
bbaetz, brad: are we missing some files that haven't been checked in?
fast-update isn't working on my pull (today's pull) because the fast-update.pl
script doesn't accept -D ...
Comment 43•22 years ago
|
||
Posted for transfer; seems to be working but I'll set it to run for a couple
days and make sure.
Attachment #117289 -
Attachment is obsolete: true
Updated•22 years ago
|
Attachment #117289 -
Flags: review?(bbaetz)
Updated•21 years ago
|
Product: Browser → Seamonkey
Updated•17 years ago
|
Assignee: bstell → build
Status: ASSIGNED → NEW
Component: Build Config → Tinderbox Configuration
Flags: superreview+
Product: Mozilla Application Suite → mozilla.org
QA Contact: granrosebugs → ccooper
Target Milestone: Future → ---
Version: Trunk → other
Comment 44•17 years ago
|
||
Mozilla tinderboxes doesn't use fast-update, and we're switching to mercurial, so WONTFIX.
Status: NEW → RESOLVED
Closed: 24 years ago → 17 years ago
Resolution: --- → WONTFIX
Component: Tinderbox Configuration → Tinderbox
Product: mozilla.org → Webtools
Updated•11 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•