Closed Bug 1203596 Opened 9 years ago Closed 9 years ago

Remove userconfig file from shared B2G cache

Categories

(Taskcluster :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla43

People

(Reporter: wcosta, Assigned: wcosta)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
If we keep the userconfig file inside B2G shared cache, it may cause
build bustage in other branches. As we don't what build steps are set up
in the config files, we safely add and remove the .userconfig file at
each call to build.sh.
Comment on attachment 8659474 [details] [diff] [review]
Remove .userconfig after run build.sh. r=jlund,garndt

https://treeherder.allizom.org/#/jobs?repo=try&revision=d0d4f745044c
Attachment #8659474 - Flags: review?(jlund)
Attachment #8659474 - Flags: review?(garndt)
Comment on attachment 8659474 [details] [diff] [review]
Remove .userconfig after run build.sh. r=jlund,garndt

remove r?.  Spoke to wcosta on IRC about this.  At a high level I like what this will do, but trust others with reviewing the mozharness changes.  Not sure what else this might affect.
Attachment #8659474 - Flags: review?(garndt)
Comment on attachment 8659474 [details] [diff] [review]
Remove .userconfig after run build.sh. r=jlund,garndt

Review of attachment 8659474 [details] [diff] [review]:
-----------------------------------------------------------------

neat! while I like the use of context/with statement, we might be able to leverage a mh builtin to simplify this. Mozharness has listener methods that can hook on to certain places within a script run.

Specifically: PostScriptRun[1]

You can see an example of that being used here[2].

So in this case, you could probably shrink this patch to a couple lines. Something like:
    @PostScriptRun
    def _remove_userconfig(self):
        os.remove(userconfig_path)

I'm not very familiar with b2g_build.py. I'm assuming this userconfig .file be created (if not present) at the time we need it on the next task run?

r- for now, but if you don't think my idea is better or doable, let's have a chat and see if this patch is the only option :)

[1] https://dxr.mozilla.org/mozilla-central/source/testing/mozharness/mozharness/base/script.py#1361
[2] https://dxr.mozilla.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/building/buildbase.py#1976
Attachment #8659474 - Flags: review?(jlund) → review-
If we keep the userconfig file inside B2G shared cache, it may
cause build bustage in other branches.
Attachment #8659474 - Attachment is obsolete: true
Comment on attachment 8660096 [details] [diff] [review]
Remove .userconfig after run build.sh. r=jlund

https://treeherder.allizom.org/#/jobs?repo=try&revision=734b04ffa7e6
Attachment #8660096 - Flags: review?(jlund)
Comment on attachment 8660096 [details] [diff] [review]
Remove .userconfig after run build.sh. r=jlund

Review of attachment 8660096 [details] [diff] [review]:
-----------------------------------------------------------------

I assume the orange is unrelated?
Attachment #8660096 - Flags: review?(jlund) → review+
(In reply to Jordan Lund (:jlund) from comment #7)
> Comment on attachment 8660096 [details] [diff] [review]
> Remove .userconfig after run build.sh. r=jlund
> 
> Review of attachment 8660096 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I assume the orange is unrelated?

orange?
(In reply to Jordan Lund (:jlund) from comment #7)
> Comment on attachment 8660096 [details] [diff] [review]
> Remove .userconfig after run build.sh. r=jlund
> 
> Review of attachment 8660096 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I assume the orange is unrelated?

the orange jobs (non green letters):
https://treeherder.allizom.org/#/jobs?repo=try&revision=734b04ffa7e6
(In reply to Jordan Lund (:jlund) from comment #9)
> (In reply to Jordan Lund (:jlund) from comment #7)
> > Comment on attachment 8660096 [details] [diff] [review]
> > Remove .userconfig after run build.sh. r=jlund
> > 
> > Review of attachment 8660096 [details] [diff] [review]:
> > -----------------------------------------------------------------
> > 
> > I assume the orange is unrelated?
> 
> the orange jobs (non green letters):
> https://treeherder.allizom.org/#/jobs?repo=try&revision=734b04ffa7e6

Oh, yeah, they are unrelated.
https://hg.mozilla.org/mozilla-central/rev/d39277479422
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: