Closed Bug 1206069 Opened 9 years ago Closed 9 years ago

Need a URL for the latest firefox ESR release binary

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

Some context:

Travis recently added a feature where you could specify {"latest", "latest-esr", "latest-beta"} instead of a specific firefox version:
http://docs.travis-ci.com/user/firefox/#latest-aliases

The commit message for that change said:
"Make a curl call and scrape the HTTP directory listing to find the latest version of firefox corresponding to: latest, latest-esr, latest-beta. ... There *may* be an API endpoint to discover them without scraping HTML, but I have not found it"

I've managed to find (with the help of glandium):
https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US
https://download.mozilla.org/?product=firefox-beta-latest&os=linux64&lang=en-US

However I wasn't able to figure out what the latest-esr one was. Ie this doesn't work:
https://download.mozilla.org/?product=firefox-esr-latest&os=linux64&lang=en-US

With the ESR one added, I could say to Travis that they no longer need to scrape HTML and could use those links directly. It would also stop them hitting http://releases.mozilla.org/ - which I presume is preferable since AIUI download.m.o is served via CDN.

Thanks! :-)
And to clarify by "latest" Travis mean "latest released version", not nightlies.
If archive.mozilla.org would also work, you could use 
http://archive.mozilla.org/pub/mozilla.org/firefox/releases/latest-esr/

Otherwise we could announce mozdownload to travis ci.
I can review the patch ;)
(In reply to Henrik Skupin (:whimboo) from comment #3)
> If archive.mozilla.org would also work, you could use 
> http://archive.mozilla.org/pub/mozilla.org/firefox/releases/latest-esr/

The problem is that the filenames are not symlinked to latest, only the directory name, so to programmatically feed into a script that uses wget, you still need to scrape the html to figure out the filename

> Otherwise we could announce mozdownload to travis ci.

Travis is written in ruby and all they want is the latest version. The firefox support file (linked in comment 1) is a total of 70 lines of code, adding a mozdownload ruby port would multiply that by a lot :-)

(In reply to Rail Aliiev [:rail] from comment #4)
> It should be as easy as adding something like

Ah thank you - will create a patch :-)
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Attachment #8662921 - Flags: review?(rail)
Comment on attachment 8662921 [details] [diff] [review]
Add a firefox-esr-latest bouncer alias

Thank you!!!
Attachment #8662921 - Flags: review?(rail) → review+
I created a new product alias (firefox-esr-latest) in bouncer and pointed it to Firefox-38.2.1esr (it works now).

38.3.0esr has been built, but not released yet. Even if we land the patch, it won't affect it, because the configs have been already bumped and tagged. We can either ignore and wait until the next esr build or update the alias manually.
https://hg.mozilla.org/build/buildbot-configs/rev/09d9cb0d1fdd

(In reply to Rail Aliiev [:rail] from comment #9)
> I created a new product alias (firefox-esr-latest) in bouncer and pointed it
> to Firefox-38.2.1esr (it works now).

Thank you :-)

> 38.3.0esr has been built, but not released yet. Even if we land the patch,
> it won't affect it, because the configs have been already bumped and tagged.
> We can either ignore and wait until the next esr build or update the alias
> manually.

I'll see how it goes with timing of a travis PR.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
I updated the alias manually this time, but it should work automatically next time.
Great - thank you :-)
Thanks :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: