[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-08-05 Thread Peter Kasting
On Wed, Aug 5, 2009 at 5:32 PM, Jeremy Orlow  wrote:

> Which kind soul ended up working on this?  Big thanks are in order, but I
> wanted to let you know that at least one case slipped through the cracks:
> http://src.chromium.org/viewvc/chrome?view=rev&revision=22556 required a
> clobber today.  Any ideas why?


It didn't require a clobber; it went green on the next run (inexplicably).

PK

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-08-05 Thread Jeremy Orlow
Which kind soul ended up working on this?  Big thanks are in order, but I
wanted to let you know that at least one case slipped through the cracks:
http://src.chromium.org/viewvc/chrome?view=rev&revision=22556 required a
clobber today.  Any ideas why?

On Tue, Jul 28, 2009 at 4:46 PM, Nicolas Sylvain wrote:

>
>
> On Tue, Jul 28, 2009 at 4:37 PM, Evan Martin  wrote:
>
>>
>> On Tue, Jul 28, 2009 at 4:35 PM, Paweł Hajdan
>> Jr. wrote:
>> > On Tue, Jul 28, 2009 at 16:30, Evan Martin  wrote:
>> >>
>> >> This happens semi-frequently.  It's related to the grit resources
>> >> rebuilding.  Something like: not remapping IDR_THROBBER_WAITING to the
>> >> right place, or remapping it to the right place but not rebuilding
>> >> this file, or something like that.
>> >
>> > Will the workaround for the original problem (clobbering headers
>> generated
>> > by .grd files) work also for this issue? If not, do you have any idea
>> for a
>> > fix or workaround?
>> > Or maybe... why not set the resources projects to always-build, even
>> just
>> > for the buildbots? lastchange works this way, so it is possible. I think
>> it
>> > is not more or less crude than the clobbering workaround, and is simpler
>> to
>> > implement. Increase in the build time should not be significant (on the
>> > bots; doing that on developers' machine probably isn't a good idea).
>>
>> I like the idea of always-building the resources project.
>> Though note it can cause a lot of code to rebuild: it generates
>> headers, which are included via includes via includes...
>
>
> I still vote for the original idea of clobbering the .h files if the .grd
> file is changed. I think it should be easy to implement with the DEPS file.
>
> The faster the incremental build is on the bots, the faster they cycle.
> They are already too slow, that'd be sad to make it even slower.
>
> Nicolas
>
>
>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-28 Thread Nicolas Sylvain
On Tue, Jul 28, 2009 at 4:37 PM, Evan Martin  wrote:

>
> On Tue, Jul 28, 2009 at 4:35 PM, Paweł Hajdan
> Jr. wrote:
> > On Tue, Jul 28, 2009 at 16:30, Evan Martin  wrote:
> >>
> >> This happens semi-frequently.  It's related to the grit resources
> >> rebuilding.  Something like: not remapping IDR_THROBBER_WAITING to the
> >> right place, or remapping it to the right place but not rebuilding
> >> this file, or something like that.
> >
> > Will the workaround for the original problem (clobbering headers
> generated
> > by .grd files) work also for this issue? If not, do you have any idea for
> a
> > fix or workaround?
> > Or maybe... why not set the resources projects to always-build, even just
> > for the buildbots? lastchange works this way, so it is possible. I think
> it
> > is not more or less crude than the clobbering workaround, and is simpler
> to
> > implement. Increase in the build time should not be significant (on the
> > bots; doing that on developers' machine probably isn't a good idea).
>
> I like the idea of always-building the resources project.
> Though note it can cause a lot of code to rebuild: it generates
> headers, which are included via includes via includes...


I still vote for the original idea of clobbering the .h files if the .grd
file is changed. I think it should be easy to implement with the DEPS file.

The faster the incremental build is on the bots, the faster they cycle. They
are already too slow, that'd be sad to make it even slower.

Nicolas


>
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-28 Thread Evan Martin

On Tue, Jul 28, 2009 at 4:35 PM, Paweł Hajdan
Jr. wrote:
> On Tue, Jul 28, 2009 at 16:30, Evan Martin  wrote:
>>
>> This happens semi-frequently.  It's related to the grit resources
>> rebuilding.  Something like: not remapping IDR_THROBBER_WAITING to the
>> right place, or remapping it to the right place but not rebuilding
>> this file, or something like that.
>
> Will the workaround for the original problem (clobbering headers generated
> by .grd files) work also for this issue? If not, do you have any idea for a
> fix or workaround?
> Or maybe... why not set the resources projects to always-build, even just
> for the buildbots? lastchange works this way, so it is possible. I think it
> is not more or less crude than the clobbering workaround, and is simpler to
> implement. Increase in the build time should not be significant (on the
> bots; doing that on developers' machine probably isn't a good idea).

I like the idea of always-building the resources project.
Though note it can cause a lot of code to rebuild: it generates
headers, which are included via includes via includes...

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-28 Thread Paweł Hajdan Jr .
On Tue, Jul 28, 2009 at 16:30, Evan Martin  wrote:

> This happens semi-frequently.  It's related to the grit resources
> rebuilding.  Something like: not remapping IDR_THROBBER_WAITING to the
> right place, or remapping it to the right place but not rebuilding
> this file, or something like that.


Will the workaround for the original problem (clobbering headers generated
by .grd files) work also for this issue? If not, do you have any idea for a
fix or workaround?

Or maybe... why not set the resources projects to always-build, even just
for the buildbots? lastchange works this way, so it is possible. I think it
is not more or less crude than the clobbering workaround, and is simpler to
implement. Increase in the build time should not be significant (on the
bots; doing that on developers' machine probably isn't a good idea).

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-28 Thread Evan Martin

This happens semi-frequently.  It's related to the grit resources
rebuilding.  Something like: not remapping IDR_THROBBER_WAITING to the
right place, or remapping it to the right place but not rebuilding
this file, or something like that.

On Tue, Jul 28, 2009 at 4:18 PM, Paweł Hajdan
Jr. wrote:
> I'm working on gclient to pass the matching file list to the hook, or some
> equivalent.
> I discovered another issue, which I highly suspect is caused by a build
> issue (I'm not sure if it's the same issue).
>
> waiting_animation_frames = rb.GetBitmapNamed(IDR_THROBBER_WAITING);
> DCHECK(waiting_animation_frames);
> DCHECK(waiting_animation_frames->width() %
>waiting_animation_frames->height() == 0);  // <-- this DCHECK
> fails
> waiting_animation_frame_count =
> waiting_animation_frames->width() / waiting_animation_frames-
>>height();
>
> It seems that a wrong bitmap is being loaded. What can it mean for the
> build?
> On Mon, Jul 27, 2009 at 16:54, Paweł Hajdan Jr. 
> wrote:
>>
>> I'm going to try writing the hook, but I would first ask for advice.
>> The hook syntax takes a filename pattern and a command. So I would have to
>> create a new command (probably in src/tools), like clobber_generated_headers
>> or something similar.
>> And the tool itself does not get the list of changed files, so it has to
>> clobber all of them, and have the list of files to be clobbered hardcoded.
>> Do you see better solutions?
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-28 Thread Paweł Hajdan Jr .
I'm working on gclient to pass the matching file list to the hook, or some
equivalent.
I discovered another issue, which I highly suspect is caused by a build
issue (I'm not sure if it's the same issue).

waiting_animation_frames = rb.GetBitmapNamed(IDR_THROBBER_WAITING);
DCHECK(waiting_animation_frames);
DCHECK(waiting_animation_frames->width() %
   waiting_animation_frames->height() == 0);  // <-- this DCHECK
fails
waiting_animation_frame_count =
waiting_animation_frames->width() / waiting_animation_frames-
>height();

It seems that a wrong bitmap is being loaded. What can it mean for the
build?

On Mon, Jul 27, 2009 at 16:54, Paweł Hajdan Jr. wrote:

> I'm going to try writing the hook, but I would first ask for advice.
> The hook syntax takes a filename pattern and a command. So I would have to
> create a new command (probably in src/tools), like clobber_generated_headers
> or something similar.
>
> And the tool itself does not get the list of changed files, so it has to
> clobber all of them, and have the list of files to be clobbered hardcoded.
>
> Do you see better solutions?
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-27 Thread Paweł Hajdan Jr .
I'm going to try writing the hook, but I would first ask for advice.
The hook syntax takes a filename pattern and a command. So I would have to
create a new command (probably in src/tools), like clobber_generated_headers
or something similar.

And the tool itself does not get the list of changed files, so it has to
clobber all of them, and have the list of files to be clobbered hardcoded.

Do you see better solutions?

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-24 Thread Nicolas Sylvain
On Fri, Jul 24, 2009 at 11:10 AM, Tony Chang  wrote:

> I haven't seen this error in VS for probably a year.  It's true that
> changing a resource (e.g., a png file) would not pick up the change
> since we don't specify dependencies on the actual data files, but
> changes to grd files should trigger the right things to rebuild.
>
> When we see the error on the buildbots, what's normally happening is
> that a new resource is added which causes IDs after the new resource
> to shift.  The header is updated with the new values and new .rc files
> are generated.  The .rc files properly get rebuilt into the locale dll
> since the .rc files changed.  However, some of the .cc files don't
> recompile so they are referencing the old IDs and get the wrong
> resource (e.g., we would get the wrong title for a tab).
>
> Is there a recent build log where this failed?  I think we'll be able
> to determine more from that.


the build never actually fails, but the test fails, and it's exactly what
you said, it expects STRINGX, but gets STRINGY (which happened to have
the same ID that STRINGX had before).

I still think this is expected. Modifying a rc file should not force every
files which depends on it to rebuild. Since when you use the VS UI, it
will never change the order, so the rebuild will be useless. (And if you
add or delete a string, you'll have the cc files containing them modified
anyway, so
it will rebuild correctly that part).

I guess someone should try it ;)

Nicolas



>
> On Fri, Jul 24, 2009 at 11:00 AM, Nicolas Sylvain
> wrote:
> > Tony, just to make sure, are you certain that this is a IB only issue?
> > I used to be convinced that it was happening with visual studio too.
> > If this is a IB only problem, we should create a repro case and send it
> to
> > them, they
> > are usually really responsive.
> > [For some reasons, I thought it was because it was generating the rc
> files
> > and the ID in them were not static. I.e. you add a string in the middle,
> and
> > it's shifting the string IDs of all the strings after the addition.
> Visual
> > Studio does not support that. You can't change string ids in a RC file
> > without having the clobber the source. The normal use case is always to
> take
> > the next available ID (which is why the rc file always keep track of the
> > next available ID at the bottom).]
> > Nicolas
> >
> > On Thu, Jul 23, 2009 at 5:54 PM, Tony Chang  wrote:
> >>
> >> Look at how the current gyp hook works.  It looks for changes to .gyp
> >> files and only runs if a .gyp (and maybe gypi?) file has changed.
> >>
> >> You can find what header it generates by opening the grd file and
> >> parsing the XML (the XML lists the output files).  You'll need to
> >> build the base directory (e.g., Debug/obj/global_intermediate/ and the
> >> Release version), I would just check for the Windows versions since we
> >> don't seem to have this problem with the mac or linux buildbots.
> >>
> >>
> >>
> >> On Thu, Jul 23, 2009 at 5:36 PM, Paweł Hajdan
> >> Jr. wrote:
> >> > I think that this workaround may be worth it. I'm not familiar with
> the
> >> > IncrediBuild, but I can help making the hook (and we can run it only
> on
> >> > Windows).
> >> > How do I make a hook know which grd files changed? And also know which
> >> > headers it generates? Alternatively, maybe this Windows-only hook
> would
> >> > just
> >> > delete all generated headers (with a hardcoded list)? Generation seems
> >> > to be
> >> > cheap, and such hook seems trivial to write.
> >> > So, yes, this hook is kludgey. But we are aware of its limitations,
> and
> >> > it
> >> > would eliminate one kind of build mysteries. What do you think?
> >> >
> >> > On Thu, Jul 23, 2009 at 17:30, Tony Chang  wrote:
> >> >>
> >> >> Here's a crappy work around:
> >> >> Add a gclient hook that checks for grd file changes.  When a grd file
> >> >> changes, force delete the header it would generate.  I'm pretty sure
> >> >> this would prevent bad builds from IncrediBuild.
> >> >>
> >> >> Alternately, maybe we can make a reduced test case and file a bug
> >> >> against IncrediBuild.
> >> >>
> >> >> On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
> >> >> Jr. wrote:
> >> >> > Is it possible to force it to rebuild some files, or... I don't
> know,
> >> >> > do
> >> >> > you
> >> >> > see some real way to fix this problem?
> >> >> >
> >> >> > On Thu, Jul 23, 2009 at 16:41, Tony Chang 
> wrote:
> >> >> >>
> >> >> >> To elaborate on Peter's comment.  IncrediBuild (which the
> buildbots
> >> >> >> use) get confused by changes to our grd files.  Our grd files
> >> >> >> generate
> >> >> >> headers, which should then cause lots of cc files to get rebuilt.
> >> >> >> Visual Studio seems to always get this right, but IncrediBuild
> gets
> >> >> >> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild
> >> >> >> is
> >> >> >> checking the timestamp of the file before the headers are
> >> >> >> re-generated
> >> >> >> and doesn't realize it needs to r

[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-24 Thread Tony Chang

I haven't seen this error in VS for probably a year.  It's true that
changing a resource (e.g., a png file) would not pick up the change
since we don't specify dependencies on the actual data files, but
changes to grd files should trigger the right things to rebuild.

When we see the error on the buildbots, what's normally happening is
that a new resource is added which causes IDs after the new resource
to shift.  The header is updated with the new values and new .rc files
are generated.  The .rc files properly get rebuilt into the locale dll
since the .rc files changed.  However, some of the .cc files don't
recompile so they are referencing the old IDs and get the wrong
resource (e.g., we would get the wrong title for a tab).

Is there a recent build log where this failed?  I think we'll be able
to determine more from that.

On Fri, Jul 24, 2009 at 11:00 AM, Nicolas Sylvain wrote:
> Tony, just to make sure, are you certain that this is a IB only issue?
> I used to be convinced that it was happening with visual studio too.
> If this is a IB only problem, we should create a repro case and send it to
> them, they
> are usually really responsive.
> [For some reasons, I thought it was because it was generating the rc files
> and the ID in them were not static. I.e. you add a string in the middle, and
> it's shifting the string IDs of all the strings after the addition. Visual
> Studio does not support that. You can't change string ids in a RC file
> without having the clobber the source. The normal use case is always to take
> the next available ID (which is why the rc file always keep track of the
> next available ID at the bottom).]
> Nicolas
>
> On Thu, Jul 23, 2009 at 5:54 PM, Tony Chang  wrote:
>>
>> Look at how the current gyp hook works.  It looks for changes to .gyp
>> files and only runs if a .gyp (and maybe gypi?) file has changed.
>>
>> You can find what header it generates by opening the grd file and
>> parsing the XML (the XML lists the output files).  You'll need to
>> build the base directory (e.g., Debug/obj/global_intermediate/ and the
>> Release version), I would just check for the Windows versions since we
>> don't seem to have this problem with the mac or linux buildbots.
>>
>>
>>
>> On Thu, Jul 23, 2009 at 5:36 PM, Paweł Hajdan
>> Jr. wrote:
>> > I think that this workaround may be worth it. I'm not familiar with the
>> > IncrediBuild, but I can help making the hook (and we can run it only on
>> > Windows).
>> > How do I make a hook know which grd files changed? And also know which
>> > headers it generates? Alternatively, maybe this Windows-only hook would
>> > just
>> > delete all generated headers (with a hardcoded list)? Generation seems
>> > to be
>> > cheap, and such hook seems trivial to write.
>> > So, yes, this hook is kludgey. But we are aware of its limitations, and
>> > it
>> > would eliminate one kind of build mysteries. What do you think?
>> >
>> > On Thu, Jul 23, 2009 at 17:30, Tony Chang  wrote:
>> >>
>> >> Here's a crappy work around:
>> >> Add a gclient hook that checks for grd file changes.  When a grd file
>> >> changes, force delete the header it would generate.  I'm pretty sure
>> >> this would prevent bad builds from IncrediBuild.
>> >>
>> >> Alternately, maybe we can make a reduced test case and file a bug
>> >> against IncrediBuild.
>> >>
>> >> On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
>> >> Jr. wrote:
>> >> > Is it possible to force it to rebuild some files, or... I don't know,
>> >> > do
>> >> > you
>> >> > see some real way to fix this problem?
>> >> >
>> >> > On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:
>> >> >>
>> >> >> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
>> >> >> use) get confused by changes to our grd files.  Our grd files
>> >> >> generate
>> >> >> headers, which should then cause lots of cc files to get rebuilt.
>> >> >> Visual Studio seems to always get this right, but IncrediBuild gets
>> >> >> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild
>> >> >> is
>> >> >> checking the timestamp of the file before the headers are
>> >> >> re-generated
>> >> >> and doesn't realize it needs to rebuild.
>> >> >>
>> >> >> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting
>> >> >> wrote:
>> >> >> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
>> >> >> > 
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> Some of the flaky failures are caused by resource bundle issues.
>> >> >> >> If
>> >> >> >> you
>> >> >> >> are familiar with the build process, or the resource bundle,
>> >> >> >> please
>> >> >> >> take a
>> >> >> >> look.
>> >> >> >
>> >> >> > It looks like something needed a manual clobber and didn't get it.
>> >> >> > PK
>> >> >> > >> >> >
>> >> >> >
>> >> >
>> >> >
>> >
>> >
>>
>> >>
>
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~---

[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-24 Thread Nicolas Sylvain
Tony, just to make sure, are you certain that this is a IB only issue?
I used to be convinced that it was happening with visual studio too.

If this is a IB only problem, we should create a repro case and send it to
them, they
are usually really responsive.

[For some reasons, I thought it was because it was generating the rc files
and the ID in them were not static. I.e. you add a string in the middle, and
it's shifting the string IDs of all the strings after the addition. Visual
Studio does not support that. You can't change string ids in a RC file
without having the clobber the source. The normal use case is always to take
the next available ID (which is why the rc file always keep track of the
next available ID at the bottom).]

Nicolas

On Thu, Jul 23, 2009 at 5:54 PM, Tony Chang  wrote:

>
> Look at how the current gyp hook works.  It looks for changes to .gyp
> files and only runs if a .gyp (and maybe gypi?) file has changed.
>
> You can find what header it generates by opening the grd file and
> parsing the XML (the XML lists the output files).  You'll need to
> build the base directory (e.g., Debug/obj/global_intermediate/ and the
> Release version), I would just check for the Windows versions since we
> don't seem to have this problem with the mac or linux buildbots.
>
>
>
> On Thu, Jul 23, 2009 at 5:36 PM, Paweł Hajdan
> Jr. wrote:
> > I think that this workaround may be worth it. I'm not familiar with the
> > IncrediBuild, but I can help making the hook (and we can run it only on
> > Windows).
> > How do I make a hook know which grd files changed? And also know which
> > headers it generates? Alternatively, maybe this Windows-only hook would
> just
> > delete all generated headers (with a hardcoded list)? Generation seems to
> be
> > cheap, and such hook seems trivial to write.
> > So, yes, this hook is kludgey. But we are aware of its limitations, and
> it
> > would eliminate one kind of build mysteries. What do you think?
> >
> > On Thu, Jul 23, 2009 at 17:30, Tony Chang  wrote:
> >>
> >> Here's a crappy work around:
> >> Add a gclient hook that checks for grd file changes.  When a grd file
> >> changes, force delete the header it would generate.  I'm pretty sure
> >> this would prevent bad builds from IncrediBuild.
> >>
> >> Alternately, maybe we can make a reduced test case and file a bug
> >> against IncrediBuild.
> >>
> >> On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
> >> Jr. wrote:
> >> > Is it possible to force it to rebuild some files, or... I don't know,
> do
> >> > you
> >> > see some real way to fix this problem?
> >> >
> >> > On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:
> >> >>
> >> >> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
> >> >> use) get confused by changes to our grd files.  Our grd files
> generate
> >> >> headers, which should then cause lots of cc files to get rebuilt.
> >> >> Visual Studio seems to always get this right, but IncrediBuild gets
> >> >> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
> >> >> checking the timestamp of the file before the headers are
> re-generated
> >> >> and doesn't realize it needs to rebuild.
> >> >>
> >> >> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting
> >> >> wrote:
> >> >> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
> >> >> > 
> >> >> > wrote:
> >> >> >>
> >> >> >> Some of the flaky failures are caused by resource bundle issues.
> If
> >> >> >> you
> >> >> >> are familiar with the build process, or the resource bundle,
> please
> >> >> >> take a
> >> >> >> look.
> >> >> >
> >> >> > It looks like something needed a manual clobber and didn't get it.
> >> >> > PK
> >> >> > >> >> >
> >> >> >
> >> >
> >> >
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Tony Chang

Look at how the current gyp hook works.  It looks for changes to .gyp
files and only runs if a .gyp (and maybe gypi?) file has changed.

You can find what header it generates by opening the grd file and
parsing the XML (the XML lists the output files).  You'll need to
build the base directory (e.g., Debug/obj/global_intermediate/ and the
Release version), I would just check for the Windows versions since we
don't seem to have this problem with the mac or linux buildbots.



On Thu, Jul 23, 2009 at 5:36 PM, Paweł Hajdan
Jr. wrote:
> I think that this workaround may be worth it. I'm not familiar with the
> IncrediBuild, but I can help making the hook (and we can run it only on
> Windows).
> How do I make a hook know which grd files changed? And also know which
> headers it generates? Alternatively, maybe this Windows-only hook would just
> delete all generated headers (with a hardcoded list)? Generation seems to be
> cheap, and such hook seems trivial to write.
> So, yes, this hook is kludgey. But we are aware of its limitations, and it
> would eliminate one kind of build mysteries. What do you think?
>
> On Thu, Jul 23, 2009 at 17:30, Tony Chang  wrote:
>>
>> Here's a crappy work around:
>> Add a gclient hook that checks for grd file changes.  When a grd file
>> changes, force delete the header it would generate.  I'm pretty sure
>> this would prevent bad builds from IncrediBuild.
>>
>> Alternately, maybe we can make a reduced test case and file a bug
>> against IncrediBuild.
>>
>> On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
>> Jr. wrote:
>> > Is it possible to force it to rebuild some files, or... I don't know, do
>> > you
>> > see some real way to fix this problem?
>> >
>> > On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:
>> >>
>> >> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
>> >> use) get confused by changes to our grd files.  Our grd files generate
>> >> headers, which should then cause lots of cc files to get rebuilt.
>> >> Visual Studio seems to always get this right, but IncrediBuild gets
>> >> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
>> >> checking the timestamp of the file before the headers are re-generated
>> >> and doesn't realize it needs to rebuild.
>> >>
>> >> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting
>> >> wrote:
>> >> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
>> >> > 
>> >> > wrote:
>> >> >>
>> >> >> Some of the flaky failures are caused by resource bundle issues. If
>> >> >> you
>> >> >> are familiar with the build process, or the resource bundle, please
>> >> >> take a
>> >> >> look.
>> >> >
>> >> > It looks like something needed a manual clobber and didn't get it.
>> >> > PK
>> >> > >> >> >
>> >> >
>> >
>> >
>
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Tony Chang

