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

21 Коммитов

Автор SHA1 Сообщение Дата
Jamie Madill 353b62c99c Use Python 3 in trigger.py.
Bug: angleproject:5707
Change-Id: I7b1281711133ef3a60257c602f1af1db7f3af85f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3284395
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-11-16 17:01:35 +00:00
Jamie Madill fd0579ac7d trigger.py: Add -realm to swarming args.
This should fix recent permissions changes.

Bug: chromium:1231092
Change-Id: Ie9b39449c861f3ab774334c4d392d1700c638ea9
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3040565
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-07-20 14:10:29 +00:00
Jamie Madill ead83da933 Add environment variable args to trigger script.
This can allow specifying args such as VK_LOADER_DEBUG.

Bug: chromium:1228274
Change-Id: Idf9298e32a0c6a353891eb8b929a3524d27541b0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3027539
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-07-14 17:52:41 +00:00
Jamie Madill d0dc22fd07 Add support for triggering gold tests.
This requires a specific service account and luci config. Also
includes a few other minor improvements to trigger.py.

Bug: angleproject:5966
Change-Id: I8f60b57cd7136fb4ffd4d6243fda9134ba5961fb
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2933600
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-06-02 19:42:41 +00:00
Jonah Ryan-Davis d7859d980a Remove -raw-cmd from scripts/trigger.py swarming call
It looks like this argument doesn't exist anymore. Removing it from
the swarming call works fine.

Bug: angleproject:5915
Change-Id: I510ef79ae5a540742c3f08c8daa0a14d59d2e60d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2855040
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
2021-04-28 20:00:48 +00:00
Jamie Madill 29dc2b6e5d infra: Move and check gn_isolate_map.
In preparation for more source-side configuration. Also adds a presubmit
check and some empty files to enable the presubmit to function.

Bug: angleproject:5114
Change-Id: Id9a0cbe1e78949720be39c65efab73c1345d4f39
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2819942
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-04-13 17:04:46 +00:00
Junji Watanabe f7801a3be1 Use CAS in scripts/trigger.py
Isolate server is being migrated to CAS.
This CL changes trigger.py to use CAS instead of Isolate server.

Bug: chromium:1163817
Change-Id: I137cd656798c08bf991cb77da36780b87193f821
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2626931
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2021-01-13 16:24:13 +00:00
Jamie Madill 6f755d2197 Fix trigger.py using deprecated parameters.
This changes the script to query the command from mb.py then
call swarming trigger with -raw-cmd and -relative-cwd.

See http://crbug.com/chrome-operations/94

Bug: None
Change-Id: I1e11cd2e1314a4e96e1ee5a42b311f0c3cb5058b
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521240
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2020-11-06 01:38:43 +00:00
Jamie Madill 7882260387 Add priority to trigger.py jobs.
Use a default priority of 30 to match CQ jobs and not starve.
The user can also carefully add a higher priotity for small tasks.

Bug: angleproject:5177
Change-Id: I8e8460f096102423429b19e2107673f58d73805a
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2475454
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2020-10-16 02:48:18 +00:00
Jamie Madill 0059e75cfe trigger.py: Remove GTest shard env when running one shard.
Bug: angleproject:5158
Change-Id: I3c29adf36f6f31f23bf662c2d7d6c4d05d8e9028
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2466781
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Courtney Goeltzenleuchter <courtneygo@google.com>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2020-10-14 00:55:36 +00:00
Jamie Madill a1477bef76 trigger.py: Append user tag.
This puts the output of 'whoami' into the user tag. This is useful for
finding your triggered swarming tasks.

Implemented while working on triggering standalone dEQP test runs.

Bug: angleproject:5157
Change-Id: Ic850726485a96408c8f2ded36195268eabb275f4
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2463370
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2020-10-09 20:39:54 +00:00
Jamie Madill 7b25b64316 Add a standalone GN isolate map.
This will allow us to use trigger.py in a standalone checkout
to fire off swarming jobs.

Bug: angleproject:5114
Change-Id: I99302a4e8fdfc0f6d9996748a2d6c97dc5f03cde
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2442079
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2020-10-02 01:17:02 +00:00
Jamie Madill e9813ba092 trigger.py: Add launching of Android tests.
This adds new conditonal arguments --device-type and --device-os
(shortened as -t and -o) that specify an Android device type/OS.
In practice only -t is usually necessary. Also makes the GPU
dimension optional (-g or --gpu).

Bug: angleproject:5109
Bug: chromium:1133459
Change-Id: Id975c676db40e9eb104b73a4ed5858e6083cbd70
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2439481
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2020-09-30 01:17:40 +00:00
Jamie Madill 6d1bf2b4d7 Give trigger.py executable bit.
Bug: angleproject:3162
Change-Id: I4ebd0ccf397568aeaa62a033155e70024a806965
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2420333
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
2020-09-21 15:04:44 +00:00
Ben Pastene 1496de215a Remove implied CIPD packages from scripts/trigger.py
All of chromium's test pools should have these packages automatically
added via task templates. So there's no need to add them ourselves
in this script.

Bug: chromium:812428
Change-Id: I283ad5963cdf237220545c5ed1f21892f6ade18e
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2241901
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
2020-06-23 23:12:26 +00:00
Takuto Ikuta 05710d5478 use go swarming client in trigger.py
python client is being deprecated.

Tested by
$ python third_party/angle/scripts/trigger.py --shards=2 -p chromium.tests out/Release base_unittests Ubuntu none

Fixed: chromium:1047115
Change-Id: Id653e2b29e8bf02ab86eaa4c5c767d081fa29dbd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2095654
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2020-03-10 22:28:32 +00:00
Takuto Ikuta 0837bf756b use go isolate client in trigger.py
python client is being deprecated.
I will switch swarming client later.

Tested by
~/chromium/src$ python third_party/angle/scripts/trigger.py -p chromium.tests out/Release base_unittests Ubuntu none

Bug: chromium:1047115
Change-Id: Ibad2bf5ab80b09aadfcd0431fea8c5e97d38655d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2095035
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
2020-03-09 21:30:18 +00:00
Jamie Madill 9e4cf7cab1 Fix vpython caching in trigger.py script.
Several necessary CPID packages were missing from the swarming params.
Add these based on the packages in mb.py:

2192df66cd/mb.py (586)

Allows testing the ANGLE test launcher without modifying recipes.

Bug: angleproject:3162
Change-Id: I3e84bf0d3fd92aed623a918b4d9cfd53f51f2dee
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2050427
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2020-02-12 22:43:08 +00:00
Jonah Ryan-Davis fba3e64e80 Update trigger.py to take extra arguments
The extra_args wildcard doesn't support extra arguments prepended with
'--'. By using the unknown args returned by argparse, you can add
arbitrary args to the swarming call.

Bug: angleproject:3272
Change-Id: I8d4ab1e19ceae80b47cc2331e6e30a4187da863f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1695921
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
2019-07-10 17:18:28 +00:00
Geoff Lang d7d42395ac Format all of ANGLE's python code.
BUG=angleproject:3421

Change-Id: I1d7282ac513c046de5d8ed87f7789290780d30a6
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1595440
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
2019-05-06 18:56:09 +00:00
Jamie Madill e3dc0dfaf4 Add a helper script for triggering tests on swarming.
Usage: trigger.py <GN path> <test> <os_dim> <gpu_dim> <-s shards>

This script can circumvent the trybots when attempting a job on a
specific configuration. It must be used within a Chromium checkout
currently. In the future we can likely use it in standalone.

Optional arguments can specify the number of swarming shards, the pool,
and extra command line test parameters like --gtest_filter.

Bug: angleproject:3272
Change-Id: Ia79f4422786c463378fc7e0f7f5ae4d07bd097a0
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1524700
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
2019-03-18 18:22:57 +00:00