Skip to content

Conversation

mashhurs
Copy link
Contributor

Release notes

[rn:skip]

What does this PR do?

Places back the full start requirement flag full_start_required which can be controlled by a driver. For the scenarios such as slow start this can be not required as it needs to confirm pipeline start taking longer. And for other backpressure test cases it is required to check full pipeline start

Why is it important/What is the impact to the user?

N/A

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
  • [ ] I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Aug 15, 2025

This pull request does not have a backport label. Could you fix it @mashhurs? 🙏
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.
  • If no backport is necessary, please add the backport-skip label

# Read stdout and stderr in real-time
for stdout_line in iter(process.stdout.readline, ""):
print(stdout_line.strip())
# we don't wait for Logstash fully start as we also test slow pipeline start scenarios
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment is hinting at the fact that the control flow here has implications on polling etc around expectations for LS lifecycle. Perhaps we can be more explicit around what these break statements do?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like "we poll stdout until a desired message is encountered, this has implications for how long the logstash process is observed".

When i originally reviewed this (coming from not knowing much about this) it was not clear to be that this has important implications for how long logstash is allowed to run while tests are polling for state.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I just saw it.
Right! The current expectation is to validate health observer to catch when pipeline slow start occurs. These break statements are generalized and suit for current scenarios/expectations we want to validate with.
During the slow start scenario, script doesn't show the LS instance logs after knowing it is starting the LS.
As an improvement I can see what we can do is continuous (maybe in a separate thread) showing what is happening with LS instance.

@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Member

@donoghuc donoghuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is passing the previously failing test https://buildkite.com/elastic/logstash-health-report-tests-pipeline/builds/381#0198afd4-d1f8-4cff-876b-bc9e3118308e In favor of merge to get back to green CI, we can discuss #17994 (comment) separately.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

@mashhurs mashhurs merged commit 4512e57 into elastic:main Aug 15, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants