_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c176200
test
// useContext calls kubectl config use-context ctx
{ "resource": "" }
c176201
test
// currentContext returns kubectl config current-context
{ "resource": "" }
c176202
test
// command creates an exec.Cmd with Stderr piped to os.Stderr and returns the args
{ "resource": "" }
c176203
test
// describeCluster returns details from gcloud container clusters describe.
{ "resource": "" }
c176204
test
// Set appends a value onto the strslice.
{ "resource": "" }
c176205
test
// parseXML extracts a gcsDir object from XML. If this returns a nil gcsDir, // the XML indicated that this was not a directory at all.
{ "resource": "" }
c176206
test
// Render writes HTML representing this gcsDir to the provided output.
{ "resource": "" }
c176207
test
// Render writes HTML representing this Record to the provided output.
{ "resource": "" }
c176208
test
// Render writes HTML representing this Prefix to the provided output.
{ "resource": "" }
c176209
test
// Printf logs a formatted line to the logging output.
{ "resource": "" }
c176210
test
// NewClient returns a new gerrit client
{ "resource": "" }
c176211
test
// SetReview writes a review comment base on the change id + revision
{ "resource": "" }
c176212
test
// GetBranchRevision returns SHA of HEAD of a branch
{ "resource": "" }
c176213
test
// private handler implementation details
{ "resource": "" }
c176214
test
// NewTypeFilterWrapperPlugin is the constructor of TypeFilterWrapperPlugin
{ "resource": "" }
c176215
test
// AddFlags adds "no-pull-requests" and "no-issues" to the command help
{ "resource": "" }
c176216
test
// CheckFlags makes sure not both PR and issues are ignored
{ "resource": "" }
c176217
test
// AddFlags adds kube client flags to existing FlagSet.
{ "resource": "" }
c176218
test
// Validate validates Kubernetes client options.
{ "resource": "" }
c176219
test
// Client returns a ClientInterface based on the flags provided.
{ "resource": "" }
c176220
test
// newClientFromFlags creates a CRD rest client from provided flags.
{ "resource": "" }
c176221
test
// createRESTConfig for cluster API server, pass empty config file for in-cluster
{ "resource": "" }
c176222
test
// registerResource sends a request to create CRDs and waits for them to initialize
{ "resource": "" }
c176223
test
// newDummyClient creates a in memory client representation for testing, such that we do not need to use a kubernetes API Server.
{ "resource": "" }
c176224
test
// Update implements ClientInterface
{ "resource": "" }
c176225
test
// TrustedPullRequest returns whether or not the given PR should be tested. // It first checks if the author is in the org, then looks for "ok-to-test" label.
{ "resource": "" }
c176226
test
// buildAll ensures that all builds that should run and will be required are built
{ "resource": "" }
c176227
test
// Run will watch for the process being wrapped to exit // and then post the status of that process and any artifacts // to cloud storage.
{ "resource": "" }
c176228
test
// AddConfig adds a new config
{ "resource": "" }
c176229
test
// DeleteConfig deletes an existing config if it exists or fail otherwise
{ "resource": "" }
c176230
test
// UpdateConfig updates a given if it exists or fail otherwise
{ "resource": "" }
c176231
test
// GetConfig returns an existing if it exists errors out otherwise
{ "resource": "" }
c176232
test
// GetConfigs returns all configs
{ "resource": "" }
c176233
test
// SyncConfigs syncs new configs
{ "resource": "" }
c176234
test
// Adds the list of known types to the Scheme.
{ "resource": "" }
c176235
test
// NewController constructs a new controller to reconcile stauses on config change
{ "resource": "" }
c176236
test
// Run monitors the incoming configuration changes to determine when statuses need to be // reconciled on PRs in flight when blocking presubmits change
{ "resource": "" }
c176237
test
// addedBlockingPresubmits determines new blocking presubmits based on a // config update. New blocking presubmits are either brand-new presubmits // or extant presubmits that are now reporting. Previous presubmits that // reported but were optional that are no longer optional require no action // as their contexts wil...
{ "resource": "" }
c176238
test
// removedBlockingPresubmits determines stale blocking presubmits based on a // config update. Presubmits that are no longer blocking due to no longer // reporting or being optional require no action as Tide will honor those // statuses correctly.
{ "resource": "" }
c176239
test
// migratedBlockingPresubmits determines blocking presubmits that have had // their status contexts migrated. This is a best-effort evaluation as we // can only track a presubmit between configuration versions by its name. // A presubmit "migration" that had its underlying job and context changed // will be treated as ...
{ "resource": "" }
c176240
test
// Load loads the set of options, preferring to use // JSON config from an env var, but falling back to // command line flags if not possible.
{ "resource": "" }
c176241
test
// canExecuteConcurrently checks whether the provided ProwJob can // be executed concurrently.
{ "resource": "" }
c176242
test
// getJenkinsJobs returns all the Jenkins jobs for all active // prowjobs from the provided list. It handles deduplication.
{ "resource": "" }
c176243
test
// terminateDupes aborts presubmits that have a newer version. It modifies pjs // in-place when it aborts.
{ "resource": "" }
c176244
test
// Throttle client to a rate of at most hourlyTokens requests per hour, // allowing burst tokens.
{ "resource": "" }
c176245
test
// NewClientWithFields creates a new fully operational GitHub client. With // added logging fields. // 'getToken' is a generator for the GitHub access token to use. // 'bases' is a variadic slice of endpoints to use in order of preference. // An endpoint is used when all preceding endpoints have returned a conn err. ...
{ "resource": "" }
c176246
test
// NewClient creates a new fully operational GitHub client.
{ "resource": "" }
c176247
test
// NewDryRunClient creates a new client that will not perform mutating actions // such as setting statuses or commenting, but it will still query GitHub and // use up API tokens. // 'getToken' is a generator the GitHub access token to use. // 'bases' is a variadic slice of endpoints to use in order of preference. // ...
{ "resource": "" }
c176248
test
// NewFakeClient creates a new client that will not perform any actions at all.
{ "resource": "" }
c176249
test
// Make a request with retries. If ret is not nil, unmarshal the response body // into it. Returns an error if the exit code is not one of the provided codes.
{ "resource": "" }
c176250
test
// requestRaw makes a request with retries and returns the response body. // Returns an error if the exit code is not one of the provided codes.
{ "resource": "" }
c176251
test
// Not thread-safe - callers need to hold c.mut.
{ "resource": "" }
c176252
test
// readPaginatedResultsWithValues is an override that allows control over the query string.
{ "resource": "" }
c176253
test
// UpdatePullRequest modifies the title, body, open state
{ "resource": "" }
c176254
test
// getLabels is a helper function that retrieves a paginated list of labels from a github URI path.
{ "resource": "" }
c176255
test
// convert to a StateCannotBeChanged if appropriate or else return the original error
{ "resource": "" }
c176256
test
// IsMergeable determines if a PR can be merged. // Mergeability is calculated by a background job on GitHub and is not immediately available when // new commits are added so the PR must be polled until the background job completes.
{ "resource": "" }
c176257
test
// Token is an implementation for oauth2.TokenSource interface.
{ "resource": "" }
c176258
test
// ListArtifacts gets the names of all artifacts available from the given source
{ "resource": "" }
c176259
test
// KeyToJob takes a spyglass URL and returns the jobName and buildID.
{ "resource": "" }
c176260
test
// prowToGCS returns the GCS key corresponding to the given prow key
{ "resource": "" }
c176261
test
// FetchArtifacts constructs and returns Artifact objects for each artifact name in the list. // This includes getting any handles needed for read write operations, direct artifact links, etc.
{ "resource": "" }
c176262
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecorationConfig.
{ "resource": "" }
c176263
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSConfiguration.
{ "resource": "" }
c176264
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsSpec.
{ "resource": "" }
c176265
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJob.
{ "resource": "" }
c176266
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobList.
{ "resource": "" }
c176267
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobSpec.
{ "resource": "" }
c176268
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobStatus.
{ "resource": "" }
c176269
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pull.
{ "resource": "" }
c176270
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Refs.
{ "resource": "" }
c176271
test
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UtilityImages.
{ "resource": "" }
c176272
test
// upload the result downloaded from path into project.
{ "resource": "" }
c176273
test
// ApplyDefault applies the defaults for the ProwJob decoration. If a field has a zero value, it // replaces that with the value set in def.
{ "resource": "" }
c176274
test
// Validate ensures all the values set in the DecorationConfig are valid.
{ "resource": "" }
c176275
test
// ApplyDefault applies the defaults for the UtilityImages decorations. If a field has a zero value, // it replaces that with the value set in def.
{ "resource": "" }
c176276
test
// ApplyDefault applies the defaults for GCSConfiguration decorations. If a field has a zero value, // it replaces that with the value set in def.
{ "resource": "" }
c176277
test
// Validate ensures all the values set in the GCSConfiguration are valid.
{ "resource": "" }
c176278
test
// ClusterAlias specifies the key in the clusters map to use. // // This allows scheduling a prow job somewhere aside from the default build cluster.
{ "resource": "" }
c176279
test
// NewResource creates a new Boskos Resource.
{ "resource": "" }
c176280
test
// NewResourcesFromConfig parse the a ResourceEntry into a list of resources
{ "resource": "" }
c176281
test
// UserDataFromMap returns a UserData from a map
{ "resource": "" }
c176282
test
// Set parses the flag value into a CommaSeparatedStrings
{ "resource": "" }
c176283
test
// UnmarshalJSON implements JSON Unmarshaler interface
{ "resource": "" }
c176284
test
// Extract unmarshalls a string a given struct if it exists
{ "resource": "" }
c176285
test
// User Data are used to store custom information mainly by Mason and Masonable implementation. // Mason used a LeasedResource keys to store information about other resources that used to // create the given resource. // Set marshalls a struct to a string into the UserData
{ "resource": "" }
c176286
test
// Update updates existing UserData with new UserData. // If a key as an empty string, the key will be deleted
{ "resource": "" }
c176287
test
// ToMap converts a UserData to UserDataMap
{ "resource": "" }
c176288
test
// FromMap feels updates user data from a map
{ "resource": "" }
c176289
test
// ItemToResource casts a Item back to a Resource
{ "resource": "" }
c176290
test
// Run clones the configured refs
{ "resource": "" }
c176291
test
// addSSHKeys will start the ssh-agent and add all the specified // keys, returning the ssh-agent environment variables for reuse
{ "resource": "" }
c176292
test
// Issues is the main work function of the TriageFiler. It fetches and parses cluster data, // then syncs the top issues to github with the IssueCreator.
{ "resource": "" }
c176293
test
// loadClusters parses and filters the json data, then populates every Cluster struct with // aggregated job data and totals. The job data specifies all jobs that failed in a cluster and the // builds that failed for each job, independent of which tests the jobs or builds failed.
{ "resource": "" }
c176294
test
// parseTriageData unmarshals raw json data into a triageData struct and creates a BuildIndexer for // every job.
{ "resource": "" }
c176295
test
// topClusters gets the 'count' most important clusters from a slice of clusters based on number of build failures.
{ "resource": "" }
c176296
test
// topJobsFailed returns the top 'count' job names sorted by number of failing builds.
{ "resource": "" }
c176297
test
// Title is the string to use as the github issue title.
{ "resource": "" }
c176298
test
// Labels returns the labels to apply to the issue created for this cluster on github.
{ "resource": "" }
c176299
test
// New makes a new Cron object
{ "resource": "" }