Home
last modified time | relevance | path

Searched full:gce (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/aosp_15_r20/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DTestDeviceOptions.java42 GCE, enumConstant
239 private InstanceType mInstanceType = InstanceType.GCE;
242 name = "gce-boot-timeout",
243 description = "timeout to wait in ms for GCE to be online.",
248 name = "allow-gce-boot-timeout-override",
251 + "the Acloud value as a basis instead of the gce-boot-timeout option.")
254 @Option(name = "gce-driver-path", description = "path of the binary to launch GCE devices")
258 name = "gce-driver-config-path",
259 description = "path of the config to use to launch GCE devices.")
263 name = "gce-driver-service-account-json-key-path",
[all …]
/aosp_15_r20/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java75 /** Helper that manages the GCE calls to start/stop and collect logs from GCE. */
77 public static final String GCE_INSTANCE_NAME_KEY = "gce-instance-name";
78 public static final String GCE_HOSTNAME_KEY = "gce-hostname";
79 public static final String GCE_INSTANCE_CLEANED_KEY = "gce-instance-clean-called";
80 public static final String GCE_IP_PRECONFIGURED_KEY = "gce-ip-pre-configured";
113 * @param deviceDesc The {@link DeviceDescriptor} that will be associated with the GCE device.
115 * @param buildInfo A {@link IBuildInfo} describing the gce build to start.
137 "Replacing --gce-boot-timeout %s by --boot-timeout %s.", in GceManager()
156 * Ctor, variation that can be used to provide the GCE instance name to use directly.
158 * @param deviceDesc The {@link DeviceDescriptor} that will be associated with the GCE device.
[all …]
DGceSshTunnelMonitor.java50 /** Thread Monitor for the Gce ssh tunnel. */
90 * @param device {@link ITestDevice} the TF device to associate the remote GCE AVD with.
91 * @param gce {@link HostAndPort} of the remote GCE AVD.
96 HostAndPort gce, in GceSshTunnelMonitor() argument
106 mGceHostAndPort = gce; in GceSshTunnelMonitor()
202 /** Perform some initial setup on the GCE AVD. */
207 if (InstanceType.GCE.equals(mDeviceOptions.getInstanceType()) in initGce()
266 CLog.d("Failed to init remote GCE. Terminating due to:"); in run()
290 CLog.e("Failed creating the ssh tunnel to GCE."); in run()
308 CLog.e("Adb connect failed, re-init GCE connection."); in run()
[all …]
DGceLHPTunnelMonitor.java44 /** Thread Monitor for the Gce lab host proxy tunnel used for oxygenation. */
67 * @param device {@link ITestDevice} the TF device to associate the remote GCE AVD with.
68 * @param buildInfo {@link ITestDevice} the TF device to associate the remote GCE AVD with.
69 * @param sessionId {@link ITestDevice} the TF device to associate the remote GCE AVD with.
70 * @param deviceId {@link ITestDevice} the TF device to associate the remote GCE AVD with.
71 * @param serverUrl {@link ITestDevice} the TF device to associate the remote GCE AVD with.
72 * @param deviceOptions {@link HostAndPort} of the remote GCE AVD.
138 // Create a new RemoteAvdIDevice with serial number to replace with gce-device. in run()
171 CLog.e("Adb connect failed, re-init GCE connection."); in run()
/aosp_15_r20/device/google/cuttlefish/tools/
Dcreate_base_image.go136 "INTERNAL_IP can be set to --internal-ip run on a GCE instance."+
177 func gce(action OnFail, gceArg string, errorStr ...string) (string, error) { func
202 _, err := gce(WarnOnFail, `compute ssh `+internal_ip_flag+` `+PZ+` `+
225 _, err := gce(WarnOnFail, `compute instances describe "`+instance+`"`)
227 gce(ExitOnFail, `compute instances create `+arg+` "`+instance+`"`)
236 // new path that generate image locally without creating GCE instance
249 // gce operations
260 gce(WarnOnFail, `compute instances delete -q `+PZ+` `+delete_instances, `Not running`)
261 gce(WarnOnFail, `compute disks delete -q `+PZ+` "`+dest_image+`"`, `No scratch disk`)
262 gce(WarnOnFail, `compute images delete -q --project="`+build_project+`" "`+dest_image+`"`,
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DGceManagerTest.java78 setter.setOptionValue("wait-gce-teardown", "true"); in setUp()
98 /** Test {@link GceManager#extractInstanceName(String)} with a typical gce log. */
103 + "Image image-gce-x86-phone-userdebug-fastbuild-linux-3266697-1f7cc554 " in testExtractNameFromLog()
113 + "me': 'External NAT'}]}], 'name': u'gce-x86-phone-userdebug-fastbuild-lin" in testExtractNameFromLog()
121 assertEquals("gce-x86-phone-userdebug-fastbuild-linux-3266697-144fcf59", result); in testExtractNameFromLog()
124 /** Test {@link GceManager#extractInstanceName(String)} with a typical gce log. */
130 + "'ins-80bd5bd1-3708674-gce-x86-phone-userdebug-fastbuild3c-linux', " in testExtractNameFromLog_newFormat()
132 + "'initializeParams': {'diskName': 'gce-x86-phone-userdebug-fastbuild-" in testExtractNameFromLog_newFormat()
134 + "compute/v1/projects/android-treehugger/global/images/image-gce-x86-ph" in testExtractNameFromLog_newFormat()
136 + "}, {'autoDelete': True, 'deviceName': 'gce-x86-phone-userdebug-fastbuil" in testExtractNameFromLog_newFormat()
[all …]
/aosp_15_r20/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dnet_test_utils.py355 def start_tcpdump_gce_server(ad, test_name, dest_port, gce): argument
356 """Start tcpdump on gce server.
362 gce: dictionary of gce instance
365 process id and pcap file path from gce server
367 ad.log.info("Starting tcpdump on gce server")
376 %s.txt 2>&1 & echo $!\'" % (gce["interface"], fname, dest_port, fname)
378 (GCE_SSH, gce["project"], gce["zone"], gce["username"], gce["hostname"])
386 raise signals.TestFailure("Failed to start tcpdump on gce server")
390 def stop_tcpdump_gce_server(ad, tcpdump_pid, fname, gce): argument
391 """Stop and pull tcpdump file from gce server.
[all …]
/aosp_15_r20/external/autotest/server/hosts/
H A Dgce_host.py9 from autotest_lib.utils.frozen_chromite.lib import gce
20 """Extract GCE-specific arguments from arguments dictionary.
31 """GCE-specific subclass of Host."""
38 @param gce_args: GCE-specific arguments extracted using
50 logging.warning("No GCE flags provided, calls to GCE API will fail")
53 self.gce = gce.GceContext.ForServiceAccountThreadSafe(
59 Check if the given host is running on GCE.
64 @return: True if the host is running on GCE.
82 keys = self.gce.GetCommonInstanceMetadata(
87 self.gce.SetCommonInstanceMetadata(
[all …]
/aosp_15_r20/external/python/oauth2client/tests/contrib/
Dtest_gce.py15 """Unit tests for oauth2client.contrib.gce."""
27 from oauth2client.contrib import gce
41 credentials = gce.AppAssertionCredentials()
51 credentials = gce.AppAssertionCredentials(scopes=scopes)
54 warn_mock.assert_called_once_with(gce._SCOPES_WARNING)
57 credentials = gce.AppAssertionCredentials()
63 gce.AppAssertionCredentials.from_json({})
73 credentials = gce.AppAssertionCredentials()
95 credentials = gce.AppAssertionCredentials()
102 credentials = gce.AppAssertionCredentials()
[all …]
/aosp_15_r20/external/webrtc/infra/specs/
H A Dclient.webrtc.perf.json33 "gce": "0", string
69 "gce": "0", string
113 "gce": "0", string
149 "gce": "0", string
192 "gce": "0", string
227 "gce": "0", string
270 "gce": "0", string
305 "gce": "0", string
349 "gce": "0", string
385 "gce": "0", string
[all …]
/aosp_15_r20/external/skia/site/docs/dev/testing/
H A Dswarmingbots.md14 performance numbers from GCE, despite very few guarantees about the physical
17 hardware or OS configurations that are not supported by GCE. We have several
19 - The Skolo (local Skia lab in Chapel Hill). Anything we can't get in GCE or the
31 - Machine name like “skia-e-gce-NNN”, “skia-ct-gce-NNN”, “skia-i-gce-NNN”,
32 “ct-gce-NNN”, “ct-xxx-builder-NNN” -> GCE
35 - skia-e-gce-NNN, skia-ct-gce-NNN:
37 - skia-i-gce-NNN:
39 - ct-gce-NNN, ct-xxx-builder-NNN:
41 - To log in to a Linux bot in GCE, use
45 - To log in to a Windows bot in GCE, first go to the VM's detail page and
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceSelectionOptionsTest.java329 /** Test for matching with gce device requested flag */
333 IDevice stubDevice = new RemoteAvdIDevice("gce device");
575 /** When a gce-device is requested, it can be matched. */
578 IDevice gceDevice = new RemoteAvdIDevice("gce-device:0");
580 setter.setOptionValue("gce-device", "true");
584 /** When a gce-device is presented but no --gce-device flag, it can't be matched. */
587 IDevice gceDevice = new RemoteAvdIDevice("gce-device:0");
591 /** When a gce-device is requested by serial. other gce-device serial should be rejected. */
594 IDevice gceDevice = new RemoteAvdIDevice("gce-device:1");
596 setter.setOptionValue("gce-device", "true");
[all …]
/aosp_15_r20/external/skia/infra/bots/
H A Djobs.json506 {"name": "Perf-Win2019-Clang-GCE-CPU-AVX2-x86_64-Release-All"},
587 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86-Debug-All"},
588 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All",
591 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-OldestSupportedSkpVersion"},
592 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ASAN"},
593 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-AVIF"},
594 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs",
597 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-BonusConfigs_ASAN"},
598 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-ColorSpaces_ASAN"},
599 {"name": "Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-NativeFonts_Fontations"},
[all …]
/aosp_15_r20/tools/acloud/public/
H A Ddevice_driver.py68 @utils.TimeExecute("Creating GCE image")
70 """Creates a Gce image using build from Launch Control.
73 using launch control api. And then create a Gce image.
80 String, name of the Gce image that has been created.
82 logger.info("Creating a new gce image using build: build_id %s, "
104 @utils.TimeExecute("Creating GCE image")
106 """Create a Gce image with a local image file.
119 String, name of the Gce image that has been created.
124 logger.info("Creating a new gce image from a local file %s",
175 And then create an gce image with it; and then create an instance.
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/distribute/cluster_resolver/
H A Dgce_cluster_resolver.py15 """Implementation of ClusterResolvers for GCE instance groups."""
77 will then use these parameters to query the GCE API for the IP addresses of
81 project: Name of the GCE project.
82 zone: Zone of the GCE instance group.
83 instance_group: Name of the GCE instance group.
85 task_type: Name of the TensorFlow job this GCE instance group of VM
87 task_id: The task index for this particular VM, within the GCE
93 credentials: GCE Credentials. If nothing is specified, this defaults to
95 service: The GCE API object returned by the googleapiclient.discovery
118 'GCE cluster resolver')
[all …]
/aosp_15_r20/tools/tradefederation/core/src/com/android/tradefed/device/connection/
DAdbSshConnection.java116 CLog.d("skipped GCE launch because GceAvdInfo %s is already set", mGceAvd); in initializeConnection()
119 // Launch GCE helper script. in initializeConnection()
150 "Failed to launch GCE after %sms", in initializeConnection()
155 CLog.d("%sms left before timeout after GCE launch returned", remainingTime); in initializeConnection()
163 // We don't have a way to bail out of waitForDeviceAvailable if the Gce Avd in initializeConnection()
231 CLog.i("Attempting recovery on GCE AVD %s", serial); in reconnectForRecovery()
273 CLog.i("Interrupted while waiting for GCE SSH monitor to shutdown."); in tearDownConnection()
291 // attempt to get a bugreport if Gce Avd is a failure in tearDownConnection()
332 // Cleanup GCE first to make sure ssh tunnel has nowhere to go. in tearDownConnection()
336 // We are done with the gce related information, clean it to prevent re-entry. in tearDownConnection()
[all …]
/aosp_15_r20/tools/tradefederation/core/avd_util/com/android/tradefed/util/avd/
DAcloudUtil.java31 * Build and return the command to launch GCE. Exposed for testing.
46 * @param gceDriverParams a {@link List<String>} of parameters from gce-driver-param option
48 * gce-driver-file-param option
49 * @param extraFiles a {@link MultiMap<File, String>} of extra files fromg gce-extra-files
50 * option, which contains the files to upload GCE instance during Acloud create. Key is
51 * local file, value is GCE destination path.
75 /* If args passed by gce-driver-param contain build-target or build_target, or in buildGceCmd()
77 device images, there is no need to pass the build info from device BuildInfo to gce in buildGceCmd()
78 arguments. Otherwise, generate gce args from device BuildInfo. Please refer to acloud in buildGceCmd()
107 // Add additional args passed by gce-driver-param. in buildGceCmd()
/aosp_15_r20/external/perfetto/docs/design-docs/
H A Dcontinuous-integration.md62 ## Worker GCE VM
65 The GCE instance is running a CrOS-based
81 On each GCE instance there are M (currently 10) worker containers running and
86 Worker containers are trusted entities. They can impersonate the GCE service
109 (for git pull / install-build-deps) but they cannot impersonate the GCE service
232 [GCE] # From /infra/ci/worker/gce-startup-script.sh
258 ### [gce-startup-script.sh](/infra/ci/worker/gce-startup-script.sh)
314 2. Restart the GCE instances, either manually or via
329 world-readable and writable by the GAE and GCE service accounts.
332 dedicated gmail.com account. The GCE service account doesn't.
[all …]
/aosp_15_r20/tools/tradefederation/core/common_util/com/android/tradefed/util/
DGceRemoteCmdFormatter.java22 /** Utility class to format commands to reach a remote gce device. */
35 * Utility to create a ssh command for a gce device based on some parameters.
40 * @param hostName the hostname where to connect to the gce device.
41 * @param command the actual command to run on the gce device.
42 * @return a list representing the ssh command for a gce device.
75 * Utility to create a scp command to fetch a file from a remote gce device.
80 * @param hostName the hostname where to connect to the gce device.
81 * @param remoteFile the file to be fetched on the remote gce device.
84 * @return a list representing the scp command for a gce device.
/aosp_15_r20/external/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/
H A DComputeEngineCredentials.java83 // Decrease timing margins on GCE.
84 // This is needed because GCE VMs maintain their own OAuth cache that expires T-4 mins, attempting
101 // could lead to false negatives in the event that we are on GCE, but
202 * Gets the universe domain from the GCE metadata server.
209 * <p>Otherwise, returns universe domain from GCE metadata service.
213 * @throws IOException if a call to GCE metadata service was unsuccessful. Check if exception
261 /** Refresh the access token by getting it from the GCE metadata server */
366 * (GCE) or equivalent runtime. <a href="https://google.aip.dev/auth/4115">See AIP-4115 for more
368 * <b>Active:</b> to check that GCE Metadata service is present by sending a http request to send
384 * Compute Environment (GCE) or equivalent runtime. Returns {@code false} if detection fails,
[all …]
/aosp_15_r20/external/python/apitools/apitools/base/py/
Dcredentials_lib.py60 from oauth2client.contrib import gce
62 from oauth2client import gce
214 """Request the given url from the GCE metadata service."""
234 class GceAssertionCredentials(gce.AppAssertionCredentials):
236 """Assertion credentials for GCE instances."""
337 """Returns instance scopes based on GCE metadata server."""
340 'GCE credentials requested outside a GCE instance')
343 'GCE credentials requested but service account '
420 # OAuth2Client made gce.AppAssertionCredentials unserializable as of
425 return super(gce.AppAssertionCredentials, self).to_json()
[all …]
/aosp_15_r20/external/skia/bazel/device_specific_configs/
H A Ddevice_specific_configs.go121 "model": "GCE",
131 "model": "GCE",
141 "model": "GCE",
151 "model": "GCE",
161 "model": "GCE",
171 "model": "GCE",
181 "model": "GCE",
191 "model": "GCE",
201 "model": "GCE",
211 "model": "GCE",
[all …]
/aosp_15_r20/external/chromium-trace/catapult/devil/devil/android/sdk/
H A Dgce_adb_wrapper.py4 """Provides a work around for various adb commands on android gce instances.
7 'push' and 'pull'. With gce instances, moving files through adb can be
28 self._instance_ip = self.Shell('getprop net.gce.ip').strip()
33 """Connects ADB to the android gce instance."""
47 """Pushes an object from the host to the gce instance.
71 """Copies an object from the host to the gce instance using scp.
91 """Pulls a file from the gce instance to the host.
131 """Installs an apk on the gce instance
/aosp_15_r20/external/tensorflow/tensorflow/python/distribute/cluster_resolver/tpu/
H A Dtpu_cluster_resolver.py94 that the zone of the TPU is the same as the zone of the GCE VM, which we
95 will try to discover from the GCE metadata service.
97 empty, we will try to discover the project name of the GCE VM from the
98 GCE metadata service.
166 that the zone of the TPU is the same as the zone of the GCE VM, which we
167 will try to discover from the GCE metadata service.
169 empty, we will try to discover the project name of the GCE VM from the
170 GCE metadata service.
178 credentials: GCE Credentials. If None, then we use default credentials
180 service: The GCE API object returned by the googleapiclient.discovery
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/
DAdbSshConnectionTest.java147 final String expectedException = "Can not get GCE AVD Info. launch GCE first?"; in testPowerwashNoAvdInfo()
157 /** Test powerwash GCE command */
204 // Launch GCE before powerwash. in testPowerwashGce()
258 // Launch GCE before powerwash. in testPowerwashCvdOxygen()
335 // Launch GCE before powerwash. in testPowerwashOxygenGce()
406 // Launch GCE before powerwash. in testPowerwashMultiInstance()
450 "acloud errors: Could not get a valid instance name, check the gce driver's " in testExceptionFromParser()
536 fail("Should not launch a Gce because the device should already launched"); in testPreInvocationLaunchedDeviceSetup()
613 /** Test snapshot restore GCE command */
733 // Launch GCE before snapshot restore. in testSnapshotGce()
[all …]

12345678910>>...19