CtsLaunchControlProvider
public
class
CtsLaunchControlProvider
extends LaunchControlProvider
implements
IDiscoverDependencies
| java.lang.Object | ||
| ↳ | com.google.android.tradefed.build.LaunchControlProvider | |
| ↳ | com.google.android.tradefed.build.CtsLaunchControlProvider | |
A LaunchControlProvider for a CTS build.
Retrieves and extracts a CTS zip from the Android build server. The extracted CTS is
represented as a IFolderBuildInfo.
Summary
Fields | |
|---|---|
public
static
final
Set<String> |
CONFIG_ONLY_REGEX
|
public
static
final
Set<String> |
JARS_AND_CONFIG_REGEX
|
Public constructors | |
|---|---|
CtsLaunchControlProvider()
|
|
Public methods | |
|---|---|
void
|
cleanExtra()
|
void
|
cleanUp(IBuildInfo info)
Clean up any temporary build files. |
boolean
|
getForceCas()
|
Set<String>
|
reportTestZipFileFilter()
|
void
|
setCtsExtra(List<String> ctsExtra)
|
void
|
setCtsExtraAltPath(File altPath)
|
void
|
setCtsForcePartialDownloadRegex(Set<String> ctsForcePartialDownloadRegex)
|
void
|
setCtsPackageName(String ctsZipName)
|
void
|
setCtsUsePartialDownload(boolean shouldUsePartialDownload)
|
void
|
setDefaultRollout(boolean defaultRollout)
|
void
|
setDelayDownloadinSharding(boolean delayDownload)
|
void
|
setForceDisablePartialDownloadExperiment(boolean forceDisablePartialDownloadExperiment)
|
void
|
setPartialDownloadDefaultRollout(Set<String> partialDownloadDefaultRollout)
|
void
|
setPartialDownloadDisallowList(Set<String> partialDownloadDisallowList)
|
void
|
setPartialDownloadRolloutArtifact(String partialDownloadRolloutArtifact)
|
void
|
setThrowIfExtraNotFound(boolean shouldThrow)
|
Protected methods | |
|---|---|
IBuildInfo
|
downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
Download the necessary file keys as configured in --download-build-key from the
remoteBuild, and store them in a |
RemoteBuildInfo
|
queryForBuild()
Perform the launch control query, retrying multiple times in case of error. |
Fields
CONFIG_ONLY_REGEX
public static final Set<String> CONFIG_ONLY_REGEX
JARS_AND_CONFIG_REGEX
public static final Set<String> JARS_AND_CONFIG_REGEX
Public constructors
CtsLaunchControlProvider
public CtsLaunchControlProvider ()
Public methods
cleanExtra
public void cleanExtra ()
cleanUp
public void cleanUp (IBuildInfo info)
Clean up any temporary build files.
| Parameters | |
|---|---|
info |
IBuildInfo |
getForceCas
public boolean getForceCas ()
| Returns | |
|---|---|
boolean |
|
reportTestZipFileFilter
public Set<String> reportTestZipFileFilter ()
| Returns | |
|---|---|
Set<String> |
|
setCtsExtra
public void setCtsExtra (List<String> ctsExtra)
| Parameters | |
|---|---|
ctsExtra |
List |
setCtsExtraAltPath
public void setCtsExtraAltPath (File altPath)
| Parameters | |
|---|---|
altPath |
File |
setCtsForcePartialDownloadRegex
public void setCtsForcePartialDownloadRegex (Set<String> ctsForcePartialDownloadRegex)
| Parameters | |
|---|---|
ctsForcePartialDownloadRegex |
Set |
setCtsPackageName
public void setCtsPackageName (String ctsZipName)
| Parameters | |
|---|---|
ctsZipName |
String |
setCtsUsePartialDownload
public void setCtsUsePartialDownload (boolean shouldUsePartialDownload)
| Parameters | |
|---|---|
shouldUsePartialDownload |
boolean |
setDefaultRollout
public void setDefaultRollout (boolean defaultRollout)
| Parameters | |
|---|---|
defaultRollout |
boolean |
setDelayDownloadinSharding
public void setDelayDownloadinSharding (boolean delayDownload)
| Parameters | |
|---|---|
delayDownload |
boolean |
setForceDisablePartialDownloadExperiment
public void setForceDisablePartialDownloadExperiment (boolean forceDisablePartialDownloadExperiment)
| Parameters | |
|---|---|
forceDisablePartialDownloadExperiment |
boolean |
setPartialDownloadDefaultRollout
public void setPartialDownloadDefaultRollout (Set<String> partialDownloadDefaultRollout)
| Parameters | |
|---|---|
partialDownloadDefaultRollout |
Set |
setPartialDownloadDisallowList
public void setPartialDownloadDisallowList (Set<String> partialDownloadDisallowList)
| Parameters | |
|---|---|
partialDownloadDisallowList |
Set |
setPartialDownloadRolloutArtifact
public void setPartialDownloadRolloutArtifact (String partialDownloadRolloutArtifact)
| Parameters | |
|---|---|
partialDownloadRolloutArtifact |
String |
setThrowIfExtraNotFound
public void setThrowIfExtraNotFound (boolean shouldThrow)
| Parameters | |
|---|---|
shouldThrow |
boolean |
Protected methods
downloadBuildFiles
protected IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
Download the necessary file keys as configured in --download-build-key from the
remoteBuild, and store them in a IBuildInfo.
| Parameters | |
|---|---|
remoteBuild |
RemoteBuildInfo: the launch control server response |
testTargetName |
String: the test target name |
buildName |
String: the name of the build, as defined by launch control |
downloader |
IFileDownloader: the IFileDownloader to use to download build files |
| Returns | |
|---|---|
IBuildInfo |
the IBuildInfo populated with local versions of build files |
| Throws | |
|---|---|
BuildRetrievalError |
|
queryForBuild
protected RemoteBuildInfo queryForBuild ()
Perform the launch control query, retrying multiple times in case of error.
| Returns | |
|---|---|
RemoteBuildInfo |
the RemoteBuildInfo retrieved from launch control |
| Throws | |
|---|---|
BuildRetrievalError |
|