_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c176200
// useContext calls kubectl config use-context ctx
c176201
// currentContext returns kubectl config current-context
c176202
// command creates an exec.Cmd with Stderr piped to os.Stderr and returns the args
c176203
// describeCluster returns details from gcloud container clusters describe.
c176204
// Set appends a value onto the strslice.
c176205
// parseXML extracts a gcsDir object from XML. If this returns a nil gcsDir, // the XML indicated that this was not a directory at all.
c176206
// Render writes HTML representing this gcsDir to the provided output.
c176207
// Render writes HTML representing this Record to the provided output.
c176208
// Render writes HTML representing this Prefix to the provided output.
c176209
// Printf logs a formatted line to the logging output.
c176210
// NewClient returns a new gerrit client
c176211
// SetReview writes a review comment base on the change id + revision
c176212
// GetBranchRevision returns SHA of HEAD of a branch
c176213
// private handler implementation details
c176214
// NewTypeFilterWrapperPlugin is the constructor of TypeFilterWrapperPlugin
c176215
// AddFlags adds "no-pull-requests" and "no-issues" to the command help
c176216
// CheckFlags makes sure not both PR and issues are ignored
c176217
// AddFlags adds kube client flags to existing FlagSet.
c176218
// Validate validates Kubernetes client options.
c176219
// Client returns a ClientInterface based on the flags provided.
c176220
// newClientFromFlags creates a CRD rest client from provided flags.
c176221
// createRESTConfig for cluster API server, pass empty config file for in-cluster
c176222
// registerResource sends a request to create CRDs and waits for them to initialize
c176223
// newDummyClient creates a in memory client representation for testing, such that we do not need to use a kubernetes API Server.
c176224
// Update implements ClientInterface
c176225
// 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.
c176226
// buildAll ensures that all builds that should run and will be required are built
c176227
// Run will watch for the process being wrapped to exit // and then post the status of that process and any artifacts // to cloud storage.
c176228
// AddConfig adds a new config
c176229
// DeleteConfig deletes an existing config if it exists or fail otherwise
c176230
// UpdateConfig updates a given if it exists or fail otherwise
c176231
// GetConfig returns an existing if it exists errors out otherwise
c176232
// GetConfigs returns all configs
c176233
// SyncConfigs syncs new configs
c176234
// Adds the list of known types to the Scheme.
c176235
// NewController constructs a new controller to reconcile stauses on config change
c176236
// Run monitors the incoming configuration changes to determine when statuses need to be // reconciled on PRs in flight when blocking presubmits change
c176237
// 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...
c176238
// 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.
c176239
// 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 ...
c176240
// 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.
c176241
// canExecuteConcurrently checks whether the provided ProwJob can // be executed concurrently.
c176242
// getJenkinsJobs returns all the Jenkins jobs for all active // prowjobs from the provided list. It handles deduplication.
c176243
// terminateDupes aborts presubmits that have a newer version. It modifies pjs // in-place when it aborts.
c176244
// Throttle client to a rate of at most hourlyTokens requests per hour, // allowing burst tokens.
c176245
// 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. ...
c176246
// NewClient creates a new fully operational GitHub client.
c176247
// 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. // ...
c176248
// NewFakeClient creates a new client that will not perform any actions at all.
c176249
// 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.
c176250
// 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.
c176251
// Not thread-safe - callers need to hold c.mut.
c176252
// readPaginatedResultsWithValues is an override that allows control over the query string.
c176253
// UpdatePullRequest modifies the title, body, open state
c176254
// getLabels is a helper function that retrieves a paginated list of labels from a github URI path.
c176255
// convert to a StateCannotBeChanged if appropriate or else return the original error
c176256
// 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.
c176257
// Token is an implementation for oauth2.TokenSource interface.
c176258
// ListArtifacts gets the names of all artifacts available from the given source
c176259
// KeyToJob takes a spyglass URL and returns the jobName and buildID.
c176260
// prowToGCS returns the GCS key corresponding to the given prow key
c176261
// 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.
c176262
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecorationConfig.
c176263
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSConfiguration.
c176264
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsSpec.
c176265
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJob.
c176266
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobList.
c176267
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobSpec.
c176268
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobStatus.
c176269
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pull.
c176270
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Refs.
c176271
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UtilityImages.
c176272
// upload the result downloaded from path into project.
c176273
// ApplyDefault applies the defaults for the ProwJob decoration. If a field has a zero value, it // replaces that with the value set in def.
c176274
// Validate ensures all the values set in the DecorationConfig are valid.
c176275
// ApplyDefault applies the defaults for the UtilityImages decorations. If a field has a zero value, // it replaces that with the value set in def.
c176276
// ApplyDefault applies the defaults for GCSConfiguration decorations. If a field has a zero value, // it replaces that with the value set in def.
c176277
// Validate ensures all the values set in the GCSConfiguration are valid.
c176278
// ClusterAlias specifies the key in the clusters map to use. // // This allows scheduling a prow job somewhere aside from the default build cluster.
c176279
// NewResource creates a new Boskos Resource.
c176280
// NewResourcesFromConfig parse the a ResourceEntry into a list of resources
c176281
// UserDataFromMap returns a UserData from a map
c176282
// Set parses the flag value into a CommaSeparatedStrings
c176283
// UnmarshalJSON implements JSON Unmarshaler interface
c176284
// Extract unmarshalls a string a given struct if it exists
c176285
// 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
c176286
// Update updates existing UserData with new UserData. // If a key as an empty string, the key will be deleted
c176287
// ToMap converts a UserData to UserDataMap
c176288
// FromMap feels updates user data from a map
c176289
// ItemToResource casts a Item back to a Resource
c176290
// Run clones the configured refs
c176291
// addSSHKeys will start the ssh-agent and add all the specified // keys, returning the ssh-agent environment variables for reuse
c176292
// 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.
c176293
// 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.
c176294
// parseTriageData unmarshals raw json data into a triageData struct and creates a BuildIndexer for // every job.
c176295
// topClusters gets the 'count' most important clusters from a slice of clusters based on number of build failures.
c176296
// topJobsFailed returns the top 'count' job names sorted by number of failing builds.
c176297
// Title is the string to use as the github issue title.
c176298
// Labels returns the labels to apply to the issue created for this cluster on github.
c176299
// New makes a new Cron object