Skip to content

Fix 'requires to' phrasing and the Azure configurations options typo - #54299

Closed
Anshuman-Prakash wants to merge 2 commits into
elastic:mainfrom
Anshuman-Prakash:fix-requires-to-and-azure-config-options
Closed

Anshuman-Prakash wants to merge 2 commits into
elastic:mainfrom
Anshuman-Prakash:fix-requires-to-and-azure-config-options

Conversation

@Anshuman-Prakash

Copy link
Copy Markdown
Contributor

Relates to #51535

Item 1, requires to:

  • filebeat/beater/filebeat.go: stdin requires to be run in exclusive mode -> stdin must be run in exclusive mode. Nothing asserts on that string.
  • docs/extend/index.md and testing/environments/README.md: reworded as the issue suggested.
  • docs/reference/filebeat/file-identity.md:58 is already fixed upstream.

Item 2, configurations options: the issue names azure.go:246, but the same string also sits at azure.go:258 and client.go:129, so all three are fixed here.

I also updated the copy in client_test.go:66. That one is cosmetic — it's the msgAndArgs argument to assert.Error, which testify only prints on failure and never compares against the error — but leaving it would have been the only place in the module still saying configurations. go vet is clean and go test ./x-pack/metricbeat/module/azure/ passes.

Left alone, since neither is user-facing: the requires to send the interval param comment in libbeat/monitoring/report/elasticsearch/client.go:207, and the two requires to run as skip messages in metricbeat/module/system/process/process_test.go.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Anshuman-Prakash
Anshuman-Prakash requested review from a team as code owners October 31, 2026 15:57
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 31, 2026
@Anshuman-Prakash
Anshuman-Prakash requested a review from a team as a code owner October 31, 2026 15:57
@botelastic

botelastic Bot commented Oct 31, 2026

Copy link
Copy Markdown

This pull request doesn't have a Team:<team> label.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@mergify

mergify Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @Anshuman-Prakash? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

The Python system test asserts on the error string verbatim, so
rewording it in filebeat/beater/filebeat.go broke
test_stdin_is_exclusive on the macOS unit test jobs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Anshuman-Prakash

Copy link
Copy Markdown
Contributor Author

The two red macOS unit test jobs were my fault, not a flake: filebeat/tests/system/test_stdin.py asserts on the stdin requires to be run in exclusive mode error verbatim, so rewording it in filebeat/beater/filebeat.go broke test_stdin_is_exclusive.

Pushed 28de1bd to update the assertion to the new wording. I also re-grepped the repo for both strings this PR removes and there are no other references left (the only remaining hit for configurations options is the changelog fragment summary describing the fix).

@bmorelli25

Copy link
Copy Markdown
Member

Please see my comment here: #54301 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants