Skip to content

Commit 3ab5e7e

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some typos
Change-Id: I35d764f27ce6a914e3af406b384e49a5183ca639 GitHub-Last-Rev: cec1a72 GitHub-Pull-Request: #44 Reviewed-on: https://go-review.googlesource.com/c/build/+/389597 Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Trust: Carlos Amedee <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 3b228b9 commit 3ab5e7e

File tree

17 files changed

+20
-20
lines changed

17 files changed

+20
-20
lines changed

buildlet/ec2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"golang.org/x/build/internal/cloud"
1717
)
1818

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

cmd/buildlet/buildlet.go

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

cmd/coordinator/buildstatus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ func (st *buildStatus) runTests(helpers <-chan buildlet.Client) (remoteErr, err
15431543
// Always include the test header after
15441544
// metadata changes. This is a readability
15451545
// optimization that ensures that tests are
1546-
// always immediately preceeded by their test
1546+
// always immediately preceded by their test
15471547
// banner, even if it is duplicate banner
15481548
// because the test metadata changed.
15491549
printHeader = true

cmd/coordinator/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func newGitMirrorChecker() *healthChecker {
297297

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

cmd/debugnewvm/debugnewvm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func watchSerial(zone, name string) {
251251
}
252252

253253
// awsCredentialsFromSecrets retrieves AWS credentials from the secret management service.
254-
// This funciton returns the key ID and the access key.
254+
// This function returns the key ID and the access key.
255255
func awsCredentialsFromSecrets() (string, string, error) {
256256
c, err := secret.NewClient()
257257
if err != nil {

cmd/gitmirror/gitmirror.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ func (m *gitMirror) subscribeToMaintnerAndTickle() error {
673673

674674
// prevent retry looping faster than once every 10
675675
// seconds; but usually retry immediately in the case
676-
// where we've been runing for a while already.
676+
// where we've been running for a while already.
677677
<-retryTicker.C
678678
}
679679
}

cmd/makemac/makemac.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After=network.target
66
[Service]
77
User=gopher
88
Environment="PATH=/home/gopher/bin:/usr/local/bin:/usr/bin"
9-
# The following file decalres these variables: GOVC_URL GOVC_USERNAME GOVC_PASSWORD GOVC_INSECURE
9+
# The following file declares these variables: GOVC_URL GOVC_USERNAME GOVC_PASSWORD GOVC_INSECURE
1010
EnvironmentFile=/home/gopher/govc_env_file
1111
ExecStart=/home/gopher/makemac -auto
1212
Restart=always

cmd/releasebot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ func match(query, goVer string) bool {
11181118
}
11191119

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

cmd/relnote/relnote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
var (
3030
htmlMode = flag.Bool("html", false, "write HTML output")
31-
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.")
31+
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.")
3232
)
3333

3434
// change is a change that was noted via a RELNOTE= comment.

cmd/xb/xb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func runDocker() {
144144
}
145145

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

gerrit/gerrit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ func (c *Client) GetMergeable(ctx context.Context, changeID, revision string) (M
10291029
}
10301030

10311031
// ActionInfo contains information about actions a client can make to
1032-
// maniuplate a resource.
1032+
// manipulate a resource.
10331033
//
10341034
// See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#action-info.
10351035
type ActionInfo struct {

internal/cloud/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type Instance struct {
8686
CPUCount int64
8787
// CreatedAt is the time when the instance was launched.
8888
CreatedAt time.Time
89-
// Description is a user defined descripton of the instance.
89+
// Description is a user defined description of the instance.
9090
Description string
9191
// ID is the instance ID.
9292
ID string

internal/coordinator/pool/ec2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func WithVMDeleteTimeout(timeout time.Duration) EC2Opt {
7575
type EC2Buildlet struct {
7676
// awsClient is the client used to interact with AWS services.
7777
awsClient awsClient
78-
// buildEnv contains the build enviornment settings.
78+
// buildEnv contains the build environment settings.
7979
buildEnv *buildenv.Environment
8080
// buildletClient is the client used to create a buildlet.
8181
buildletClient ec2BuildletClient

internal/coordinator/pool/gce.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var (
8282
errorsClient *errorreporting.Client // Stackdriver errors client
8383
gkeNodeHostname string
8484

85-
// values created due to seperating the buildlet pools into a seperate package
85+
// values created due to separating the buildlet pools into a separate package
8686
gceMode string
8787
deleteTimeout time.Duration
8888
testFiles map[string]string
@@ -241,7 +241,7 @@ func (c *GCEConfiguration) BuildletPool() *GCEBuildlet {
241241
return gcePool
242242
}
243243

244-
// InStaging returns a boolean denoting if the enviornment is stageing.
244+
// InStaging returns a boolean denoting if the environment is staging.
245245
func (c *GCEConfiguration) InStaging() bool {
246246
return inStaging
247247
}

internal/coordinator/pool/ledger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (l *ledger) releaseResources(instName string) error {
118118

119119
// allocateResources ensures that there is enough CPU to allocate below the CPU Quota
120120
// for the caller to create a resouce with the numCPU passed in. If there is enough
121-
// then the ammount of used CPU will increase by the requested ammount. If there is
121+
// then the amount of used CPU will increase by the requested amount. If there is
122122
// not enough CPU available, then a false is returned. In the event that CPU is allocated
123123
// an entry will be added in the entries map for the instance.
124124
// It also enforces instance type limits.

internal/coordinator/pool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func isBuildlet(name string) bool {
9191
var TestPoolHook func(*dashboard.HostConfig) Buildlet
9292

9393
// ForHost returns the appropriate buildlet depending on the host configuration that is passed it.
94-
// The returned buildlet can be overriden for testing purposes by registering a test hook.
94+
// The returned buildlet can be overridden for testing purposes by registering a test hook.
9595
func ForHost(conf *dashboard.HostConfig) Buildlet {
9696
if TestPoolHook != nil {
9797
return TestPoolHook(conf)

internal/workflow/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package workflow declaratively defines computation graphs that support
6-
// automatic parallelization, persistance, and monitoring.
6+
// automatic parallelization, persistence, and monitoring.
77
//
88
// Workflows are a set of tasks that produce and consume Values. Tasks don't
99
// run until the workflow is started, so Values represent data that doesn't

0 commit comments

Comments
 (0)