Closed Bug 815784 Opened 12 years ago Closed 12 years ago

Dated nightly directories for b2g builds

Categories

(Release Engineering :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

Details

(Whiteboard: [b2g])

Attachments

(3 files, 1 obsolete file)

Nightly unagi/otoro builds should be uploaded into directories like /pub/mozilla.org/b2g/mozilla-beta/2012-11-27
How about /pub/mozilla.org/b2g/nightly/mozilla-beta/2012/11/2012-11-27-hh-mm with a symlink from mozilla-beta/latest/ to the right mozilla-beta/YYYY/MM/YYYY-MM-DD-hh-mm ? That'd keep things browsable via http over the long term and while the most recent is easily reached.
Attached patch Upload to dated dirs (obsolete) — Splinter Review
Attachment #688319 - Flags: review?(nthomas)
Assignee: nobody → catlee
Comment on attachment 688319 [details] [diff] [review] Upload to dated dirs >+ # First delete the symlink if it exists >+ cmd = [ssh, >+ '-l', self.config['ssh_user'], >+ '-i', self.config['ssh_key'], >+ self.config['upload_remote_host'], >+ 'rm -f %s' % symlink_path, >+ ] I think this isn't needed for an existing symlink, since ln -sf will happily rewrite one. So perhaps just update the commment to say 'First delete an existing directory ...' instead.
Attachment #688319 - Flags: review?(nthomas) → review+
un-bitrot, and remove the unnecessary removal of symlink
Attachment #688319 - Attachment is obsolete: true
Attachment #688762 - Flags: review?(rail)
Comment on attachment 688762 [details] [diff] [review] Upload to dated dirs lgtm
Attachment #688762 - Flags: review?(rail) → review+
Attachment #688762 - Flags: checked-in+
Attached patch beta configsSplinter Review
the same config changes for other files
Attachment #688853 - Flags: review?(catlee)
Attachment #688853 - Flags: review?(catlee) → review+
It turns out we do need to delete the symlink first, otherwise we end up with links like 2012-12-04-16-09-52 -> 2012/12/2012-12-04-16-09-52 inside the existing latest/ directory.
Attachment #688861 - Flags: review?(rail)
Attachment #688861 - Flags: review?(rail) → review+
Attachment #688861 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: