Skip to content
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

feat: Add RecentLogs support #1237

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

ZPascal
Copy link

@ZPascal ZPascal commented Aug 1, 2024

fix: #1181 & #1230

TODO:

  • Test the change
  • Add unit tests

@pivotal-david-osullivan
Copy link
Contributor

Thank you for the PR!

Compilation is currently failing on the implementation missing the new recentLogs method that you added to the client

@ZPascal
Copy link
Author

ZPascal commented Nov 1, 2024

Thank you @pivotal-david-osullivan & @anthonydahanne for fixing the tests and the reactor part. I am also working on the issue again from the SAP side and I plan to set up a BBL environment to test the change in a CF environment. Let's sync on Slack how we can handle it together and we can discuss the test setup/steps.

@anthonydahanne
Copy link
Contributor

Thank you @pivotal-david-osullivan & @anthonydahanne for fixing the tests and the reactor part. I am also working on the issue again from the SAP side and I plan to set up a BBL environment to test the change in a CF environment. Let's sync on Slack how we can handle it together and we can discuss the test setup/steps.

cool!
the current struggle is supporting recent , since there does not seem to be a Websocket or SSE endpoint for streaming logs; apparently the CLI polls, so we'd need to do just that.

ZPascal and others added 6 commits April 9, 2025 10:23
* because of the findFirst() on the envelopes, it could be type OUT or ERR, so we don't really care, as long as the payload is the same.
Also, we don't care about the precise argument to the recentLogs call
Copy link

CLA Missing ID CLA Not Signed

Kehrlann added a commit to Kehrlann/cf-java-client that referenced this pull request Apr 9, 2025
- The DopplerClient does not work with Loggregator >= 107.0.0, and we
  cannot obtain "recent" logs. Until this is fixed, we cannot cut a
  release. That is the only blocking test.
- See cloudfoundrygh-1181, cloudfoundrygh-1230, cloudfoundrygh-1237
pivotal-david-osullivan pushed a commit that referenced this pull request Apr 11, 2025
…CF 2.x line (#1265)

* Restrict ApplicationsTests#logs to CF 2.x line

- The DopplerClient does not work with Loggregator >= 107.0.0, and we
  cannot obtain "recent" logs. Until this is fixed, we cannot cut a
  release. That is the only blocking test.
- See gh-1181, gh-1230, gh-1237

* Introduce Applications#logs API that will replace the doppler-based implementation

Signed-off-by: Daniel Garnier-Moiroux <[email protected]>

---------

Signed-off-by: Daniel Garnier-Moiroux <[email protected]>
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