_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c175900
test
// AllPresubmits returns all prow presubmit jobs in repos. // if repos is empty, return all presubmits.
{ "resource": "" }
c175901
test
// AllPostsubmits returns all prow postsubmit jobs in repos. // if repos is empty, return all postsubmits.
{ "resource": "" }
c175902
test
// AllPeriodics returns all prow periodic jobs.
{ "resource": "" }
c175903
test
// ClearCompiledRegexes removes compiled regexes from the presubmits, // useful for testing when deep equality is needed between presubmits
{ "resource": "" }
c175904
test
// Empty checks if a SimpleConfig could be considered empty
{ "resource": "" }
c175905
test
// NewClient is the constructor for Client
{ "resource": "" }
c175906
test
// ExpandAlias returns members of an alias
{ "resource": "" }
c175907
test
// ExpandAliases returns members of multiple aliases, duplicates are pruned
{ "resource": "" }
c175908
test
// ParseFullConfig will unmarshal OWNERS file's content into a FullConfig // Returns an error if the content cannot be unmarshalled
{ "resource": "" }
c175909
test
// ParseSimpleConfig will unmarshal an OWNERS file's content into a SimpleConfig // Returns an error if the content cannot be unmarshalled
{ "resource": "" }
c175910
test
// decodeOwnersMdConfig will parse the yaml header if it exists and unmarshal it into a singleOwnersConfig. // If no yaml header is found, do nothing // Returns an error if the file cannot be read or the yaml header is found but cannot be unmarshalled.
{ "resource": "" }
c175911
test
// findOwnersForFile returns the OWNERS file path furthest down the tree for a specified file // using ownerMap to check for entries
{ "resource": "" }
c175912
test
// FindApproverOwnersForFile returns the OWNERS file path furthest down the tree for a specified file // that contains an approvers section
{ "resource": "" }
c175913
test
// FindReviewersOwnersForFile returns the OWNERS file path furthest down the tree for a specified file // that contains a reviewers section
{ "resource": "" }
c175914
test
// FindLabelsForFile returns a set of labels which should be applied to PRs // modifying files under the given path.
{ "resource": "" }
c175915
test
// IsNoParentOwners checks if an OWNERS file path refers to an OWNERS file with NoParentOwners enabled.
{ "resource": "" }
c175916
test
// Ratio returns the percentage of statements that are covered
{ "resource": "" }
c175917
test
// FromPayload set the PeriodicProwJobEvent from the PubSub message payload.
{ "resource": "" }
c175918
test
// ToMessage generates a PubSub Message from a PeriodicProwJobEvent.
{ "resource": "" }
c175919
test
// UnmarshalText returns an error if text != secret or closed
{ "resource": "" }
c175920
test
// compileApplicableBlockades filters the specified blockades and compiles those that apply to the repo.
{ "resource": "" }
c175921
test
// calculateBlocks determines if a PR should be blocked and returns the summary describing the block.
{ "resource": "" }
c175922
test
// MergeMultipleProfiles merges more than two profiles together. // MergeMultipleProfiles is equivalent to calling MergeProfiles on pairs of profiles // until only one profile remains.
{ "resource": "" }
c175923
test
// AddFlags adds flags to the FlagSet that populate // the wrapper options struct provided.
{ "resource": "" }
c175924
test
// processNextItem attempts to upload container logs to GCS
{ "resource": "" }
c175925
test
// AggregateFilter builds a filter that evaluates the child filters in order // and returns the first match
{ "resource": "" }
c175926
test
// FilterPresubmits determines which presubmits should run and which should be skipped // by evaluating the user-provided filter.
{ "resource": "" }
c175927
test
// MakeCommand returns a `filter` command.
{ "resource": "" }
c175928
test
// Push adds event to the heap
{ "resource": "" }
c175929
test
// Pop retrieves the last added event
{ "resource": "" }
c175930
test
// NewFakeOpenPluginWrapper is the constructor for FakeOpenPluginWrapper
{ "resource": "" }
c175931
test
// ReceiveIssue creates a fake "opened" event
{ "resource": "" }
c175932
test
// Validate ensures that the configuration options are valid
{ "resource": "" }
c175933
test
// Complete internalizes command line arguments
{ "resource": "" }
c175934
test
// Set parses out overrides from user input
{ "resource": "" }
c175935
test
// ensure will ensure binary is on path or return an error with install message.
{ "resource": "" }
c175936
test
// output returns the trimmed output of running args, or an err on non-zero exit.
{ "resource": "" }
c175937
test
// projects returns the list of accessible gcp projects
{ "resource": "" }
c175938
test
// selectProject returns the user-selected project, defaulting to the current gcloud one.
{ "resource": "" }
c175939
test
// createCluster causes gcloud to create a cluster in project, returning the context name
{ "resource": "" }
c175940
test
// createContext has the user create a context.
{ "resource": "" }
c175941
test
// contextConfig returns the loader and config, which can create a clientconfig.
{ "resource": "" }
c175942
test
// selectContext allows the user to choose a context // This may involve creating a cluster
{ "resource": "" }
c175943
test
// applyCreate will dry-run create and then pipe this to kubectl apply. // // If we use the create verb it will fail if the secret already exists. // And kubectl will reject the apply verb with a secret.
{ "resource": "" }
c175944
test
// determineSkippedPresubmits identifies the largest set of contexts we can actually // post skipped contexts for, given a set of presubmits we're triggering. We don't // want to skip a job that posts a context that will be written to by a job we just // identified for triggering or the skipped context will override th...
{ "resource": "" }
c175945
test
// Dispatch receives channels to each type of events, and dispatch them to each plugins.
{ "resource": "" }
c175946
test
// CreateIssue tries to create and return a new github issue.
{ "resource": "" }
c175947
test
// CreateStatus creates or updates a status context on the indicated reference.
{ "resource": "" }
c175948
test
// ForEachPR iterates over all PRs that fit the specified criteria, calling the munge function on every PR. // If the munge function returns a non-nil error, ForEachPR will return immediately with a non-nil // error unless continueOnError is true in which case an error will be logged and the remaining PRs will be munge...
{ "resource": "" }
c175949
test
// GetCollaborators returns all github users who are members or outside collaborators of the repo.
{ "resource": "" }
c175950
test
// GetCombinedStatus retrieves the CombinedStatus for the specified reference.
{ "resource": "" }
c175951
test
// GetIssues gets all the issues in a repo that meet the list options.
{ "resource": "" }
c175952
test
// GetRepoLabels gets all the labels that valid in the specified repo.
{ "resource": "" }
c175953
test
// GetUser gets the github user with the specified login or the currently authenticated user. // To get the currently authenticated user specify a login of "".
{ "resource": "" }
c175954
test
// Check if the config provided through the flags take valid values.
{ "resource": "" }
c175955
test
// Create logfile for systemd service in outputDir with the given journalctl outputMode.
{ "resource": "" }
c175956
test
// createFullSystemdLogfile creates logfile for full systemd journal in the outputDir.
{ "resource": "" }
c175957
test
// Create logfiles for systemd services in outputDir.
{ "resource": "" }
c175958
test
// Copy logfiles specific to this node based on the cloud-provider, system services, etc // to a temporary directory. Also create logfiles for systemd services if journalctl is present. // We do not expect this function to see an error.
{ "resource": "" }
c175959
test
// Write a marker file to GCS named after this node to indicate logexporter's success. // The directory to which we write this file can then be used as a registry to quickly // fetch the list of nodes on which logexporter succeeded.
{ "resource": "" }
c175960
test
// MakeCommand returns a `junit` command.
{ "resource": "" }
c175961
test
// warnDeprecated prints a deprecation warning for a particular configuration // option.
{ "resource": "" }
c175962
test
// Describe generates a human readable description of the behavior that this // configuration specifies.
{ "resource": "" }
c175963
test
// TriggerFor finds the Trigger for a repo, if one exists // a trigger can be listed for the repo itself or for the // owning organization
{ "resource": "" }
c175964
test
// EnabledReposForPlugin returns the orgs and repos that have enabled the passed plugin.
{ "resource": "" }
c175965
test
// EnabledReposForExternalPlugin returns the orgs and repos that have enabled the passed // external plugin.
{ "resource": "" }
c175966
test
// SetDefaults sets default options for config updating
{ "resource": "" }
c175967
test
// validatePlugins will return error if // there are unknown or duplicated plugins.
{ "resource": "" }
c175968
test
// ShouldReport returns if this prowjob should be reported by the gerrit reporter
{ "resource": "" }
c175969
test
// Run clones the refs under the prescribed directory and optionally // configures the git username and email in the repository as well.
{ "resource": "" }
c175970
test
// PathForRefs determines the full path to where // refs should be cloned
{ "resource": "" }
c175971
test
// gitCtxForRefs creates a gitCtx based on the provide refs and baseDir.
{ "resource": "" }
c175972
test
// commandsForBaseRef returns the list of commands needed to initialize and // configure a local git directory, as well as fetch and check out the provided // base ref.
{ "resource": "" }
c175973
test
// gitTimestampEnvs returns the list of environment variables needed to override // git's author and commit timestamps when creating new commits.
{ "resource": "" }
c175974
test
// gitRevParse returns current commit from HEAD in a git tree
{ "resource": "" }
c175975
test
// commandsForPullRefs returns the list of commands needed to fetch and // merge any pull refs as well as submodules. These commands should be run only // after the commands provided by commandsForBaseRef have been run // successfully. // Each merge commit will be created at sequential seconds after fakeTimestamp. // I...
{ "resource": "" }
c175976
test
// ProduceCovList summarizes profiles and returns the result
{ "resource": "" }
c175977
test
// popRandom randomly selects an element of 'set' and pops it.
{ "resource": "" }
c175978
test
// resolve loads all of the clients we need and caches them for future calls.
{ "resource": "" }
c175979
test
// ProwJobClientset returns a ProwJob clientset for use in informer factories.
{ "resource": "" }
c175980
test
// ProwJobClient returns a ProwJob client.
{ "resource": "" }
c175981
test
// InfrastructureClusterClient returns a Kubernetes client for the infrastructure cluster.
{ "resource": "" }
c175982
test
// BuildClusterClients returns Pod clients for build clusters.
{ "resource": "" }
c175983
test
// Age gives the time since the state has been activated.
{ "resource": "" }
c175984
test
// ReceiveEvent checks if the event matches the exit criteria. // Returns a new InactiveState or self, and true if it changed.
{ "resource": "" }
c175985
test
// ReceiveEvent checks if the event matches the entry criteria // Returns a new ActiveState or self, and true if it changed.
{ "resource": "" }
c175986
test
// Active is true if all the states are active.
{ "resource": "" }
c175987
test
// Age returns the time since all states have been activated. // It will panic if any of the state is not active.
{ "resource": "" }
c175988
test
// ReceiveEvent will send the event to each individual state, and update // them if they change.
{ "resource": "" }
c175989
test
// ProwJobs returns a ProwJobInformer.
{ "resource": "" }
c175990
test
// ItemToResourcesConfig casts an Item object to a ResourcesConfig
{ "resource": "" }
c175991
test
// Copy returns a copy of the TypeToResources
{ "resource": "" }
c175992
test
// MakeCommand returns an `aggregate` command.
{ "resource": "" }
c175993
test
// incrementNumPendingJobs increments the amount of // pending ProwJobs for the given job identifier
{ "resource": "" }
c175994
test
// setPreviousReportState sets the github key for PrevReportStates // to current state. This is a work-around for plank -> crier // migration to become seamless.
{ "resource": "" }
c175995
test
// SyncMetrics records metrics for the cached prowjobs.
{ "resource": "" }
c175996
test
// DumpProfile dumps the profiles given to writer in go coverage format.
{ "resource": "" }
c175997
test
// blocksEqual returns true if the blocks refer to the same code, otherwise false. // It does not care about Count.
{ "resource": "" }
c175998
test
// NewProwJobInformer constructs a new informer for ProwJob type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }
c175999
test
// NewFilteredProwJobInformer constructs a new informer for ProwJob type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
{ "resource": "" }