Open Bug 1958951 Opened 19 days ago Updated 9 days ago

incomplete response when downloading the zip archive from hg.m.o

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

Production
defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: xmader, Assigned: jcristau)

References

Details

Steps to reproduce:

curl -L https://hg.mozilla.org/mozilla-central/archive/tip.zip -O
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 461M 0 461M 0 0 3617k 0 --:--:-- 0:02:10 --:--:-- 4781k
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

curl -L https://hg.mozilla.org/mozilla-central/archive/tip.zip -O --http1.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 453M 0 453M 0 0 3519k 0 --:--:-- 0:02:11 --:--:-- 4938k
curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding

From my testings on different machines in different locations, the connection consistently ends at around 2min10s.
Would it be an indication that the server has a timeout of about 130s?

Please use hg clone https://hg.mozilla.org/mozilla-central to clone the repo instead of downloading a ZIP off of hg.mo. If you need a ZIP copy of some repo state, you can use hg archive locally to create one.

This may be a side effect of some infra changes on our end.

Thanks for your reply.
I need to download the zip copy of the source code inside of the automated build/installation script of my SpiderMonkey embedding. Users who install my SpiderMonkey embedding are not expected to install hg or clone the whole commit history.
I've looked into other ways of downloading a zip/tarball of the SpiderMonkey source code, but nothing seems to be close to the tip.

(In reply to Tom Tang from comment #3)

Thanks for your reply.
I need to download the zip copy of the source code inside of the automated build/installation script of my SpiderMonkey embedding. Users who install my SpiderMonkey embedding are not expected to install hg or clone the whole commit history.
I've looked into other ways of downloading a zip/tarball of the SpiderMonkey source code, but nothing seems to be close to the tip.

You could try pulling down the source from a pre-built tarball in our archives, like https://ftp.mozilla.org/pub/firefox/releases/137.0/source/firefox-137.0.source.tar.xz

Another option is to run a task that generates the zip/tarball from a source checkout in your CI, upload it somewhere, and point your build scripts at that.

You could also look at using one of the Firefox mirrors on Github to get a tree without a full Mercurial checkout.

This appears to be related to the rollout of network protection around hg.mozilla.org; we've escalated this issue to our service provider as this isn't the expected behaviour.

ps. ty for pythonmonkey; I use it in some personal projects 🙂

See Also: → 1959602
Assignee: nobody → jcristau
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.