Skip to content

Test AWS BYOC log stream handling #812

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jordanstephens
Copy link
Member

@jordanstephens jordanstephens commented Oct 30, 2024

Refactoring byocServerStream to make it easier to test handling of the different log streams scenarios.

The strategy is first to derive a TailResponseHeader with a particular SSMode and then use that mode to guard the different handling scenarios when constructing the actual TailResponse. I split up this logic so we could test them separately.

I also made one big change in this diff: I removed a client-side filter which checked each log entry for mismatched etags or service names. This is no longer necessary. All log entries for a given stream will belong to the same etag and service.

@jordanstephens jordanstephens force-pushed the jordan/byoc-build-logs branch 3 times, most recently from 3122131 to 094170d Compare October 31, 2024 00:41
@jordanstephens jordanstephens changed the title refactor and test byoc log stream handling Test AWS BYOC log stream handling Oct 31, 2024
@jordanstephens jordanstephens marked this pull request as ready for review October 31, 2024 00:45
@jordanstephens jordanstephens added the wip Work in progress; don't merge label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in progress; don't merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant