_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c175700
// makeBuild creates a build from the prowjob, using the prowjob's buildspec.
c175701
// newLabels creates a new Label for each label in the issue
c175702
// newAssignees creates a new Label for each label in the issue
c175703
// NewIssueComment creates a Comment from a github.IssueComment
c175704
// messageFilter builds a filter for jobs based on the messageBody matching the trigger regex of the jobs.
c175705
// IsSuccess means the job passed
c175706
// IsFailure means the job completed with problems.
c175707
// IsAborted means something stopped the job before it could finish.
c175708
// ProwJobID extracts the ProwJob identifier for the // Jenkins build in order to correlate the build with // a ProwJob. If the build has an empty PROW_JOB_ID // it didn't start by prow.
c175709
// BuildID extracts the build identifier used for // placing and discovering build artifacts. // This identifier can either originate from tot // or the snowflake library, depending on how the // Jenkins operator is configured to run. // We return an empty string if we are dealing with // a build that does not have the...
c175710
// CrumbRequest requests a CSRF protection token from Jenkins to // use it in subsequent requests. Required for Jenkins masters that // prevent cross site request forgery exploits.
c175711
// measure records metrics about the provided method, path, and code. // start needs to be recorded before doing the request.
c175712
// GetSkipMetrics fetches the data found in the provided path. It returns the // content of the response or any errors that occurred during the request or // http errors. Metrics will not be gathered for this request.
c175713
// Get fetches the data found in the provided path. It returns the // content of the response or any errors that occurred during the // request or http errors.
c175714
// request executes a request with the provided method and path. // It retries on transport failures and 500s. measure is provided // to enable or disable gathering metrics for specific requests // to avoid high-cardinality metrics.
c175715
// doRequest executes a request with the provided method and path // exactly once. It sets up authentication if the jenkins client // is configured accordingly. It's up to callers of this function // to build retries and error handling.
c175716
// getJobName generates the correct job name for this job type
c175717
// getBuildPath builds a path to trigger a regular build for this job
c175718
// GetJobInfo retrieves Jenkins job information
c175719
// JobParameterized tells us if the Jenkins job for this ProwJob is parameterized
c175720
// EnsureBuildableJob attempts to detect a job that hasn't yet ran and populated // its parameters. If detected, it tries to run a build until the job parameters // are processed, then it aborts the build.
c175721
// LaunchBuild launches a regular or parameterized Jenkins build, depending on // whether or not we have `params` to POST
c175722
// Build triggers a Jenkins build for the provided ProwJob. The name of // the ProwJob is going to be used as the Prow Job ID parameter that will // help us track the build before it's scheduled by Jenkins.
c175723
// BuildFromSpec triggers a Jenkins build for the provided ProwJobSpec. // prowJobID helps us track the build before it's scheduled by Jenkins.
c175724
// GetEnqueuedBuilds lists all enqueued builds for the provided jobs.
c175725
// Abort aborts the provided Jenkins build for job.
c175726
// PresubmitToJobSpec generates a downwardapi.JobSpec out of a Presubmit. // Useful for figuring out GCS paths when parsing jobs out // of a prow config.
c175727
// PostsubmitToJobSpec generates a downwardapi.JobSpec out of a Postsubmit. // Useful for figuring out GCS paths when parsing jobs out // of a prow config.
c175728
// PeriodicToJobSpec generates a downwardapi.JobSpec out of a Periodic. // Useful for figuring out GCS paths when parsing jobs out // of a prow config.
c175729
// GetBuildID calls out to `tot` in order // to vend build identifier for the job
c175730
//listGcsObjects get the slice of gcs objects under a given path
c175731
// FindBaseProfile finds the coverage profile file from the latest healthy build // stored in given gcs directory
c175732
// sortBuilds converts all build from str to int and sorts all builds in descending order and // returns the sorted slice
c175733
// GetAll retrieves all regions from the AWS API
c175734
// NewEventClient creates an EventClient struct. This should be used once per webhook event.
c175735
// PruneComments fetches issue comments if they have not yet been fetched for this webhook event // and then deletes any bot comments indicated by the func 'shouldPrune'.
c175736
// FormatResponse nicely formats a response to a generic reason.
c175737
// FormatSimpleResponse formats a response that does not warrant additional explanation in the // details section.
c175738
// FormatICResponse nicely formats a response to an issue comment.
c175739
// FormatResponseRaw nicely formats a response for one does not have an issue comment
c175740
// Validate ensures that the set of options are // self-consistent and valid.
c175741
// Encode will encode the set of options in the format that // is expected for the configuration environment variable.
c175742
// RegisterIssueHandler registers a plugin's github.IssueEvent handler.
c175743
// RegisterIssueCommentHandler registers a plugin's github.IssueCommentEvent handler.
c175744
// RegisterPullRequestHandler registers a plugin's github.PullRequestEvent handler.
c175745
// RegisterStatusEventHandler registers a plugin's github.StatusEvent handler.
c175746
// RegisterPushEventHandler registers a plugin's github.PushEvent handler.
c175747
// RegisterReviewEventHandler registers a plugin's github.ReviewEvent handler.
c175748
// RegisterReviewCommentEventHandler registers a plugin's github.ReviewCommentEvent handler.
c175749
// RegisterGenericCommentHandler registers a plugin's github.GenericCommentEvent handler.
c175750
// NewAgent bootstraps a new config.Agent struct from the passed dependencies.
c175751
// InitializeCommentPruner attaches a commentpruner.EventClient to the agent to handle // pruning comments.
c175752
// CommentPruner will return the commentpruner.EventClient attached to the agent or an error // if one is not attached.
c175753
// Load attempts to load config from the path. It returns an error if either // the file can't be read or the configuration is invalid.
c175754
// Config returns the agent current Configuration.
c175755
// Set attempts to set the plugins that are enabled on repos. Plugins are listed // as a map from repositories to the list of plugins that are enabled on them. // Specifying simply an org name will also work, and will enable the plugin on // all repos in the org.
c175756
// Start starts polling path for plugin config. If the first attempt fails, // then start returns the error. Future errors will halt updates but not stop.
c175757
// GenericCommentHandlers returns a map of plugin names to handlers for the repo.
c175758
// IssueHandlers returns a map of plugin names to handlers for the repo.
c175759
// IssueCommentHandlers returns a map of plugin names to handlers for the repo.
c175760
// PullRequestHandlers returns a map of plugin names to handlers for the repo.
c175761
// ReviewEventHandlers returns a map of plugin names to handlers for the repo.
c175762
// ReviewCommentEventHandlers returns a map of plugin names to handlers for the repo.
c175763
// StatusEventHandlers returns a map of plugin names to handlers for the repo.
c175764
// PushEventHandlers returns a map of plugin names to handlers for the repo.
c175765
// EventsForPlugin returns the registered events for the passed plugin.
c175766
// insertLink attempts to set metadata.links.resultstore.url to viewURL. // // returns true if started metadata was updated.
c175767
// HelpProvider construct the pluginhelp.PluginHelp for this plugin.
c175768
// getPatch gets the patch for the provided PR and creates a local // copy of it. It returns its location in the filesystem and any // encountered error.
c175769
// releaseNoteNoteFromParentPR gets the release note from the // parent PR and formats it as per the PR template so that // it can be copied to the cherry-pick PR.
c175770
// ValidatePayload ensures that the request payload signature matches the key.
c175771
// PayloadSignature returns the signature that matches the payload.
c175772
// updateString will return true and set have to want iff they are set and different.
c175773
// updateBool will return true and set have to want iff they are set and different.
c175774
// configureOrgMeta will update github to have the non-nil wanted metadata values.
c175775
// configureTeamRepos updates the list of repos that the team has permissions for when necessary
c175776
// ShouldReport tells if a prowjob should be reported by this reporter
c175777
// Run will upload files to GCS as prescribed by // the options. Any extra files can be passed as // a parameter and will have the prefix prepended // to their destination in GCS, so the caller can // operate relative to the base of the GCS dir.
c175778
// Format implements logrus.Formatter's Format. We allocate a new Fields // map in order to not modify the caller's Entry, as that is not a thread // safe operation.
c175779
// FindLabels returns the list of labels matching the regex
c175780
// AddFlags binds flags to options.
c175781
// NewAgent returns a new GitHub OAuth Agent.
c175782
// HandleLogin handles GitHub login request from front-end. It starts a new git oauth session and // redirect user to GitHub OAuth end-point for authentication.
c175783
// HandleLogout handles GitHub logout request from front-end. It invalidates cookie sessions and // redirect back to the front page.
c175784
// Handles server errors.
c175785
// FromItem implements the Object interface
c175786
// GetItems implements the Collection interface
c175787
// SetItems implements the Collection interface
c175788
// UnmarshalText validates the text is a valid string
c175789
// IsAssignee checks if a user is assigned to the issue.
c175790
// IsAuthor checks if a user is the author of the issue.
c175791
// HasLabel checks if an issue has a given label.
c175792
// Branch returns the name of the branch to which the user pushed.
c175793
// truncate converts "really long messages" into "really ... messages".
c175794
// reportStatus should be called on any prowjob status changes
c175795
// parseIssueComments returns a list of comments to delete, a list of table // entries, and the ID of the comment to update. If there are no table entries // then don't make a new comment. Otherwise, if the comment to update is 0, // create a new comment.
c175796
// createComment take a ProwJob and a list of entries generated with // createEntry and returns a nicely formatted comment. It may fail if template // execution fails.
c175797
// Config returns the lens's configuration.
c175798
// Callback does nothing.
c175799
// FormatRecord describes the record in a human-readable // manner for inclusion into build logs