Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cuishuang 2022-03-03 21:02:31 +08:00
Родитель 0a1fb72e2b
Коммит cec1a722f8
17 изменённых файлов: 20 добавлений и 20 удалений

Просмотреть файл

@ -16,7 +16,7 @@ import (
"golang.org/x/build/internal/cloud"
)
// awsClient represents the AWS specific calls made durring the
// awsClient represents the AWS specific calls made during the
// lifecycle of a buildlet. This is a partial implementation of the AWSClient found at
// `golang.org/x/internal/cloud`.
type awsClient interface {
@ -45,7 +45,7 @@ func (c *EC2Client) StartNewVM(ctx context.Context, buildEnv *buildenv.Environme
return nil, errors.New("TLS keypair is not set")
}
if buildEnv == nil {
return nil, errors.New("invalid build enviornment")
return nil, errors.New("invalid build environment")
}
if hconf == nil {
return nil, errors.New("invalid host configuration")

Просмотреть файл

@ -1727,7 +1727,7 @@ func enableMacDeveloperMode() {
// that "SampleTools wants to make changes" that block the buildlet from starting.
// But oddly, not via gomote. Only during startup. The environment must be different
// enough that in one case macOS asks for permission (because it can use the GUI?)
// and in the gomote case (where the environment is largley scrubbed) it can't do
// and in the gomote case (where the environment is largely scrubbed) it can't do
// the GUI dialog somehow and must just try to do it anyway and finds that passwordless
// sudo works. But using sudo seems to make it always work.
// For extra paranoia, use a context to not block start-up.

Просмотреть файл

@ -1530,7 +1530,7 @@ func (st *buildStatus) runTests(helpers <-chan buildlet.Client) (remoteErr, err
// Always include the test header after
// metadata changes. This is a readability
// optimization that ensures that tests are
// always immediately preceeded by their test
// always immediately preceded by their test
// banner, even if it is duplicate banner
// because the test metadata changed.
printHeader = true

Просмотреть файл

@ -297,7 +297,7 @@ func newGitMirrorChecker() *healthChecker {
func newMacHealthChecker() *healthChecker {
var hosts []string
const numMacHosts = 8 // physical Mac Pros, not reverse buildlet connections. M1 Macs will be included in seperate checks.
const numMacHosts = 8 // physical Mac Pros, not reverse buildlet connections. M1 Macs will be included in separate checks.
for i := 1; i <= numMacHosts; i++ {
for _, suf := range []string{"a", "b"} {
name := fmt.Sprintf("macstadium_host%02d%s", i, suf)
@ -466,7 +466,7 @@ func reverseHostChecker(hosts []string) func(cw *checkWriter) {
// modified due to golang.org/issues/36841
// instead of a single lock being held while all of the
// operations are performed, there is now a lock held
// durring each BuildletLastSeen call and again when
// during each BuildletLastSeen call and again when
// the buildlet host names are retrieved.
return func(cw *checkWriter) {
p := pool.ReversePool()

Просмотреть файл

@ -251,7 +251,7 @@ func watchSerial(zone, name string) {
}
// awsCredentialsFromSecrets retrieves AWS credentials from the secret management service.
// This funciton returns the key ID and the access key.
// This function returns the key ID and the access key.
func awsCredentialsFromSecrets() (string, string, error) {
c, err := secret.NewClient()
if err != nil {

Просмотреть файл

@ -673,7 +673,7 @@ func (m *gitMirror) subscribeToMaintnerAndTickle() error {
// prevent retry looping faster than once every 10
// seconds; but usually retry immediately in the case
// where we've been runing for a while already.
// where we've been running for a while already.
<-retryTicker.C
}
}

Просмотреть файл

@ -6,7 +6,7 @@ After=network.target
[Service]
User=gopher
Environment="PATH=/home/gopher/bin:/usr/local/bin:/usr/bin"
# The following file decalres these variables: GOVC_URL GOVC_USERNAME GOVC_PASSWORD GOVC_INSECURE
# The following file declares these variables: GOVC_URL GOVC_USERNAME GOVC_PASSWORD GOVC_INSECURE
EnvironmentFile=/home/gopher/govc_env_file
ExecStart=/home/gopher/makemac -auto
Restart=always

Просмотреть файл

@ -1118,7 +1118,7 @@ func match(query, goVer string) bool {
}
// splitLogMessage splits a string into n number of strings of maximum size maxStrLen.
// It naively attempts to split the string along the bounderies of new line characters in order
// It naively attempts to split the string along the boundaries of new line characters in order
// to make each individual string as readable as possible.
func splitLogMessage(s string, maxStrLen int) []string {
sl := []string{}

Просмотреть файл

@ -28,7 +28,7 @@ import (
var (
htmlMode = flag.Bool("html", false, "write HTML output")
exclFile = flag.String("exclude-from", "", "optional path to release notes HTML file. If specified, any 'CL NNNN' occurence in the content will cause that CL to be excluded from this tool's output.")
exclFile = flag.String("exclude-from", "", "optional path to release notes HTML file. If specified, any 'CL NNNN' occurrence in the content will cause that CL to be excluded from this tool's output.")
)
// change is a change that was noted via a RELNOTE= comment.

Просмотреть файл

@ -144,7 +144,7 @@ func runDocker() {
}
for i, v := range flag.Args() {
// Replace any occurence of REPO with gcr.io/sybolic-datum-552 or
// Replace any occurrence of REPO with gcr.io/sybolic-datum-552 or
// the staging equivalent. Note that getEnv() is only called if
// REPO is already present, so the --prod and --staging flags
// aren't required to run "xb docker ..." in general.

Просмотреть файл

@ -1029,7 +1029,7 @@ func (c *Client) GetMergeable(ctx context.Context, changeID, revision string) (M
}
// ActionInfo contains information about actions a client can make to
// maniuplate a resource.
// manipulate a resource.
//
// See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#action-info.
type ActionInfo struct {

Просмотреть файл

@ -86,7 +86,7 @@ type Instance struct {
CPUCount int64
// CreatedAt is the time when the instance was launched.
CreatedAt time.Time
// Description is a user defined descripton of the instance.
// Description is a user defined description of the instance.
Description string
// ID is the instance ID.
ID string

Просмотреть файл

@ -75,7 +75,7 @@ func WithVMDeleteTimeout(timeout time.Duration) EC2Opt {
type EC2Buildlet struct {
// awsClient is the client used to interact with AWS services.
awsClient awsClient
// buildEnv contains the build enviornment settings.
// buildEnv contains the build environment settings.
buildEnv *buildenv.Environment
// buildletClient is the client used to create a buildlet.
buildletClient ec2BuildletClient

Просмотреть файл

@ -82,7 +82,7 @@ var (
errorsClient *errorreporting.Client // Stackdriver errors client
gkeNodeHostname string
// values created due to seperating the buildlet pools into a seperate package
// values created due to separating the buildlet pools into a separate package
gceMode string
deleteTimeout time.Duration
testFiles map[string]string
@ -241,7 +241,7 @@ func (c *GCEConfiguration) BuildletPool() *GCEBuildlet {
return gcePool
}
// InStaging returns a boolean denoting if the enviornment is stageing.
// InStaging returns a boolean denoting if the environment is staging.
func (c *GCEConfiguration) InStaging() bool {
return inStaging
}

Просмотреть файл

@ -118,7 +118,7 @@ func (l *ledger) releaseResources(instName string) error {
// allocateResources ensures that there is enough CPU to allocate below the CPU Quota
// for the caller to create a resouce with the numCPU passed in. If there is enough
// then the ammount of used CPU will increase by the requested ammount. If there is
// then the amount of used CPU will increase by the requested amount. If there is
// not enough CPU available, then a false is returned. In the event that CPU is allocated
// an entry will be added in the entries map for the instance.
// It also enforces instance type limits.

Просмотреть файл

@ -91,7 +91,7 @@ func isBuildlet(name string) bool {
var TestPoolHook func(*dashboard.HostConfig) Buildlet
// ForHost returns the appropriate buildlet depending on the host configuration that is passed it.
// The returned buildlet can be overriden for testing purposes by registering a test hook.
// The returned buildlet can be overridden for testing purposes by registering a test hook.
func ForHost(conf *dashboard.HostConfig) Buildlet {
if TestPoolHook != nil {
return TestPoolHook(conf)

Просмотреть файл

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package workflow declaratively defines computation graphs that support
// automatic parallelization, persistance, and monitoring.
// automatic parallelization, persistence, and monitoring.
//
// Workflows are a set of tasks that produce and consume Values. Tasks don't
// run until the workflow is started, so Values represent data that doesn't