Commit Graph
392 Commits
Author SHA1 Message Date
Dipen Patel fbf2d8d5d9 Bug 1468222 Consolidate nsISSLStatus info nsITransportSecurityInfo r=Gijs,snorp,jcj,mcmanus,sfraser,keeler,baku,ato
Move all fields of nsISSLStatus to nsITransportSecurityProvider
Remove nsISSLStatus interface and definition
Update all code and test references to nsISSLStatus
Maintain ability to read in older version of serialized nsISSLStatus.  This
is verified with psm_DeserializeCert gtest.

Differential Revision: https://phabricator.services.mozilla.com/D3704
2018-09-11 00:07:30 +00:00
Tom Prince eef7cc550e Bug 1490051: Remove unused partial recompression support; r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D5445
2018-09-10 17:30:42 +00:00
ffxbld 53f198a2bd No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D5403
2018-09-10 11:07:09 +00:00
Connor Sheehan a196cdf158 Bug 1480228: install Mercurial 4.7.1 in Non-Debian Linux Docker images r=gps
Bumping the Mercurial version to 4.7.1 to apply a fix for a
performance regression introduced in 4.7.

Differential Revision: https://phabricator.services.mozilla.com/D5193
2018-09-07 10:29:00 -07:00
ffxbld acb2ad0cbd No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D4844
2018-09-04 16:45:07 +00:00
Coroiu Cristina 9396e3b0da Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
Mark Banner 462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Dave Townsend b9bdbeacdf Bug 1487246: Enable the eslint no-sequences rule. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D4681
2018-08-29 16:15:33 -07:00
David Keeler 0244f4df32 Bug 1479918 - Batch requests in getHSTSPreloadList.js to avoid livelock. r=sfraser
Prior to this patch, getHSTSPreloadList.js would queue an XHR for every preload
list candidate site. This meant that there would be ~50,000 requests in flight
simultaneously. Simply processing these requests caused them to all time out,
and no useful work was done. This patch resolves them in batches of 250 to
avoid this issue.

Differential Revision: https://phabricator.services.mozilla.com/D3622
2018-08-29 12:04:16 +00:00
Andreea Pavel 7bc05d2923 Backed out changeset e0f0d5824dd8 (bug 1479918) for eslint failure on a CLOSED TREE 2018-08-29 16:12:24 +03:00
David Keeler eb0ee32df2 bug 1479918 - batch requests in getHSTSPreloadList.js to avoid livelock r=sfraser
Prior to this patch, getHSTSPreloadList.js would queue an XHR for every preload
list candidate site. This meant that there would be ~50,000 requests in flight
simultaneously. Simply processing these requests caused them to all time out,
and no useful work was done. This patch resolves them in batches of 250 to
avoid this issue.

Differential Revision: https://phabricator.services.mozilla.com/D3622
2018-08-29 12:04:16 +00:00
ffxbld b614feb398 No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D4320
2018-08-27 16:49:15 +00:00
Kris Maglione 13ae6be7e7 Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733
2018-08-18 18:13:14 -07:00
ffxbld c94867c524 No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D3768
2018-08-20 11:00:53 +00:00
David Keeler 145a3830fe bug 1479918 - fix HSTS update script to only access XHR headers after each request has completed r=sfraser
When the HSTS preload script was reworked to use async/await in bug 1436369,
`fetchstatus` would create an asynchronous xml http request and then attempt to
access a response header from it. However, there was nothing to ensure that the
request had completed before this code ran. This patch ensures that the request
has completed before the response header is used.

This patch also replaces a lingering instance of `Ci.nsISSLStatusProvider` that
should have been changed to `Ci.nsITransportSecurityInfo` in bug 1475647.

Finally, this patch removes the old, redundant getHSTSPreloadList.js in
security/manager/tools as well as the unused nsSTSPreloadList.errors file in
security/manager/ssl.

