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