_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c176000 | // New constructs a Spyglass object from a JobAgent, a config.Agent, and a storage Client. | |
c176001 | // Lenses gets all views of all artifact files matching each regexp with a registered lens | |
c176002 | // JobPath returns a link to the GCS directory for the job specified in src | |
c176003 | // RunPath returns the path to the GCS directory for the job run specified in src. | |
c176004 | // ExtraLinks fetches started.json and extracts links from metadata.links. | |
c176005 | // needDemux returns whether there are any external plugins that need to
// get the present event. | |
c176006 | // demuxExternal dispatches the provided payload to the external plugins. | |
c176007 | // dispatch creates a new request using the provided payload and headers
// and dispatches the request to the provided endpoint. | |
c176008 | // AddFlags adds "state" and "percentiles" to the command help | |
c176009 | // CheckFlags configures which states to monitor | |
c176010 | // ReceiveIssueEvent computes age percentiles and saves them to InfluxDB | |
c176011 | // Load loads and parses the config at path. | |
c176012 | // loadConfig loads one or multiple config files and returns a config object. | |
c176013 | // yamlToConfig converts a yaml file into a Config object | |
c176014 | // ReadFileMaybeGZIP wraps ioutil.ReadFile, returning the decompressed contents
// if the file is gzipped, or otherwise the raw contents | |
c176015 | // finalizeJobConfig mutates and fixes entries for jobspecs | |
c176016 | // validateComponentConfig validates the infrastructure component configuration | |
c176017 | // ConfigPath returns the value for the component's configPath if provided
// explicitly or default otherwise. | |
c176018 | // ValidateController validates the provided controller config. | |
c176019 | // defaultJobBase configures common parameters, currently Agent and Namespace. | |
c176020 | // SetPresubmitRegexes compiles and validates all the regular expressions for
// the provided presubmits. | |
c176021 | // setBrancherRegexes compiles and validates all the regular expressions for
// the provided branch specifiers. | |
c176022 | // SetPostsubmitRegexes compiles and validates all the regular expressions for
// the provided postsubmits. | |
c176023 | // Body creates a view for prow job metadata. | |
c176024 | //NewBoskosHandler constructs the boskos handler. | |
c176025 | // ErrorToStatus translates error into http code | |
c176026 | // DumpProfile dumps the profile to the given file destination.
// If the destination is "-", it instead writes to stdout. | |
c176027 | // LoadProfile loads a profile from the given filename.
// If the filename is "-", it instead reads from stdin. | |
c176028 | // NewClient returns a client that talks to GitHub. It will fail if git is not
// in the PATH. | |
c176029 | // SetCredentials sets credentials in the client to be used for pushing to
// or pulling from remote repositories. | |
c176030 | // Checkout runs git checkout. | |
c176031 | // CheckoutNewBranch creates a new branch and checks it out. | |
c176032 | // Merge attempts to merge commitlike into the current branch. It returns true
// if the merge completes. It returns an error if the abort fails. | |
c176033 | // CheckoutPullRequest does exactly that. | |
c176034 | // Config runs git config. | |
c176035 | // retryCmd will retry the command a few times with backoff. Use this for any
// commands that will be talking to GitHub, such as clones or fetches. | |
c176036 | // LabelsAndAnnotationsForSpec returns a minimal set of labels to add to prowjobs or its owned resources.
//
// User-provided extraLabels and extraAnnotations values will take precedence over auto-provided values. | |
c176037 | // ProwJobToPod converts a ProwJob to a Pod that will run the tests. | |
c176038 | // CloneLogPath returns the path to the clone log file in the volume mount.
// CloneLogPath returns the path to the clone log file in the volume mount. | |
c176039 | // cloneEnv encodes clonerefs Options into json and puts it into an environment variable | |
c176040 | // sshVolume converts a secret holding ssh keys into the corresponding volume and mount.
//
// This is used by CloneRefs to attach the mount to the clonerefs container. | |
c176041 | // InjectEntrypoint will make the entrypoint binary in the tools volume the container's entrypoint, which will output to the log volume. | |
c176042 | // PlaceEntrypoint will copy entrypoint from the entrypoint image to the tools volume | |
c176043 | // kubeEnv transforms a mapping of environment variables
// into their serialized form for a PodSpec, sorting by
// the name of the env vars | |
c176044 | // Client returns a Kubernetes client. | |
c176045 | // handle interacts with GitHub to drive the pull request to the
// proper state by adding and removing comments and labels. If a
// PR has a WIP prefix, it needs an explanatory comment and label.
// Otherwise, neither should be present. | |
c176046 | // SendHook sends a GitHub event of type eventType to the provided address. | |
c176047 | // Clean by janitor script | |
c176048 | // async janitor goroutine | |
c176049 | // Run will block listening to all subscriptions and return once the context is cancelled
// or one of the subscription has a unrecoverable error. | |
c176050 | // specToStarted translate a jobspec into a started struct
// optionally overwrite RepoVersion with provided mainRefSHA | |
c176051 | // Run will start the initupload job to upload the artifacts, logs and clone status. | |
c176052 | // hasPRChanged indicates that the code diff may have changed. | |
c176053 | // UpdateIssues downloads new issues and saves in database | |
c176054 | // handleReviewEvent should only handle reviews that have no approval command.
// Reviews with approval commands will be handled by handleGenericCommentEvent. | |
c176055 | // Returns associated issue, or 0 if it can't find any.
// This is really simple, and could be improved later. | |
c176056 | // optionsForRepo gets the plugins.Approve struct that is applicable to the indicated repo. | |
c176057 | // localOnlyMain contains logic used only when running locally, and is mutually exclusive with
// prodOnlyMain. | |
c176058 | // summarize summarizes all items in the Group and stores the result | |
c176059 | // Subset returns the subset obtained through applying filter | |
c176060 | // ListDirectories gets a list a sub-directories that contains source code. | |
c176061 | // readRequest extracts the request from the AdmissionReview reader | |
c176062 | // handle reads the request and writes the response | |
c176063 | // writeResponse gets the response from onlyUpdateStatus and writes it to w. | |
c176064 | // onlyUpdateStatus returns the response to the request | |
c176065 | // convertSuiteMeta converts a junit result in gcs to a ResultStore Suite. | |
c176066 | // NewHealth creates a new health request multiplexer and starts serving the liveness endpoint
// on the given port | |
c176067 | // ServeReady starts serving the readiness endpoint | |
c176068 | // NewController makes a Controller out of the given clients. | |
c176069 | // newExpectedContext creates a Context with Expected state. | |
c176070 | // contextsToStrings converts a list Context to a list of string | |
c176071 | // filterSubpools filters non-pool PRs out of the initially identified subpools,
// deleting any pools that become empty.
// See filterSubpool for filtering details. | |
c176072 | // filterSubpool filters PRs from an initially identified subpool, returning the
// filtered subpool.
// If the subpool becomes empty 'nil' is returned to indicate that the subpool
// should be deleted. | |
c176073 | // poolPRMap collects all subpool PRs into a map containing all pooled PRs. | |
c176074 | // unsuccessfulContexts determines which contexts from the list that we care about are
// failed. For instance, we do not care about our own context.
// If the branchProtection is set to only check for required checks, we will skip
// all non-required tests. If required tests are missing from the list, they will be
// ... | |
c176075 | // accumulate returns the supplied PRs sorted into three buckets based on their
// accumulated state across the presubmits. | |
c176076 | // tryMerge attempts 1 merge and returns a bool indicating if we should try
// to merge the remaining PRs and possibly an error. | |
c176077 | // prChanges gets the files changed by the PR, either from the cache or by
// querying GitHub. | |
c176078 | // prune removes any cached file changes that were not used since the last prune. | |
c176079 | // dividePool splits up the list of pull requests and prow jobs into a group
// per repo and branch. It only keeps ProwJobs that match the latest branch. | |
c176080 | // AggregateProfiles takes multiple coverage profiles and produces a new
// coverage profile that counts the number of profiles that hit a block at least
// once. | |
c176081 | // countToBoolean converts a profile containing hit counts to instead contain
// only 1s or 0s. | |
c176082 | // NewStorage instantiates a new Storage with a PersistenceLayer implementation
// If storage string is not empty, it will read resource data from the file | |
c176083 | // AddResource adds a new resource | |
c176084 | // DeleteResource deletes a resource if it exists, errors otherwise | |
c176085 | // UpdateResource updates a resource if it exists, errors otherwise | |
c176086 | // GetResource gets an existing resource, errors otherwise | |
c176087 | // GetResources list all resources | |
c176088 | // SyncResources will update resources every 10 mins.
// It will append newly added resources to ranch.Resources,
// And try to remove newly deleted resources from ranch.Resources.
// If the newly deleted resource is currently held by a user, the deletion will
// yield to next update cycle. | |
c176089 | // ParseConfig reads in configPath and returns a list of resource objects
// on success. | |
c176090 | // problemsInFiles runs buildifier on the files. It returns a map from the file to
// a list of problems with that file. | |
c176091 | // NewPodLogArtifact creates a new PodLogArtifact | |
c176092 | // CanonicalLink returns a link to where pod logs are streamed | |
c176093 | // ReadAt implements reading a range of bytes from the pod logs endpoint | |
c176094 | // ReadAll reads all available pod logs, failing if they are too large | |
c176095 | // ReadAtMost reads at most n bytes | |
c176096 | // ReadTail reads the last n bytes of the pod log | |
c176097 | // newProblems compares the list of problems with the list of past comments on
// the PR to decide which are new. | |
c176098 | // problemsInFiles runs golint on the files. It returns a map from the file to
// a map from the line in the patch to the problem. | |
c176099 | // remove merged presets from a podspec |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.