Граф коммитов

96 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown ae5e32a41c Bug 1586262 - Ensure run-task logs very long task output lines; r=dustin
Check the return code of write() to determine if the output line has actually been written completely; if not, write the remainder.

Tests suggest that incomplete writes are possible when the buffer exceeds a few thousand bytes. Very long log lines are unusual but this is important for cases like reftest failures where an encoded screenshot is dumped to the log.

Differential Revision: https://phabricator.services.mozilla.com/D48218

--HG--
extra : moz-landing-system : lando
2019-10-16 15:56:09 +00:00
Mike Hommey f56829593a Bug 1573375 - Normalize paths run-task sets in the environment on Windows. r=tomprince
Using forward slash for better support in shell scripts.

Differential Revision: https://phabricator.services.mozilla.com/D41707
2019-08-15 11:21:41 +09:00
Mike Hommey 94532ae09f Bug 1573375 - Wrap fetch-content output in run-task. r=tomprince
Like the output from other subcommands.

Differential Revision: https://phabricator.services.mozilla.com/D41706
2019-08-15 11:21:40 +09:00
Tom Prince f5366339ef Bug 1570054: Specify `UPLOAD_DIR` explicitly in taskgraph for docker-worker built toolchains; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D39903
2019-08-02 19:05:56 +09:00
Tom Prince a09d72c850 Bug 1565725: Add an option to run-task to change the current directory for the command; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D39599
2019-08-02 19:05:55 +09:00
Mike Hommey 633f41e4b0 Bug 1568460 - Set MOZ_FETCHES_DIR more appropriately. r=tomprince
For some tasks, the workdir known to the decision task doesn't actually match
the workdir used in the task, which makes MOZ_FETCHES_DIR wrong when the
decision task derives it from the workdir.

On other tasks, MOZ_FETCHES_DIR is set to a relative directory, which
may work in some places where MOZ_FETCHES_DIR is used, but not in
others, that happen to be executed from a different directory.

To solve both problems, we set MOZ_FETCHES_DIR as a relative directory
everywhere, and we make run-task normalize it to an absolute path
before executing the task.

Differential Revision: https://phabricator.services.mozilla.com/D39152

--HG--
extra : moz-landing-system : lando
2019-07-29 20:48:40 +00:00
shindli 1c380bd4ec Backed out changeset a2c0bed45b89 (bug 1568460) for causing spidermonkey failures "[Errno 2] No such file or directory" 2019-07-29 04:51:41 +03:00
Mike Hommey 54a61a549b Bug 1568460 - Set MOZ_FETCHES_DIR more appropriately. r=tomprince
For some tasks, the workdir known to the decision task doesn't actually match
the workdir used in the task, which makes MOZ_FETCHES_DIR wrong when the
decision task derives it from the workdir.

On other tasks, MOZ_FETCHES_DIR is set to a relative directory, which
may work in some places where MOZ_FETCHES_DIR is used, but not in
others, that happen to be executed from a different directory.

To solve both problems, we set MOZ_FETCHES_DIR as a relative directory
everywhere, and we make run-task normalize it to an absolute path
before executing the task.

Differential Revision: https://phabricator.services.mozilla.com/D39152

--HG--
extra : moz-landing-system : lando
2019-07-28 22:05:42 +00:00
Joel Maher ec5f3f9ae1 Bug 1551957 - Allow for osx 10.14 in CI for source tasks. r=ahal
Allow for osx 10.14 in CI for source tasks.

Differential Revision: https://phabricator.services.mozilla.com/D31297

--HG--
extra : moz-landing-system : lando
2019-05-15 21:04:57 +00:00
Mike Hommey ca39c407dd Bug 1545368 - Support fetches in run-task on generic-worker. r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D28048

--HG--
extra : moz-landing-system : lando
2019-04-27 21:56:47 +00:00
Mike Hommey 33a06d6450 Bug 1545344 - Don't change current directory when executing a command via run-task. r=tomprince
Currently, all things running via run-task don't really care that the
current directory is set to /. However, on generic-worker, many things
assume the current directory is the task directory, which varies by
task, and wrapping them with run-task fails because it resets the
current directory.

Differential Revision: https://phabricator.services.mozilla.com/D28018

--HG--
extra : moz-landing-system : lando
2019-04-27 21:51:53 +00:00
Mike Hommey 25920280d9 Bug 1544986 - Fall back more gracefully when TASKCLUSTER_WORKER_GROUP is not set. r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D27841

--HG--
extra : moz-landing-system : lando
2019-04-23 21:27:50 +00:00
Connor Sheehan a8c491e89c Bug 1534463: patch `run-task` to clone from private hgweb mirrors r=tomprince
With tasks able to access the hgmointernal config from a Taskcluster
secret, we can now add functionality to `run-task` to support checking
out from the private hg service. Here we add add a `resolve_checkout_url`
function which takes the base/head repository URLs and determines
whether we should clone from the public or private service, returning
the resolved URL. The function pulls down the secret and checks that
the region the task is executing in is in the set of supported regions.
Then we generate a random number and default to the public service if
the number is lower than our "rate". If all the above conditions are
met, we replace `hg.mozilla.org` with the resolved domain name for the
given region.

We add a call to this function to `collect_vcs_options`, and skip
resolving the private URL if we aren't performing a checkout from
within `run-task`.

Differential Revision: https://phabricator.services.mozilla.com/D25002

--HG--
extra : moz-landing-system : lando
2019-04-11 17:19:36 +00:00
Kartikaya Gupta 3674245c97 Bug 1516568 - Provide path to python executable when invoking fetch-content script. r=ahal
The shebang at the top of fetch-content doesn't work on macOS because
the path to python3 is not /usr/bin. Using /usr/bin/env doesn't work
properly on all platforms either so instead we invoke the script using
the currently running python executable.

Differential Revision: https://phabricator.services.mozilla.com/D19744

--HG--
extra : source : f6413e576a2169855f766085704570c9fc851ee2
2019-02-15 01:30:48 +00:00
Dorel Luca b73b2c4f67 Backed out 7 changesets (bug 1516568) for Docker and Toolchain failures. CLOSED TREE
Backed out changeset 79120d13e713 (bug 1516568)
Backed out changeset 028c0ed368b8 (bug 1516568)
Backed out changeset f06721b552a8 (bug 1516568)
Backed out changeset ee403c79877e (bug 1516568)
Backed out changeset 8990eef6c31e (bug 1516568)
Backed out changeset f6413e576a21 (bug 1516568)
Backed out changeset e9f887f489e5 (bug 1516568)
2019-02-15 05:16:55 +02:00
Kartikaya Gupta a03acb6831 Bug 1516568 - Provide path to python executable when invoking fetch-content script. r=ahal
The shebang at the top of fetch-content doesn't work on macOS because
the path to python3 is not /usr/bin. Using /usr/bin/env doesn't work
properly on all platforms either so instead we invoke the script using
the currently running python executable.

Differential Revision: https://phabricator.services.mozilla.com/D19744

--HG--
extra : moz-landing-system : lando
2019-02-15 01:30:48 +00:00
Gregory Szorc 7db2ec0def Bug 1512188 - Consolidate VCS checkout from args logic; r=tomprince,dustin
We create a minimal wrapper function to call collect_vcs_options()
and vcs_checkout().

We could consolidate this logic into vcs_checkout(). But I don't have
strong feelings about doing that.

Differential Revision: https://phabricator.services.mozilla.com/D13821

--HG--
extra : moz-landing-system : lando
2018-12-31 18:50:34 +00:00
Gregory Szorc 2bf175f722 Bug 1512188 - Collect hg store path in collect_vcs_options(); r=tomprince,dustin
One step closer to making all state gathering and normalization in one
place.

Differential Revision: https://phabricator.services.mozilla.com/D13819

--HG--
extra : moz-landing-system : lando
2018-12-31 18:54:14 +00:00
Gregory Szorc 952e5d5655 Bug 1512188 - Move base repo normalization into collect_vcs_options(); r=tomprince,dustin
This is a generic normalization and doesn't need to be Firefox
specific.

Differential Revision: https://phabricator.services.mozilla.com/D13817

--HG--
extra : moz-landing-system : lando
2018-12-31 18:54:31 +00:00
Gregory Szorc 426f2868cd Bug 1512188 - Collect environment variables into VCS options; r=tomprince,dustin
This makes behavior consistent across all VCS checkouts. I'm still not
a fan of using environment variables here. But at least this gets us
1 step closer to being able to plug alternate logic in without having
to update use of environment variables outside a single function.

Differential Revision: https://phabricator.services.mozilla.com/D13816

--HG--
extra : moz-landing-system : lando
2018-12-31 18:52:32 +00:00
Gregory Szorc b809920807 Bug 1512188 - make VCS checkout options generic; r=tomprince,dustin
We currently manage VCS checkout arguments as one-offs for each
project. This isn't scalable and results in a bit of copy-pasta.

Let's make the VCS checkout arguments generic so we can have the
same control for all repositories.

This commit focuses on consolidating the existing argument parser
code. It stops short of further unification, which will be done in
subsequent commits.

Differential Revision: https://phabricator.services.mozilla.com/D13815

--HG--
extra : moz-landing-system : lando
2018-12-31 18:52:30 +00:00
Tom Prince 94212a8c9a Bug 1512285: Stop checking out tools; r=nthomas,gps
This code was used by mozharness jobs to check out the tools repo.
However, those jobs aren't actually using the repository.

Differential Revision: https://phabricator.services.mozilla.com/D13855

--HG--
extra : moz-landing-system : lando
2018-12-31 18:52:28 +00:00
Gregory Szorc 1693cc73d8 Bug 1512188 - Rename --sparse-profile to --gecko-sparse-profile; r=tomprince,dustin
We have multiple source checkouts. --sparse-profile is ambiguous
as to which one it could refer to. Let's rename the argument so it
is prefixed with the repo/project we are checking out.

Differential Revision: https://phabricator.services.mozilla.com/D13814

--HG--
extra : moz-landing-system : lando
2018-12-31 18:52:26 +00:00
Gregory Szorc fe09099db1 Bug 1512188 - Rename --vcs-checkout to --gecko-checkout; r=tomprince,dustin
We now have multiple things we may check out. "vcs" meaning "gecko"
is not obvious. Let's change the terminology to be more specific.

Differential Revision: https://phabricator.services.mozilla.com/D13813

--HG--
extra : moz-landing-system : lando
2018-12-31 18:51:27 +00:00
Bogdan Tara 8fb34de423 Backed out 8 changesets (bug 1512285, bug 1512188) for fetch bustages CLOSED TREE
Backed out changeset 5e7aa7d98012 (bug 1512188)
Backed out changeset 55874a956ae1 (bug 1512188)
Backed out changeset ac6e2cd6eb32 (bug 1512188)
Backed out changeset f68df074eac1 (bug 1512188)
Backed out changeset f01d2662582f (bug 1512188)
Backed out changeset 35d74dd16706 (bug 1512285)
Backed out changeset 9e95b9bf1201 (bug 1512188)
Backed out changeset ac4a49eb95f5 (bug 1512188)
2018-12-29 07:56:56 +02:00
Gregory Szorc 555c86c76d Bug 1512188 - Consolidate VCS checkout from args logic; r=tomprince,dustin
We create a minimal wrapper function to call collect_vcs_options()
and vcs_checkout().

We could consolidate this logic into vcs_checkout(). But I don't have
strong feelings about doing that.

Differential Revision: https://phabricator.services.mozilla.com/D13821

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:45 +00:00
Gregory Szorc d87b04a55a Bug 1512188 - Collect hg store path in collect_vcs_options(); r=tomprince,dustin
One step closer to making all state gathering and normalization in one
place.

Differential Revision: https://phabricator.services.mozilla.com/D13819

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:38 +00:00
Gregory Szorc 7d0932f16a Bug 1512188 - Move base repo normalization into collect_vcs_options(); r=tomprince,dustin
This is a generic normalization and doesn't need to be Firefox
specific.

Differential Revision: https://phabricator.services.mozilla.com/D13817

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:36 +00:00
Gregory Szorc 8fb6cd08a8 Bug 1512188 - Collect environment variables into VCS options; r=tomprince,dustin
This makes behavior consistent across all VCS checkouts. I'm still not
a fan of using environment variables here. But at least this gets us
1 step closer to being able to plug alternate logic in without having
to update use of environment variables outside a single function.

Differential Revision: https://phabricator.services.mozilla.com/D13816

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:28 +00:00
Gregory Szorc 17d3010722 Bug 1512188 - make VCS checkout options generic; r=tomprince,dustin
We currently manage VCS checkout arguments as one-offs for each
project. This isn't scalable and results in a bit of copy-pasta.

Let's make the VCS checkout arguments generic so we can have the
same control for all repositories.

This commit focuses on consolidating the existing argument parser
code. It stops short of further unification, which will be done in
subsequent commits.

Differential Revision: https://phabricator.services.mozilla.com/D13815

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:26 +00:00
Tom Prince d5999f77d3 Bug 1512285: Stop checking out tools; r=nthomas,gps
This code was used by mozharness jobs to check out the tools repo.
However, those jobs aren't actually using the repository.

Differential Revision: https://phabricator.services.mozilla.com/D13855

--HG--
extra : moz-landing-system : lando
2018-12-29 05:22:38 +00:00
Gregory Szorc 8c1a7bccef Bug 1512188 - Rename --sparse-profile to --gecko-sparse-profile; r=tomprince,dustin
We have multiple source checkouts. --sparse-profile is ambiguous
as to which one it could refer to. Let's rename the argument so it
is prefixed with the repo/project we are checking out.

Differential Revision: https://phabricator.services.mozilla.com/D13814

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:17 +00:00
Gregory Szorc 8fc5669189 Bug 1512188 - Rename --vcs-checkout to --gecko-checkout; r=tomprince,dustin
We now have multiple things we may check out. "vcs" meaning "gecko"
is not obvious. Let's change the terminology to be more specific.

Differential Revision: https://phabricator.services.mozilla.com/D13813

--HG--
extra : moz-landing-system : lando
2018-12-29 05:13:09 +00:00
Andrew Halberstadt 828485d8db Bug 1436037 - [taskgraph] Support OSX generic-worker in run-task, r=Callek
This enables OSX generic-worker based tasks to use the run-task script.

Differential Revision: https://phabricator.services.mozilla.com/D14900

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:04 +00:00
Dorel Luca aab1a051ae Backed out 12 changesets (bug 1512285, bug 1512188) for toolchain failure. CLOSED TREE
Backed out changeset 59813ae1b6ea (bug 1512188)
Backed out changeset 1f56f1e581e2 (bug 1512188)
Backed out changeset 0b3259dc10bd (bug 1512188)
Backed out changeset d0eb311b3c8f (bug 1512188)
Backed out changeset d9585e5d7a3a (bug 1512188)
Backed out changeset b4f3dc9b0956 (bug 1512188)
Backed out changeset 7d88308ca069 (bug 1512285)
Backed out changeset 838f49d718a7 (bug 1512188)
Backed out changeset 6bd036a5166d (bug 1512188)
Backed out changeset 3bcedff402fa (bug 1512188)
Backed out changeset 4f546b3e0b18 (bug 1512188)
Backed out changeset bc4232cfcfb8 (bug 1512188)
2018-12-11 23:08:27 +02:00
Gregory Szorc ce15eca09e Bug 1512188 - Remove support for checking out symbolic revisions; r=tomprince
The functionality is no longer used. All CI should be pinned to a full
revision hash for determinism.

Differential Revision: https://phabricator.services.mozilla.com/D14166

--HG--
extra : moz-landing-system : lando
2018-12-11 19:51:00 +00:00
Gregory Szorc 671a19d3af Bug 1512188 - Remove prevent_symbolic_revisions arguments; r=tomprince
It is no longer used. We can remove it. A subsequent commit will remove
logic for handling symbolic revisions completely.

Differential Revision: https://phabricator.services.mozilla.com/D14165

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:58 +00:00
Gregory Szorc fdbfadd8e0 Bug 1512188 - Revert to "gecko" for vcs naming; r=tomprince
For historical consistency and consistency with index paths.

"env_prefix" is no longer used after this change, so it has been
removed.

Differential Revision: https://phabricator.services.mozilla.com/D13876

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:56 +00:00
Gregory Szorc 4534a77110 Bug 1512188 - Consolidate VCS checkout from args logic; r=tomprince
We create a minimal wrapper function to call collect_vcs_options()
and vcs_checkout().

We could consolidate this logic into vcs_checkout(). But I don't have
strong feelings about doing that.

Differential Revision: https://phabricator.services.mozilla.com/D13821

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:54 +00:00
Gregory Szorc 5791caf578 Bug 1512188 - Move enforcement of non-symbolic revisions to vcs_checkout(); r=tomprince
Having this consistently enforced in the checkout function seems
better than looking at environment variables. Also, I think the old
logic was wrong, as it only ran if we weren't doing a checkout!
Although there is a strong possibility that I introduced this bug
via refactoring in this series.

Differential Revision: https://phabricator.services.mozilla.com/D13820

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:52 +00:00
Gregory Szorc d969ada4f3 Bug 1512188 - Collect hg store path in collect_vcs_options(); r=tomprince
One step closer to making all state gathering and normalization in one
place.

Differential Revision: https://phabricator.services.mozilla.com/D13819

--HG--
extra : moz-landing-system : lando
2018-12-11 19:51:05 +00:00
Tom Prince b6557180f7 Bug 1512285: Stop checking out tools; r=nthomas,gps
Differential Revision: https://phabricator.services.mozilla.com/D13855

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:58 +00:00
Gregory Szorc 338febf855 Bug 1512188 - Move base repo normalization into collect_vcs_options(); r=tomprince
This is a generic normalization and doesn't need to be Firefox
specific.

Differential Revision: https://phabricator.services.mozilla.com/D13817

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:56 +00:00
Gregory Szorc e12421349d Bug 1512188 - Collect environment variables into VCS options; r=tomprince
This makes behavior consistent across all VCS checkouts. I'm still not
a fan of using environment variables here. But at least this gets us
1 step closer to being able to plug alternate logic in without having
to update use of environment variables outside a single function.

Differential Revision: https://phabricator.services.mozilla.com/D13816

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:54 +00:00
Gregory Szorc ce6d86889c Bug 1512188 - make VCS checkout options generic; r=tomprince
We currently manage VCS checkout arguments as one-offs for each
project. This isn't scalable and results in a bit of copy-pasta.

Let's make the VCS checkout arguments generic so we can have the
same control for all repositories.

This commit focuses on consolidating the existing argument parser
code. It stops short of further unification, which will be done in
subsequent commits.

Differential Revision: https://phabricator.services.mozilla.com/D13815

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:52 +00:00
Gregory Szorc 20466b6f0c Bug 1512188 - Rename --sparse-profile to --firefox-sparse-profile; r=tomprince
We have multiple source checkouts. --sparse-profile is ambiguous
as to which one it could refer to. Let's rename the argument so it
is prefixed with the repo/project we are checking out.

Differential Revision: https://phabricator.services.mozilla.com/D13814

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:45 +00:00
Gregory Szorc 3c6f34daeb Bug 1512188 - Rename --vcs-checkout to --firefox-checkout; r=tomprince
We now have multiple things we may check out. "vcs" meaning "firefox"
is not obvious. Let's change the terminology to be more specific.

Differential Revision: https://phabricator.services.mozilla.com/D13813

--HG--
extra : moz-landing-system : lando
2018-12-11 19:50:43 +00:00
Andrew Halberstadt 6f42a07813 Bug 1436037 - [taskgraph] Support Windows generic-worker with run-task, r=gps
This enables Windows generic-worker based tasks to use the run-task script.

Differential Revision: https://phabricator.services.mozilla.com/D10758

--HG--
extra : moz-landing-system : lando
2018-12-05 19:19:56 +00:00
Tom Prince b121ab0ff2 Bug 1507360: Fix flake8 error in run-task; r=gps
Differential Revision: https://phabricator.services.mozilla.com/D13811

--HG--
extra : moz-landing-system : lando
2018-12-05 15:59:51 +00:00
Tom Prince 13af5de7ea Bug 1507360: Fix python3.5 support in fetching hg fingerprints; r=gps
Differential Revision: https://phabricator.services.mozilla.com/D13810

--HG--
extra : moz-landing-system : lando
2018-12-05 16:00:20 +00:00