_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c176100
// undo merged presets from loaded presubmit and its children
c176101
// these are unnecessary, and make the config larger so we strip them out
c176102
// monitorDiskAndEvict loops monitoring the disk, evicting cache entries // when the disk passes either minPercentBlocksFree until the disk is above // evictUntilPercentBlocksFree
c176103
// difference returns a new orgRepoConfig that represents the set difference of // the repos specified by the receiver and the parameter orgRepoConfigs.
c176104
// union returns a new orgRepoConfig that represents the set union of the // repos specified by the receiver and the parameter orgRepoConfigs
c176105
// clearStaleComments deletes old comments that are no longer applicable.
c176106
// determineReleaseNoteLabel returns the label to be added based on the contents of the 'release-note' // section of a PR's body text.
c176107
// getReleaseNote returns the release note from a PR body // assumes that the PR body followed the PR template
c176108
// NewClient creates a new client from a boskosClient interface
c176109
// Acquire gets a resource with associated leased resources
c176110
// ReleaseOne will release a resource as well as leased resources associated to it
c176111
// UpdateAll updates all the acquired resources with a given state
c176112
// GetGitHubClient creates a client for each token
c176113
// GetUsername finds the login for each token
c176114
// CreateTokenHandler parses the token and create a handler
c176115
// CreateTokenHandlers goes through the list of token files, and create handlers
c176116
// String returns the string representation of a prow job identifier
c176117
// TerminateOlderPresubmitJobs aborts all presubmit jobs from the given list that have a newer version. It calls // the cleanup callback for each job before updating its status as aborted.
c176118
// PushMetrics is meant to run in a goroutine and continuously push // metrics to the provided endpoint.
c176119
// RateLimiter creates a ratelimiting queue for a given prow controller.
c176120
// checkExistingStatus will retrieve the current status of the DCO context for // the provided SHA.
c176121
// checkExistingLabels will check the provided PR for the dco sign off labels, // returning bool's indicating whether the 'yes' and the 'no' label are present.
c176122
// 1. Check commit messages in the pull request for the sign-off string // 2. Check the existing status context value // 3. Check the existing PR labels // 4. If signed off, apply appropriate labels and status context. // 5. If not signed off, apply appropriate labels and status context and add a comment.
c176123
// MardkownSHAList prints the list of commits in a markdown-friendly way.
c176124
// PathForSpec determines the GCS path prefix for files uploaded // for a specific job spec
c176125
// AliasForSpec determines the GCS path aliases for a job spec
c176126
// RootForSpec determines the root GCS path for storing artifacts about // the provided job.
c176127
// NewSingleDefaultRepoPathBuilder returns a builder that handles the legacy path // encoding where a path will contain org and repo for all but one default repo
c176128
// NewExplicitRepoPathBuilder returns a builder that handles the path encoding // where a path will always have an explicit "org_repo" path segment
c176129
// RegisterSourceOrDie registers a source of auto-filed issues.
c176130
// CreateAndSync is the main workhorse function of IssueCreator. It initializes the IssueCreator, // asks each source for its issues to sync, and syncs the issues.
c176131
// loadCache loads the valid labels for the repo, the currently authenticated user, and the issue cache from github.
c176132
// setIntersect removes any elements from the first list that are not in the second, returning the // new set and the removed elements.
c176133
// sync checks to see if an issue is already on github and tries to create a new issue for it if it is not. // True is returned iff a new issue is created.
c176134
// GetAWSCreds tries to fetch AWS credentials from a resource
c176135
// stopper returns a channel that remains open until an interrupt is received.
c176136
// newPipelineConfig returns a client and informer capable of mutating and monitoring the specified config.
c176137
// KubeClient returns a Kubernetes client.
c176138
// ProwJobClient returns a Kubernetes client.
c176139
// resolve sym links into the actual log directory for a particular test run
c176140
// reads specified JSON file in to `data`
c176141
// Lists the GCS "directory paths" immediately under prefix.
c176142
// Lists all GCS keys with given prefix.
c176143
// Gets all build ids for a job.
c176144
// FilterProfilePaths produces a new profile that removes either everything matching or everything // not matching the provided paths, depending on the value of include. // Paths are interpreted as regular expressions. // If include is true, paths is treated as a whitelist; otherwise it is treated as a blacklist.
c176145
// LoadSecrets loads multiple paths of secrets and add them in a map.
c176146
// LoadSingleSecret reads and returns the value of a single file.
c176147
// Set the bool according to the string.
c176148
// NewOpener returns an opener that can read GCS and local paths.
c176149
// IsNotExist will return true if the error is because the object does not exist.
c176150
// LogClose will attempt a close an log any error
c176151
// Writer returns a writer that overwrites the path.
c176152
// InitGitHubOAuthConfig creates an OAuthClient using GitHubOAuth config and a Cookie Store // to retain user credentials.
c176153
// deltaDisplayed converts a coverage ratio delta into a string value to be displayed by coverage robot
c176154
// makeTable checks each coverage change and produce the table content for coverage bot post // It also report on whether any coverage fells below the given threshold
c176155
// ContentForGitHubPost constructs the message covbot posts
c176156
// AddFlags parses options for github client
c176157
// CheckFlags looks for organization and project flags to configure the client
c176158
// getGitHubClient create the github client that we use to communicate with github
c176159
// limitsCheckAndWait make sure we have not reached the limit or wait
c176160
// FetchIssues from GitHub, until 'latest' time
c176161
// hasID look for a specific id in a list of events
c176162
// FetchIssueEvents from github and return the full list, until it matches 'latest' // The entire last page will be included so you can have redundancy.
c176163
// These are the only actions indicating the code diffs may have changed.
c176164
// NewFetcher creates a new Fetcher and initializes the output channels
c176165
// fetchRecentIssues retrieves issues from DB, but only fetches issues modified since last call
c176166
// fetchRecentEventsAndComments retrieves events from DB, but only fetches events created since last call
c176167
// Fetch retrieves all types of events, and push them to output channels
c176168
// Issues is the main work method of FlakyJobReporter. It fetches and parses flaky job data, // then syncs the top issues to github with the IssueCreator.
c176169
// Title yields the initial title text of the github issue.
c176170
// Labels returns the labels to apply to the issue created for this flaky job on github.
c176171
// ReadHTTP fetches file contents from a URL with retries.
c176172
// Return valid json.
c176173
// NewJobSpec converts a prowapi.ProwJobSpec invocation into a JobSpec
c176174
// ResolveSpecFromEnv will determine the Refs being // tested in by parsing Prow environment variable contents
c176175
// EnvForSpec returns a mapping of environment variables // to their values that should be available for a job spec
c176176
// EnvForType returns the slice of environment variables to export for jobType
c176177
// getRevisionFromRef returns a ref or sha from a refs object
c176178
// GetRevisionFromSpec returns a main ref or sha from a spec object
c176179
// helpProvider provides information on the plugin
c176180
// Use load to read a generated files config file, and populate g with the commands. // "paths-from-repo" commands are aggregated into repoPaths. It is the caller's // responsibility to fetch these and load them via g.loadPaths.
c176181
// Use loadPaths to load a file of new-line delimited paths, such as // resolving file data referenced in a "paths-from-repo" command.
c176182
// Match determines whether a file, given here by its full path // is included in the generated files group.
c176183
// CreateDatabase creates and connects a new instance of an InfluxDB // It is created based on the fields set in the configuration.
c176184
// mergeTags merges the default tags with the exta tags. Default will be overridden if it conflicts.
c176185
// tagsToWhere creates a where query to match tags element
c176186
// Push a point to the database. This appends to current batchpoint
c176187
// artifact constructs an artifact handle for the given job build
c176188
// serve starts a http server and serves prometheus metrics. // Meant to be called inside a goroutine.
c176189
// gather metrics from plank. // Meant to be called inside a goroutine.
c176190
// makeRequest renders a branch protection policy into the corresponding GitHub api request.
c176191
// makeReviews renders review policy into the corresponding GitHub api object. // // Returns nil if the policy is nil, or approvals is nil or 0.
c176192
// Header executes the "header" section of the template.
c176193
// Callback is used to retrieve new log segments
c176194
// logLinesAll reads all of an artifact and splits it into lines.
c176195
// LogViewTemplate executes the log viewer template ready for rendering
c176196
// DeepCopyObject implements runtime.Object interface
c176197
// FromItem implements Object interface
c176198
// SetItems implements Collection interface
c176199
// DeepCopyObject implements Collection interface