Repository navigation
Fix "occured" typo in the Windows service install template - #17477
Merged
ebeahan merged 2 commits intoOct 23, 2026
Merged
Conversation
Relates to elastic#17382 (item 4). The delayed-start failure path in dev-tools/packaging/templates/windows/install-service.ps1.tmpl printed "An error occured setting the service to delayed start." Corrected to "occurred". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Contributor
|
This pull request does not have a backport label. Could you fix it @Anshuman-Prakash? 🙏
|
Member
|
/test |
ebeahan
approved these changes
Oct 23, 2026
⏳ Build in-progress, with failures
Failed CI Steps
History |
Contributor
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Contributor
|
@Mergifyio backport 9.6 9.5 9.4 8.19 |
Contributor
✅ Backports have been createdDetails
|
This was referenced Oct 23, 2026
ebeahan
added a commit
that referenced
this pull request
Oct 23, 2026
…17502) Relates to #17382 (item 4). The delayed-start failure path in dev-tools/packaging/templates/windows/install-service.ps1.tmpl printed "An error occured setting the service to delayed start." Corrected to "occurred". (cherry picked from commit 0b131a6) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> Co-authored-by: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
ebeahan
added a commit
that referenced
this pull request
Oct 23, 2026
…17501) Relates to #17382 (item 4). The delayed-start failure path in dev-tools/packaging/templates/windows/install-service.ps1.tmpl printed "An error occured setting the service to delayed start." Corrected to "occurred". (cherry picked from commit 0b131a6) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> Co-authored-by: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
ebeahan
added a commit
that referenced
this pull request
Oct 23, 2026
…17499) Relates to #17382 (item 4). The delayed-start failure path in dev-tools/packaging/templates/windows/install-service.ps1.tmpl printed "An error occured setting the service to delayed start." Corrected to "occurred". (cherry picked from commit 0b131a6) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> Co-authored-by: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
ebeahan
added a commit
that referenced
this pull request
Oct 23, 2026
…17500) Relates to #17382 (item 4). The delayed-start failure path in dev-tools/packaging/templates/windows/install-service.ps1.tmpl printed "An error occured setting the service to delayed start." Corrected to "occurred". (cherry picked from commit 0b131a6) Co-authored-by: Anshuman Prakash <nakulsrivastava2004@gmail.com> Co-authored-by: Anshuman-Prakash <199287261+Anshuman-Prakash@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
The three docs items from the same issue are in #17476. They're split so that PR stays docs-only and skips buildkite;
dev-tools/matches none of theskip_ci_on_only_changedpatterns, so this one cannot. #17382 should stay open until both land.Risk
One word inside a double-quoted string passed to
Write-Host. No control flow, no PowerShell syntax, and no template placeholder is touched.Rationale
dev-tools/packaging/templates/windows/install-service.ps1.tmpl:20is theCatchbranch of the delayed-start configuration step:occured→occurred. It is printed in red to the console on a real failure, so it's the line an operator reads while something is already going wrong.Rollout and safety
N/A — a string literal in console output. The
Try/Catchstructure, thesc.exeinvocation and the{{.BeatName}}placeholder are unchanged, so rendering and runtime behavior are identical. Nothing is persisted or parsed, so there is no downgrade or rollback concern.Testing
No automated coverage exists for this message, and I could not render the template locally:
go build ./internal/...fails here because thebeatssubmodule is not initialized, so the./beatsreplace directive cannot resolve. I'm not claiming a build.What I did verify:
Try/Catchand-f redarguments are byte-identical.{{/}}) appear in the changed string, so template rendering is unaffected.occured: this was the only hit outside Go identifiers. The remaining ones areLogWatcher.KeyOccuredandkeysOccuredinpkg/testing/log_watcher.go:52-93plus a call site intesting/integration/ess/otel_test.go:768. I left those alone deliberately —KeyOccuredis exported, so renaming it is an API change rather than a text fix, and none of it is user-visible.install-service.ps1isspecs/apm-server.spec.yml:4, which lists it as a component file. The template is rendered by the shared beats packaging machinery, which lives outside this repo, so I could not trace the render step here.A one-word fix to an error message isn't release-note material, so I'd suggest the skip-changelog label rather than a changelog fragment — but happy to add a fragment instead if you'd rather have the entry.
🤖 Generated with Claude Code