Closed Bug 452472 Opened 16 years ago Closed 16 years ago

write a BuildFactory containing all the necessary steps to create and upload a source tarball and hg bundle for mercurial based releases

Categories

(Release Engineering :: General, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: bhearsum)

References

Details

(Whiteboard: [hg-automation])

Attachments

(3 files, 2 obsolete files)

Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [hg-automation]
Priority: P3 → P2
Attached patch source factory, minus uploading (obsolete) — Splinter Review
Not much of note here other than the refactoring. The repoName/pushRepo logic is going to be needed elsewhere, so I factored it into a base class for the rest of the factories to inherit from. As for the Source factory itself, it's a pretty simple series of ShellCommands, taken from the 3.1a1 + a2 build notes. Notably, there is no uploading yet - I'm awaiting Ted's 'upload' Makefile target before I do that.
Attachment #336899 - Flags: review?(ccooper)
Could you make this support https while you're factoring it ? + def getPushRepo(repo): + if repo.startswith('http'): + return repo.replace('http', 'ssh') + else: + return repo
Attachment #336899 - Attachment is obsolete: true
Attachment #337665 - Flags: review?(ccooper)
Attachment #336899 - Flags: review?(ccooper)
Attachment #337665 - Flags: review?(ccooper) → review+
Comment on attachment 337665 [details] [diff] [review] [checked in] same as before, support http + https properly Checking in factory.py; /cvsroot/mozilla/tools/buildbotcustom/process/factory.py,v <-- factory.py new revision: 1.14; previous revision: 1.13 done
Attachment #337665 - Attachment description: same as before, support http + https properly → [checked in] same as before, support http + https properly
Depends on: 454594
Whiteboard: [hg-automation] → [hg-automation][waiting on dep bug]
Priority: P2 → P3
FYI, I just filed bug 456373 to move source tarball generation into a makefile target.
Whiteboard: [hg-automation][waiting on dep bug] → [hg-automation]
Attachment #354701 - Flags: review?(ccooper)
Attachment #354702 - Flags: review?(ccooper)
Comment on attachment 354701 [details] [diff] [review] upload the source packages automatically > self.addStep(ShellCommand, >+ command=['mkdir', 'source'], >+ workdir='.', >+ haltOnFailure=True >+ ) We should probably insulate ourselves from failure here by adding a ShellCommand before this to rm an existing source/ dir. r+ with that change.
Attachment #354701 - Flags: review?(ccooper) → review+
Attachment #354702 - Flags: review?(ccooper) → review+
Comment on attachment 354702 [details] [diff] [review] master-side patch changeset: 619:a5fbe3a19136
Attachment #354702 - Flags: checked‑in+
Checking in process/factory.py; /cvsroot/mozilla/tools/buildbotcustom/process/factory.py,v <-- factory.py new revision: 1.66; previous revision: 1.65 done
Attachment #354701 - Attachment is obsolete: true
Attachment #354710 - Flags: checked‑in+
All done here now.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
would have been a good idea to use "make source-package" here.
Yes, I intend to make that change at some point. Unfortunately, it did not exist when I first wrote this code.
Product: mozilla.org → Release Engineering
Blocks: 1429603
QA Contact: jlorenzo
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: