Closed Bug 1206041 Opened 9 years ago Closed 9 years ago

Teach release automation that the hosts for upload and download can be different

Categories

(Release Engineering :: Release Automation: Other, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: nthomas)

References

Details

Attachments

(3 files)

We have stage.m.o for both ssh uploads and http(s) downloads, but after moving to S3 we'll have different hosts for each job.
Attached patch [buildbotcustom] v1 (deleted) — Splinter Review
There's several things going on here * the new staging server for upload requires a --bucket-prefix to talk to the right S3 bucket, so we need to pass this around a lot of places (thought this was going to be less, otherwise I'd have asked oremj to fix that) * those are defined in attachment 8651057 [details] [diff] [review], then used in several places * ReleaseBuildFactory gets an ftpServer arg, so that it can download previous releases for partial mar generation (not for long, long live funsize!) * make sure we don't request paths with // in them. Apache ignored that, the new system doesn't (eg oldCandidatesDir) * stop uploading info.txt files in buildN dir for fennec, TODO - adjust the Socorro ftp scraper to cope * stop using hardcoded post_upload commands in the source factory etc * ReleaseUpdatesFactory no longer needs a stagingServer arg, it points at ftpServer for all downloads * pass a new --ftp-server arg to l10n repacks, so they can get the en-US build and old complete mars In the release config we'll have this for staging: releaseConfig['ftpServer'] = 'ftp.stage.mozaws.net' releaseConfig['stagingServer'] = 'upload.ffxbld.productdelivery.stage.mozaws.net'
Attachment #8662896 - Flags: review?(rail)
Attached patch [tools] v1 (deleted) — Splinter Review
* Patcher land: * lots of renaming of stagingServer to ftpServer * more removals of // in request paths * use candidateDir rather than generate it again in many places * dump the ancient and crappy tests * Balrog land: * renaming * we're going to use <app>/candidates/ and drop the symlinks in <app>/nightly that point back there, so drop the mobile hack in _getFileUrls() * L10n land ('tis a mythical place full of dragons): * avoid // some more when getting mar and mbsdiff * add a DOWNLOAD_HOST variable for lightning, since that has yet another way of setting the EN_US url * teach tools code about --bucket-prefix too
Attachment #8662901 - Flags: review?(rail)
Comment on attachment 8662896 [details] [diff] [review] [buildbotcustom] v1 Review of attachment 8662896 [details] [diff] [review]: ----------------------------------------------------------------- lgtm
Attachment #8662896 - Flags: review?(rail) → review+
Comment on attachment 8662901 [details] [diff] [review] [tools] v1 Review of attachment 8662901 [details] [diff] [review]: ----------------------------------------------------------------- ::: release/patcher-config-bump.pl @@ +17,5 @@ > # we disable this for bug 498273 > # my $RELEASE_CANDIDATE_CHANNELS = ['betatest', 'DisableCompleteJump']; > > my %config; > +my @DEFAULT_PLATFORMS = ('linux', 'linux64', 'macosx64', 'win32'); Feel free to add win64 as well
Attachment #8662901 - Flags: review?(rail) → review+
A few staging changes that got lost along the way, and busted the 42.0b5 updates builder with mock_mozilla -r mozilla-centos6-x86_64 --cwd /builds/slave/rel-m-beta-fx_beta_upds-000000/. --unpriv --shell '/usr/bin/env HG_SHARE_BA... perl tools/release/patcher-config-bump.pl -p firefox -r Firefox -v 42.0b5 -a 42.0 -o 42.0b4 -b 1 -c tools/release/patcher-configs/mozBeta-branch-patcher2.cfg -f ftp.mozilla.org -d download.mozilla.org -l shipped-locales --partial-version 42.0b4 --partial-version 42.0b2 --partial-version 42.0b3 --platform linux --platform linux64 --platform macosx64 --platform win32 --platform win64' in dir /builds/slave/rel-m-beta-fx_beta_upds-000000/. (timeout 1200 secs) INFO: mock_mozilla.py version 1.0.3 starting... State Changed: init plugins INFO: selinux disabled State Changed: start State Changed: lock buildroot State Changed: shell Global symbol "$stagingServer" requires explicit package name at tools/release/patcher-config-bump.pl line 307. Global symbol "$stagingServer" requires explicit package name at tools/release/patcher-config-bump.pl line 368. Execution of tools/release/patcher-config-bump.pl aborted due to compilation errors. State Changed: unlock buildroot Landed this fix https://hg.mozilla.org/build/tools/rev/131d55ea931d And this for the review comment about win64 I missed, https://hg.mozilla.org/build/tools/rev/1e67d3d9c321
Attachment #8671767 - Flags: review?(rail) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: