Skip to content

feat: listening for logs before returning a http status code #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

aepfli
Copy link
Member

@aepfli aepfli commented Feb 19, 2025

closes: #222

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
@aepfli aepfli force-pushed the feat/launchpad-wait-for-logs branch from 8b3140b to 29197ff Compare February 19, 2025 14:58
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
@chrfwow
Copy link
Contributor

chrfwow commented Feb 20, 2025

Since my go is not that great and to clarify, this PR does not fix the issue with delayed restarts, or am I missing something?

@aepfli
Copy link
Member Author

aepfli commented Feb 20, 2025

Since my go is not that great and to clarify, this PR does not fix the issue with delayed restarts, or am I missing something?

it is not the goal to fix delayed restarts. the goal is to return the request not immediately after the start command was triggered, but to wait for a log message of flagd to return the status code and the request.

Before it was:

  1. request /start
  2. handler starts flagd
  3. return statuscode

now it is:

  1. request /start
  2. handler starts flagd
  3. waits for certain log message
  4. return

this way we do not need the sleep in the tests anymore after hitting this endpoint.

@aepfli aepfli force-pushed the feat/launchpad-wait-for-logs branch 2 times, most recently from 6857f9c to 16001f5 Compare February 20, 2025 14:06
@aepfli
Copy link
Member Author

aepfli commented Feb 20, 2025

changed the whole pr, now this is a full blown refactoring/restructuring of launchpad for easier usage:

  • lock handling improved
  • restart timer now has a cancel function

@aepfli aepfli force-pushed the feat/launchpad-wait-for-logs branch from 16001f5 to 6cbed8e Compare February 20, 2025 16:30
Copy link
Contributor

@chrfwow chrfwow left a comment

Choose a reason for hiding this comment

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

Nice!

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
@aepfli aepfli force-pushed the feat/launchpad-wait-for-logs branch from 6cbed8e to 3e4bd1e Compare February 21, 2025 15:00
@aepfli aepfli merged commit fe1843d into open-feature:main Feb 24, 2025
3 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.

Testbed Improvements
2 participants