Differential Revision: https://phabricator.services.mozilla.com/D2807
2018-08-13 20:25:21 +00:00
ffxbld 6ed38d65d6 No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D3194
2018-08-13 10:08:49 +00:00
ffxbld a536ec5584 No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D2772
2018-08-07 12:50:52 +00:00
Connor Sheehan 4bf50ff087 Bug 1446453 - install Mercurial 4.7 in Non-Debian Linux Docker images; r=gps
This commit points the `install_mercurial.sh` script at the
newest Mercurial distributions uploaded to tooltool.

Differential Revision: https://phabricator.services.mozilla.com/D2626
2018-08-02 11:57:23 -07:00
Simon Fraser 331fcd34e2 Bug 733530 Use tar instead of unzip in periodic updates r=catlee
Replace 'unzip -q' with 'tar -xvf' for tests .tar.gz

Differential Revision: https://phabricator.services.mozilla.com/D1939
2018-07-23 20:46:32 +00:00
Chris AtLee 2873f87ade Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-08-01 16:00:03 +00:00
ffxbld 604e324edf No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D2511
2018-07-30 13:57:00 +00:00
Robert Bartlensky c07d6695d9 Bug 1479401: Include lib directory into the infer tar, and change maintainer. r=andi
MozReview-Commit-ID: Ibyw9SCMVVB
2018-07-30 12:45:02 +01:00
Robert Bartlensky f6393eaf57 Bug 1473951: Add infer to taskcluster and build. r=gps
MozReview-Commit-ID: BHi3E6J3nuH
2018-07-06 17:37:16 +01:00
Csoregi Natalia 0ed39a20fa Merge inbound to mozilla-central. a=merge 2018-07-27 00:58:11 +03:00
Andrew Halberstadt b8b6b5e2c2 Bug 1468812 - [ci] Support MOZ_FETCHES and fetch-content in run-task r=gps
This removes the 'use-artifacts' mechanism in favour of fetches. There are a
few pieces here that need to land atomically:

1. Remove use-artifact related code
2. Call 'fetch-content' from the run-task script
3. Convert existing tasks on top of fetches (jsshell, python unittest)
4. Stop calling 'fetch-content' from toolchain setup tasks (as this now gets handled in run-task)

Depends on D2166.

Differential Revision: https://phabricator.services.mozilla.com/D2167
2018-07-26 17:13:39 +00:00
Ben Hearsum 8347cd988c bug 1477021: run funsize with 'pipenv run'. r=sfraser 2018-07-26 09:59:03 -04:00
Ben Hearsum b4a6fb1515 bug 1477021: create a docker image that can update Pipfile.lock, and attach diffs to phabricator. r=sfraser 2018-07-26 08:54:45 -04:00
Ben Hearsum 70ded45668 bug 1477021: switch funsize-update-generator to a Pipfile. r=sfraser 2018-07-26 08:19:29 -04:00
Simon Fraser 322cd0ea39 Bug 1473276 'which' is non-standard, use 'command -v' in partials r=mtabara
This will start to cause an error when a newer shellcheck is available in CI

Differential Revision: https://phabricator.services.mozilla.com/D1940
2018-07-04 11:33:13 +00:00
Bogdan Tara 8245a830c3 Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee 49625724f4 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-07-03 18:33:02 +00:00
Mike Hommey cc431e41f5 Bug 1471103 - Add a few useful packages to the base Debian docker images. r=froydnj 2018-06-26 10:59:34 +09:00
Simon Fraser 35c0f29d29 Bug 1468770 Update author for repo-update commits r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D1753
2018-06-21 15:47:24 +00:00
Simon Fraser 5b28a451b5 Bug 1468770 repo-update submitter and commit msg r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D1700
2018-06-19 13:01:54 +00:00
Simon Fraser 0f1006995a Bug 1468386 Clean up unused funsize-balrog-submitter image r=mtabara
Reviewers: mtabara

Reviewed By: mtabara

Subscribers: sfraser, mtabara

Bug #: 1468386

Differential Revision: https://phabricator.services.mozilla.com/D1648
2018-06-15 08:29:54 -07:00
Narcis Beleuzu 2478854196 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-14 00:58:55 +03:00
Simon Fraser f972c8d19d Bug 1468423 Change to greedy match to fix version parsing r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D1639
2018-06-13 03:38:16 +00:00
Ben Hearsum f4a11d7fc5 bug 1458329: update funsize update generator deps. r=sfraser 2018-06-13 15:53:46 -04:00
Ben Hearsum 0c02f8deaa bug 1455061: upgrade update verify and funsize update generator docker images to newer ubuntu to get latest python. r=sfraser 2018-06-08 09:08:32 -04:00
Simon Fraser f63613ac09 Bug 1467456 Use correct hg repo in repo-update r=lguo
1. Updated hgrepo to work with mozilla-beta, mozilla-esr60 and project branches (just in case)
2. Presquashed commits, so we only submit one.
3. Replaced 'which' with 'command -v' to avoid future shellcheck issues.

Differential Revision: https://phabricator.services.mozilla.com/D1582
2018-06-07 17:55:50 +00:00
Gregory Szorc 3697053827 Bug 1460777 - Taskgraph tasks for retrieving remote content; r=dustin, glandium
Currently, many tasks fetch content from the Internets. A problem with
that is fetching from the Internets is unreliable: servers may have
outages or be slow; content may disappear or change out from under us.

The unreliability of 3rd party services poses a risk to Firefox CI.
If services aren't available, we could potentially not run some CI tasks.
In the worst case, we might not be able to release Firefox. That would
be bad. In fact, as I write this, gmplib.org has been unavailable for
~24 hours and Firefox CI is unable to retrieve the GMP source code.
As a result, building GCC toolchains is failing.

A solution to this is to make tasks more hermetic by depending on
fewer network services (which by definition aren't reliable over time
and therefore introduce instability).

This commit attempts to mitigate some external service dependencies
by introducing the *fetch* task kind.

The primary goal of the *fetch* kind is to obtain remote content and
re-expose it as a task artifact. By making external content available
as a cached task artifact, we allow dependent tasks to consume this
content without touching the service originally providing that
content, thus eliminating a run-time dependency and making tasks more
hermetic and reproducible over time.

We introduce a single "fetch-url" "using" flavor to define tasks that
fetch single URLs and then re-expose that URL as an artifact. Powering
this is a new, minimal "fetch" Docker image that contains a
"fetch-content" Python script that does the work for us.

We have added tasks to fetch source archives used to build the GCC
toolchains.

Fetching remote content and re-exposing it as an artifact is not
very useful by itself: the value is in having tasks use those
artifacts.

We introduce a taskgraph transform that allows tasks to define an
array of "fetches." Each entry corresponds to the name of a "fetch"
task kind. When present, the corresponding "fetch" task is added as a
dependency. And the task ID and artifact path from that "fetch" task
is added to the MOZ_FETCHES environment variable of the task depending
on it. Our "fetch-content" script has a "task-artifacts"
sub-command that tasks can execute to perform retrieval of all
artifacts listed in MOZ_FETCHES.

To prove all of this works, the code for fetching dependencies when
building GCC toolchains has been updated to use `fetch-content`. The
now-unused legacy code has been deleted.

This commit improves the reliability and efficiency of GCC toolchain
tasks. Dependencies now all come from task artifacts and should always
be available in the common case. In addition, `fetch-content` downloads
and extracts files concurrently. This makes it faster than the serial
application which we were previously using.

There are some things I don't like about this commit.

First, a new Docker image and Python script for downloading URLs feels
a bit heavyweight. The Docker image is definitely overkill as things
stand. I can eventually justify it because I want to implement support
for fetching and repackaging VCS repositories and for caching Debian
packages. These will require more packages than what I'm comfortable
installing on the base Debian image, therefore justifying a dedicated
image.

The `fetch-content static-url` sub-command could definitely be
implemented as a shell script. But Python is readily available and
is more pleasant to maintain than shell, so I wrote it in Python.

`fetch-content task-artifacts` is more advanced and writing it in
Python is more justified, IMO. FWIW, the script is Python 3 only,
which conveniently gives us access to `concurrent.futures`, which
facilitates concurrent download.

`fetch-content` also duplicates functionality found elsewhere.
generic-worker's task payload supports a "mounts" feature which
facilitates downloading remote content, including from a task
artifact. However, this feature doesn't exist on docker-worker.
So we have to implement downloading inside the task rather than
at the worker level. I concede that if all workers had generic-worker's
"mounts" feature and supported concurrent download, `fetch-content`
wouldn't need to exist.

`fetch-content` also duplicates functionality of
`mach artifact toolchain`. I probably could have used
`mach artifact toolchain` instead of writing
`fetch-content task-artifacts`. However, I didn't want to introduce
the requirement of a VCS checkout. `mach artifact toolchain` has its
origins in providing a feature to the build system. And "fetching
artifacts from tasks" is a more generic feature than that. I think
it should be implemented as a generic feature and not something that is
"toolchain" specific.

I think the best place for a generic "fetch content" feature is in
the worker, where content can be defined in the task payload. But as
explained above, that feature isn't universally available. The next
best place is probably run-task. run-task already performs generic,
very-early task preparation steps, such as performing a VCS checkout.
I would like to fold `fetch-content` into run-task and make it all
driven by environment variables. But run-task is currently Python 2
and achieving concurrency would involve a bit of programming (or
adding package dependencies). I may very well port run-task to Python
3 and then fold fetch-content into it. Or maybe we leave
`fetch-content` as a standalone script.

MozReview-Commit-ID: AGuTcwNcNJR
2018-06-06 14:37:49 -07:00
Gurzau Raul e787324b17 Backed out 2 changesets (bug 1460777) for Toolchains failure on a CLOSED TREE
Backed out changeset 52ef9348401d (bug 1460777)
Backed out changeset 60ed097650b8 (bug 1460777)
2018-06-06 20:57:29 +03:00
Gregory Szorc c9ef9aa239 Bug 1460777 - Taskgraph tasks for retrieving remote content; r=dustin,glandium
Currently, many tasks fetch content from the Internets. A problem with
that is fetching from the Internets is unreliable: servers may have
outages or be slow; content may disappear or change out from under us.

The unreliability of 3rd party services poses a risk to Firefox CI.
If services aren't available, we could potentially not run some CI tasks.
In the worst case, we might not be able to release Firefox. That would
be bad. In fact, as I write this, gmplib.org has been unavailable for
~24 hours and Firefox CI is unable to retrieve the GMP source code.
As a result, building GCC toolchains is failing.

A solution to this is to make tasks more hermetic by depending on
fewer network services (which by definition aren't reliable over time
and therefore introduce instability).

This commit attempts to mitigate some external service dependencies
by introducing the *fetch* task kind.

The primary goal of the *fetch* kind is to obtain remote content and
re-expose it as a task artifact. By making external content available
as a cached task artifact, we allow dependent tasks to consume this
content without touching the service originally providing that
content, thus eliminating a run-time dependency and making tasks more
hermetic and reproducible over time.

We introduce a single "fetch-url" "using" flavor to define tasks that
fetch single URLs and then re-expose that URL as an artifact. Powering
this is a new, minimal "fetch" Docker image that contains a
"fetch-content" Python script that does the work for us.

We have added tasks to fetch source archives used to build the GCC
toolchains.

Fetching remote content and re-exposing it as an artifact is not
very useful by itself: the value is in having tasks use those
artifacts.

We introduce a taskgraph transform that allows tasks to define an
array of "fetches." Each entry corresponds to the name of a "fetch"
task kind. When present, the corresponding "fetch" task is added as a
dependency. And the task ID and artifact path from that "fetch" task
is added to the MOZ_FETCHES environment variable of the task depending
on it. Our "fetch-content" script has a "task-artifacts"
sub-command that tasks can execute to perform retrieval of all
artifacts listed in MOZ_FETCHES.

To prove all of this works, the code for fetching dependencies when
building GCC toolchains has been updated to use `fetch-content`. The
now-unused legacy code has been deleted.

This commit improves the reliability and efficiency of GCC toolchain
tasks. Dependencies now all come from task artifacts and should always
be available in the common case. In addition, `fetch-content` downloads
and extracts files concurrently. This makes it faster than the serial
application which we were previously using.

There are some things I don't like about this commit.

First, a new Docker image and Python script for downloading URLs feels
a bit heavyweight. The Docker image is definitely overkill as things
stand. I can eventually justify it because I want to implement support
for fetching and repackaging VCS repositories and for caching Debian
packages. These will require more packages than what I'm comfortable
installing on the base Debian image, therefore justifying a dedicated
image.

The `fetch-content static-url` sub-command could definitely be
implemented as a shell script. But Python is readily available and
is more pleasant to maintain than shell, so I wrote it in Python.

`fetch-content task-artifacts` is more advanced and writing it in
Python is more justified, IMO. FWIW, the script is Python 3 only,
which conveniently gives us access to `concurrent.futures`, which
facilitates concurrent download.

`fetch-content` also duplicates functionality found elsewhere.
generic-worker's task payload supports a "mounts" feature which
facilitates downloading remote content, including from a task
artifact. However, this feature doesn't exist on docker-worker.
So we have to implement downloading inside the task rather than
at the worker level. I concede that if all workers had generic-worker's
"mounts" feature and supported concurrent download, `fetch-content`
wouldn't need to exist.

`fetch-content` also duplicates functionality of
`mach artifact toolchain`. I probably could have used
`mach artifact toolchain` instead of writing
`fetch-content task-artifacts`. However, I didn't want to introduce
the requirement of a VCS checkout. `mach artifact toolchain` has its
origins in providing a feature to the build system. And "fetching
artifacts from tasks" is a more generic feature than that. I think
it should be implemented as a generic feature and not something that is
"toolchain" specific.

I think the best place for a generic "fetch content" feature is in
the worker, where content can be defined in the task payload. But as
explained above, that feature isn't universally available. The next
best place is probably run-task. run-task already performs generic,
very-early task preparation steps, such as performing a VCS checkout.
I would like to fold `fetch-content` into run-task and make it all
driven by environment variables. But run-task is currently Python 2
and achieving concurrency would involve a bit of programming (or
adding package dependencies). I may very well port run-task to Python
3 and then fold fetch-content into it. Or maybe we leave
`fetch-content` as a standalone script.

MozReview-Commit-ID: AGuTcwNcNJR
2018-06-06 09:37:38 -07:00
Gregory Szorc f427debf5b Bug 1466746 - Install python-zstandard in debian-base; r=glandium
Let's install python-zstandard for both Python 2 and Python 3 in
all our Debian-based images so it is readily available for use.

MozReview-Commit-ID: 1L8zDc5MYXA
2018-06-04 23:21:19 -07:00
Csoregi Natalia 6e1ac76332 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-02 01:05:17 +03:00
Tom Prince 35099b7dd8 No bug: [release] Remove lint leftovers in update-verify docker image; r=bhearsum
Remove some leftover packages from when update-verify docker image was copied
from the lint docker image.

Differential Revision: https://phabricator.services.mozilla.com/D1485
2018-06-01 15:20:48 +00:00
Chris AtLee 1b7a87253f Bug 1237182: get rid of oauth.txt r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D1444
2018-05-25 17:43:15 -04:00
Chris AtLee 841d546d18 Bug 1237182: Get rid of buildprops.json r=tomprince,sfraser
Differential Revision: https://phabricator.services.mozilla.com/D1443
2018-05-25 17:35:43 -04:00
Simon Fraser 8160372aa6 Bug 1452927 Improve logging and retries for partials r=mtabara
Summary:
Attempt to get more information about download timeouts, and
also retry the partial generation if download timeouts happen too often.

Reviewers: mtabara

Reviewed By: mtabara

Bug #: 1452927

Differential Revision: https://phabricator.services.mozilla.com/D1467
2018-05-30 15:34:36 +02:00
Mathieu Leplatre 466052e67f Bug 1465254 - Fix copy error in periodic updates task r=sfraser
MozReview-Commit-ID: 8YXHlZylBQG
2018-05-30 00:36:27 +02:00