Here's a crappy work around:
Add a gclient hook that checks for grd file changes.  When a grd file
changes, force delete the header it would generate.  I'm pretty sure
this would prevent bad builds from IncrediBuild.

Alternately, maybe we can make a reduced test case and file a bug
against IncrediBuild.

On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
Jr. wrote:
> Is it possible to force it to rebuild some files, or... I don't know, do you
> see some real way to fix this problem?
>
> On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:
>>
>> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
>> use) get confused by changes to our grd files.  Our grd files generate
>> headers, which should then cause lots of cc files to get rebuilt.
>> Visual Studio seems to always get this right, but IncrediBuild gets
>> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
>> checking the timestamp of the file before the headers are re-generated
>> and doesn't realize it needs to rebuild.
>>
>> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting wrote:
>> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
>> > 
>> > wrote:
>> >>
>> >> Some of the flaky failures are caused by resource bundle issues. If you
>> >> are familiar with the build process, or the resource bundle, please
>> >> take a
>> >> look.
>> >
>> > It looks like something needed a manual clobber and didn't get it.
>> > PK
>> > >> >
>> >
>
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Paweł Hajdan Jr .
I think that this workaround may be worth it. I'm not familiar with the
IncrediBuild, but I can help making the hook (and we can run it only on
Windows).
How do I make a hook know which grd files changed? And also know which
headers it generates? Alternatively, maybe this Windows-only hook would just
delete all generated headers (with a hardcoded list)? Generation seems to be
cheap, and such hook seems trivial to write.

So, yes, this hook is kludgey. But we are aware of its limitations, and it
would eliminate one kind of build mysteries. What do you think?

On Thu, Jul 23, 2009 at 17:30, Tony Chang  wrote:

