Closed Bug 659767 Opened 13 years ago Closed 13 years ago

Buildbot: add support to run redux branches in the Main Build (Phase 1 & 2) Builders

Categories

(Tamarin Graveyard :: Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cpeyer, Assigned: cpeyer)

References

Details

Attachments

(6 files, 1 obsolete file)

We currently only run tamarin-redux in the Main Build.  We need to be able to also run redux branches (eg Serrano) through a full buildbot pass.
Flags: flashplayer-triage+
Flags: flashplayer-bug-
hg_buildbot_trigger.py is called by hgbuildbot_trigger.sh which is called using a hg hook.

This patch adds a requirement of also passing in the calling repos url which is prepended to the changefile so that the SandboxClone step (defined in shellAddons.py) can pull the url out.

The name of the changefile is also prepended to the file list so that the SandboxClone step knows which changefile to open.
Assignee: nobody → cpeyer
Status: NEW → ASSIGNED
Attachment #535190 - Flags: review?(brbaker)
Note that I haven't removed the sync_clone step from commonsteps.py yet.  If all goes well we could also remove that code.
Attachment #535191 - Flags: review?(brbaker)
In addition to the changes attached to the bug, we will also have to add the repo url to the hg hook on asteam as the last parameter.

For serrano, the priority should be set to 1, the highest priority (but changes can still be batched).
Attachment #535193 - Flags: review?(brbaker)
Resubmit patch since I forgot to also update deep.
Attachment #535193 - Attachment is obsolete: true
Attachment #535193 - Flags: review?(brbaker)
Attachment #535198 - Flags: review?(brbaker)
changeset: 6351:b5b4f5ce595b
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 659767: add support to run redux branches in the Main Build (Phase 1 & 2) Builders (p=cpeyer, r=brbaker)

http://hg.mozilla.org/tamarin-redux/rev/b5b4f5ce595b
changeset: 6352:2cd215ced7c5
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 659767: couple more tweaks for getting multiple branches working in buildbot  (r=brbaker)

http://hg.mozilla.org/tamarin-redux/rev/2cd215ced7c5
Attachment #535190 - Flags: review?(brbaker) → review+
Attachment #535191 - Flags: review?(brbaker) → review+
Attachment #535198 - Flags: review?(brbaker) → review+
Ability for schedulers to handle multiple branches instead of a single branch.

I needed to pull in the base Scheduler.addChange() so that I could override the branch check.
Attachment #535365 - Flags: review?(cpeyer)
(In reply to comment #9)
> Created attachment 535365 [details] [diff] [review] [review]
> Handle multiple branches
> 
> Ability for schedulers to handle multiple branches instead of a single
> branch.
> 
> I needed to pull in the base Scheduler.addChange() so that I could override
> the branch check.

Chris,

Do you think that we could actually leverage this change so that we could ditch the sandbox.py? We could just add "sandbox" to the branches that the "test" phase scheduler would respond to and not the deep.
Comment on attachment 535365 [details] [diff] [review]
Handle multiple branches

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

Looks good.
Attachment #535365 - Flags: review?(cpeyer) → review+
changeset: 6357:377ba538bec1
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 659767: handle multiple branches in a single scheduler (r=cpeyer)

http://hg.mozilla.org/tamarin-redux/rev/377ba538bec1
Attachment #536523 - Flags: review?(brbaker)
Comment on attachment 536523 [details] [diff] [review]
pass branch/priority info to PhaseOneListener

I also needed to add the priorities info to the PhaseTwoScheduler since it needs to know the priority for the branch so that it can open up the build request file (I added that in with the changeset that I pushed)
Attachment #536523 - Flags: review?(brbaker) → review+
changeset: 6363:4cc7eaabff29
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 659767: pass branch/priority information to the Listeners and also set it on the PhaseTwo scheduler (p=cpeyer, r=brbaker)

http://hg.mozilla.org/tamarin-redux/rev/4cc7eaabff29
Do not submit unimportant changes to the scheduler. When building multiple branches it is possible that there will be an unimportant change submitted from one branch, which will not be built, and then an important change will come in for a different branch. Previously the unimportant change from a different branch would be added as a change to build, but this causes the wrong repo to be synced.
Attachment #536917 - Flags: review?(cpeyer)
Comment on attachment 536917 [details] [diff] [review]
do not submit unimportant changes to the scheduler

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

::: build/buildbot/master/custom/buildbot_ext/scheduler.py
@@ +75,5 @@
>          # clear out our state
>          self.timer = None
>          self.nextBuildTime = None
> +        # Only build changes that are deemed important by self.fileIsImportant
> +       changes = self.importantChanges

I have fixed this indentation locally
Attachment #536917 - Flags: review?(cpeyer) → review+
changeset: 6366:29a2cced7d48
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 659767: do not submit unimportant changes to the scheduler (r=cpeyer)

http://hg.mozilla.org/tamarin-redux/rev/29a2cced7d48
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: