From b868dba6ca526e1cc55f745ffdb1afdbefeda409 Mon Sep 17 00:00:00 2001 From: Pieter Oliver Date: Tue, 8 Jul 2025 10:02:44 +0100 Subject: [PATCH] Fix misc typos, in comments/tests/rare error messages so no behavioural changes should result --- install-package | 2 +- release/create.sh | 2 +- retry | 2 +- sem-context/cmd/root.go | 2 +- sem-context/pkg/store/artifacts_store.go | 2 +- system-metrics-collector | 2 +- test-results/pkg/parser/helpers.go | 2 +- tests/compiler.bats | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/install-package b/install-package index 2f6d9b88..bffcfaa2 100755 --- a/install-package +++ b/install-package @@ -118,7 +118,7 @@ if install_packages;then echo ">> Finished successfully." fi else - echo ">> Errors have occured during package installation." + echo ">> Errors have occurred during package installation." exit 1 fi diff --git a/release/create.sh b/release/create.sh index c55f7f53..2e5e3ab5 100755 --- a/release/create.sh +++ b/release/create.sh @@ -5,7 +5,7 @@ set -euo pipefail ARTIFACT_CLI_VERSION="v0.6.7" SPC_CLI_VERSION="v1.12.3" WHEN_CLI_VERSION="v1.4.0" -# we include multiple when binaries for all suported Erlang versions +# we include multiple when binaries for all supported Erlang versions # and configure the correct one based on Erlang version in the VM where toolbox is installed WHEN_BINARY_VERSION_1="when_otp_24" WHEN_BINARY_VERSION_2="when_otp_25" diff --git a/retry b/retry index 6586156a..15bb5f1b 100644 --- a/retry +++ b/retry @@ -49,7 +49,7 @@ function retry_execution { # echo "$__result__"; if [ $__result__ -eq "0" ]; then - exit 0; # command executed succesfully + exit 0; # command executed successfully else if [[ $__i__ == $__n__ ]]; then echo "[$__i__/$__n__] Execution Failed with exit status $__result__. No more retries." diff --git a/sem-context/cmd/root.go b/sem-context/cmd/root.go index 461495c7..65aa1a5a 100644 --- a/sem-context/cmd/root.go +++ b/sem-context/cmd/root.go @@ -27,5 +27,5 @@ func Execute() { func init() { Store = &store.ArtifactStore{} - RootCmd.PersistentFlags().BoolVar(&flags.IgnoreFailure, "ignore-failure", false, "Ignore if failure occures, and always return 0.") + RootCmd.PersistentFlags().BoolVar(&flags.IgnoreFailure, "ignore-failure", false, "Ignore if failure occurs, and always return 0.") } diff --git a/sem-context/pkg/store/artifacts_store.go b/sem-context/pkg/store/artifacts_store.go index 8d7e0c50..76bfa52e 100644 --- a/sem-context/pkg/store/artifacts_store.go +++ b/sem-context/pkg/store/artifacts_store.go @@ -78,7 +78,7 @@ func (_ *ArtifactStore) Delete(key, contextId string) error { log.Printf("error executing artifact command: %v. Output: %s\n", err, output) } - // The key might be present in some of the parent pipline's context as well, but we cant delete them there, as they might be used by some other pipeline. + // The key might be present in some of the parent pipeline's context as well, but we cant delete them there, as they might be used by some other pipeline. // We will just mark those keys as deleted inside this pipeline's context. artifact_output, err := execArtifactCommand(Push, file.Name(), keysInfoDirName+contextId+"/.deleted/"+key) if err != nil { diff --git a/system-metrics-collector b/system-metrics-collector index b22acf01..91149465 100644 --- a/system-metrics-collector +++ b/system-metrics-collector @@ -4,7 +4,7 @@ # Simple log system metrics collector. Polls the system state every 1s and # saves the result to /tmp/system-metrics. # -# The simple nature of the script allows it to seemlesly run in any Linux based +# The simple nature of the script allows it to seamlessly run in any Linux based # VM, Docker image, or on a MacVM host. # # The recommended way to start the script is to run it in the background. diff --git a/test-results/pkg/parser/helpers.go b/test-results/pkg/parser/helpers.go index 935b90b1..bd944a88 100644 --- a/test-results/pkg/parser/helpers.go +++ b/test-results/pkg/parser/helpers.go @@ -66,7 +66,7 @@ func ParseTime(s string) time.Duration { return d } -// ParseInt parsers string respresentation of integer to integer value +// ParseInt parsers string representation of integer to integer value func ParseInt(s string) int { i, err := strconv.Atoi(s) if err != nil { diff --git a/tests/compiler.bats b/tests/compiler.bats index cc54ece1..8135c430 100644 --- a/tests/compiler.bats +++ b/tests/compiler.bats @@ -26,7 +26,7 @@ setup() { cd - } -@test "compiler can evaluare change_in expressions" { +@test "compiler can evaluate change_in expressions" { cd /tmp/test-repo-clone run spc evaluate change-in --input .semaphore/semaphore.yml --output .semaphore/semaphore.yml.compiler --logs .semaphore/semaphore.yml.logs