_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c175700
test
// makeBuild creates a build from the prowjob, using the prowjob's buildspec.
{ "resource": "" }
c175701
test
// newLabels creates a new Label for each label in the issue
{ "resource": "" }
c175702
test
// newAssignees creates a new Label for each label in the issue
{ "resource": "" }
c175703
test
// NewIssueComment creates a Comment from a github.IssueComment
{ "resource": "" }
c175704
test
// messageFilter builds a filter for jobs based on the messageBody matching the trigger regex of the jobs.
{ "resource": "" }
c175705
test
// IsSuccess means the job passed
{ "resource": "" }
c175706
test
// IsFailure means the job completed with problems.
{ "resource": "" }
c175707
test
// IsAborted means something stopped the job before it could finish.
{ "resource": "" }
c175708
test
// 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.
{ "resource": "" }
c175709
test
// 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...
{ "resource": "" }
c175710
test
// 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.
{ "resource": "" }
c175711
test
// measure records metrics about the provided method, path, and code. // start needs to be recorded before doing the request.
{ "resource": "" }
c175712
test
// 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.
{ "resource": "" }
c175713
test
// 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.
{ "resource": "" }
c175714
test
// 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.
{ "resource": "" }
c175715
test
// 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.
{ "resource": "" }
c175716
test
// getJobName generates the correct job name for this job type
{ "resource": "" }
c175717
test
// getBuildPath builds a path to trigger a regular build for this job
{ "resource": "" }
c175718
test
// GetJobInfo retrieves Jenkins job information
{ "resource": "" }
c175719
test
// JobParameterized tells us if the Jenkins job for this ProwJob is parameterized
{ "resource": "" }
c175720
test
// 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.
{ "resource": "" }
c175721
test
// LaunchBuild launches a regular or parameterized Jenkins build, depending on // whether or not we have `params` to POST
{ "resource": "" }
c175722
test
// 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.
{ "resource": "" }
c175723
test
// BuildFromSpec triggers a Jenkins build for the provided ProwJobSpec. // prowJobID helps us track the build before it's scheduled by Jenkins.
{ "resource": "" }
c175724
test
// GetEnqueuedBuilds lists all enqueued builds for the provided jobs.
{ "resource": "" }
c175725
test
// Abort aborts the provided Jenkins build for job.
{ "resource": "" }
c175726
test
// PresubmitToJobSpec generates a downwardapi.JobSpec out of a Presubmit. // Useful for figuring out GCS paths when parsing jobs out // of a prow config.
{ "resource": "" }
c175727
test
// PostsubmitToJobSpec generates a downwardapi.JobSpec out of a Postsubmit. // Useful for figuring out GCS paths when parsing jobs out // of a prow config.
{ "resource": "" }
c175728
test
// PeriodicToJobSpec generates a downwardapi.JobSpec out of a Periodic. // Useful for figuring out GCS paths when parsing jobs out // of a prow config.
{ "resource": "" }
c175729
test
// GetBuildID calls out to `tot` in order // to vend build identifier for the job
{ "resource": "" }
c175730
test
//listGcsObjects get the slice of gcs objects under a given path
{ "resource": "" }
c175731
test
// FindBaseProfile finds the coverage profile file from the latest healthy build // stored in given gcs directory
{ "resource": "" }
c175732
test
// sortBuilds converts all build from str to int and sorts all builds in descending order and // returns the sorted slice
{ "resource": "" }
c175733
test
// GetAll retrieves all regions from the AWS API
{ "resource": "" }
c175734
test
// NewEventClient creates an EventClient struct. This should be used once per webhook event.
{ "resource": "" }
c175735
test
// 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'.
{ "resource": "" }
c175736
test
// FormatResponse nicely formats a response to a generic reason.
{ "resource": "" }
c175737
test
// FormatSimpleResponse formats a response that does not warrant additional explanation in the // details section.
{ "resource": "" }
c175738
test
// FormatICResponse nicely formats a response to an issue comment.
{ "resource": "" }
c175739
test
// FormatResponseRaw nicely formats a response for one does not have an issue comment
{ "resource": "" }
c175740
test
// Validate ensures that the set of options are // self-consistent and valid.
{ "resource": "" }
c175741
test
// Encode will encode the set of options in the format that // is expected for the configuration environment variable.
{ "resource": "" }
c175742
test
// RegisterIssueHandler registers a plugin's github.IssueEvent handler.
{ "resource": "" }
c175743
test
// RegisterIssueCommentHandler registers a plugin's github.IssueCommentEvent handler.
{ "resource": "" }
c175744
test
// RegisterPullRequestHandler registers a plugin's github.PullRequestEvent handler.
{ "resource": "" }
c175745
test
// RegisterStatusEventHandler registers a plugin's github.StatusEvent handler.
{ "resource": "" }
c175746
test
// RegisterPushEventHandler registers a plugin's github.PushEvent handler.
{ "resource": "" }
c175747
test
// RegisterReviewEventHandler registers a plugin's github.ReviewEvent handler.
{ "resource": "" }
c175748
test
// RegisterReviewCommentEventHandler registers a plugin's github.ReviewCommentEvent handler.
{ "resource": "" }
c175749
test
// RegisterGenericCommentHandler registers a plugin's github.GenericCommentEvent handler.
{ "resource": "" }
c175750
test
// NewAgent bootstraps a new config.Agent struct from the passed dependencies.
{ "resource": "" }
c175751
test
// InitializeCommentPruner attaches a commentpruner.EventClient to the agent to handle // pruning comments.
{ "resource": "" }
c175752
test
// CommentPruner will return the commentpruner.EventClient attached to the agent or an error // if one is not attached.
{ "resource": "" }
c175753
test
// 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.
{ "resource": "" }
c175754
test
// Config returns the agent current Configuration.
{ "resource": "" }
c175755
test
// 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.
{ "resource": "" }
c175756
test
// 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.
{ "resource": "" }
c175757
test
// GenericCommentHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175758
test
// IssueHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175759
test
// IssueCommentHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175760
test
// PullRequestHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175761
test
// ReviewEventHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175762
test
// ReviewCommentEventHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175763
test
// StatusEventHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175764
test
// PushEventHandlers returns a map of plugin names to handlers for the repo.
{ "resource": "" }
c175765
test
// EventsForPlugin returns the registered events for the passed plugin.
{ "resource": "" }
c175766
test
// insertLink attempts to set metadata.links.resultstore.url to viewURL. // // returns true if started metadata was updated.
{ "resource": "" }
c175767
test
// HelpProvider construct the pluginhelp.PluginHelp for this plugin.
{ "resource": "" }
c175768
test
// 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.
{ "resource": "" }
c175769
test
// 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.
{ "resource": "" }
c175770
test
// ValidatePayload ensures that the request payload signature matches the key.
{ "resource": "" }
c175771
test
// PayloadSignature returns the signature that matches the payload.
{ "resource": "" }
c175772
test
// updateString will return true and set have to want iff they are set and different.
{ "resource": "" }
c175773
test
// updateBool will return true and set have to want iff they are set and different.
{ "resource": "" }
c175774
test
// configureOrgMeta will update github to have the non-nil wanted metadata values.
{ "resource": "" }
c175775
test
// configureTeamRepos updates the list of repos that the team has permissions for when necessary
{ "resource": "" }
c175776
test
// ShouldReport tells if a prowjob should be reported by this reporter
{ "resource": "" }
c175777
test
// 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.
{ "resource": "" }
c175778
test
// 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.
{ "resource": "" }
c175779
test
// FindLabels returns the list of labels matching the regex
{ "resource": "" }
c175780
test
// AddFlags binds flags to options.
{ "resource": "" }
c175781
test
// NewAgent returns a new GitHub OAuth Agent.
{ "resource": "" }
c175782
test
// 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.
{ "resource": "" }
c175783
test
// HandleLogout handles GitHub logout request from front-end. It invalidates cookie sessions and // redirect back to the front page.
{ "resource": "" }
c175784
test
// Handles server errors.
{ "resource": "" }
c175785
test
// FromItem implements the Object interface
{ "resource": "" }
c175786
test
// GetItems implements the Collection interface
{ "resource": "" }
c175787
test
// SetItems implements the Collection interface
{ "resource": "" }
c175788
test
// UnmarshalText validates the text is a valid string
{ "resource": "" }
c175789
test
// IsAssignee checks if a user is assigned to the issue.
{ "resource": "" }
c175790
test
// IsAuthor checks if a user is the author of the issue.
{ "resource": "" }
c175791
test
// HasLabel checks if an issue has a given label.
{ "resource": "" }
c175792
test
// Branch returns the name of the branch to which the user pushed.
{ "resource": "" }
c175793
test
// truncate converts "really long messages" into "really ... messages".
{ "resource": "" }
c175794
test
// reportStatus should be called on any prowjob status changes
{ "resource": "" }
c175795
test
// 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.
{ "resource": "" }
c175796
test
// 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.
{ "resource": "" }
c175797
test
// Config returns the lens's configuration.
{ "resource": "" }
c175798
test
// Callback does nothing.
{ "resource": "" }
c175799
test
// FormatRecord describes the record in a human-readable // manner for inclusion into build logs
{ "resource": "" }