> Here's a crappy work around:
> Add a gclient hook that checks for grd file changes.  When a grd file
> changes, force delete the header it would generate.  I'm pretty sure
> this would prevent bad builds from IncrediBuild.
>
> Alternately, maybe we can make a reduced test case and file a bug
> against IncrediBuild.
>
> On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
> Jr. wrote:
> > Is it possible to force it to rebuild some files, or... I don't know, do
> you
> > see some real way to fix this problem?
> >
> > On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:
> >>
> >> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
> >> use) get confused by changes to our grd files.  Our grd files generate
> >> headers, which should then cause lots of cc files to get rebuilt.
> >> Visual Studio seems to always get this right, but IncrediBuild gets
> >> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
> >> checking the timestamp of the file before the headers are re-generated
> >> and doesn't realize it needs to rebuild.
> >>
> >> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting
> wrote:
> >> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
> >> > 
> >> > wrote:
> >> >>
> >> >> Some of the flaky failures are caused by resource bundle issues. If
> you
> >> >> are familiar with the build process, or the resource bundle, please
> >> >> take a
> >> >> look.
> >> >
> >> > It looks like something needed a manual clobber and didn't get it.
> >> > PK
> >> > > >> >
> >> >
> >
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Jeremy Orlow
On Thu, Jul 23, 2009 at 5:30 PM, Tony Chang  wrote:

>
> Here's a crappy work around:
> Add a gclient hook that checks for grd file changes.  When a grd file
> changes, force delete the header it would generate.  I'm pretty sure
> this would prevent bad builds from IncrediBuild.
>
> Alternately, maybe we can make a reduced test case and file a bug
> against IncrediBuild.


I think finding and implementing a work-around is the best way to go.  I'm
not an expert on this stuff, but your solution seems like a good one.


>
>
> On Thu, Jul 23, 2009 at 4:44 PM, Paweł Hajdan
> Jr. wrote:
> > Is it possible to force it to rebuild some files, or... I don't know, do
> you
> > see some real way to fix this problem?
> >
> > On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:
> >>
> >> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
> >> use) get confused by changes to our grd files.  Our grd files generate
> >> headers, which should then cause lots of cc files to get rebuilt.
> >> Visual Studio seems to always get this right, but IncrediBuild gets
> >> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
> >> checking the timestamp of the file before the headers are re-generated
> >> and doesn't realize it needs to rebuild.
> >>
> >> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting
> wrote:
> >> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
> >> > 
> >> > wrote:
> >> >>
> >> >> Some of the flaky failures are caused by resource bundle issues. If
> you
> >> >> are familiar with the build process, or the resource bundle, please
> >> >> take a
> >> >> look.
> >> >
> >> > It looks like something needed a manual clobber and didn't get it.
> >> > PK
> >> > >> >
> >> >
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Paweł Hajdan Jr .
Is it possible to force it to rebuild some files, or... I don't know, do you
see some real way to fix this problem?

On Thu, Jul 23, 2009 at 16:41, Tony Chang  wrote:

> To elaborate on Peter's comment.  IncrediBuild (which the buildbots
> use) get confused by changes to our grd files.  Our grd files generate
> headers, which should then cause lots of cc files to get rebuilt.
> Visual Studio seems to always get this right, but IncrediBuild gets
> this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
> checking the timestamp of the file before the headers are re-generated
> and doesn't realize it needs to rebuild.
>
> On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting wrote:
> > On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr. <
> phajdan...@chromium.org>
> > wrote:
> >>
> >> Some of the flaky failures are caused by resource bundle issues. If you
> >> are familiar with the build process, or the resource bundle, please take
> a
> >> look.
> >
> > It looks like something needed a manual clobber and didn't get it.
> > PK
> > > >
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Tony Chang

To elaborate on Peter's comment.  IncrediBuild (which the buildbots
use) get confused by changes to our grd files.  Our grd files generate
headers, which should then cause lots of cc files to get rebuilt.
Visual Studio seems to always get this right, but IncrediBuild gets
this wrong and cc files don't get rebuilt.  I imagine IncrediBuild is
checking the timestamp of the file before the headers are re-generated
and doesn't realize it needs to rebuild.

On Thu, Jul 23, 2009 at 4:38 PM, Peter Kasting wrote:
> On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr. 
> wrote:
>>
>> Some of the flaky failures are caused by resource bundle issues. If you
>> are familiar with the build process, or the resource bundle, please take a
>> look.
>
> It looks like something needed a manual clobber and didn't get it.
> PK
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: fighting the flakiness - resource bundle issues?

2009-07-23 Thread Peter Kasting
On Thu, Jul 23, 2009 at 4:31 PM, Paweł Hajdan Jr.
wrote:

> Some of the flaky failures are caused by resource bundle issues. If you are
> familiar with the build process, or the resource bundle, please take a look.


It looks like something needed a manual clobber and didn't get it.

PK

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---