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

don't generate cloudwatchlogs event streams tests for now #5071

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

lucix-aws
Copy link
Contributor

No description provided.

@@ -180,7 +182,10 @@ func writeServiceFiles(g *generateInfo, pkgDir string) {
Must(writeExamplesFile(g))

if g.API.HasEventStream {
Must(writeAPIEventStreamTestFile(g))
// has stream APIs with host prefix, which our tests break on, skip codegen for now
if g.API.PackageName() != "cloudwatchlogs" {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: why not combine 2 if judgement together like this
if g.API.HasEventStream && g.API.PackageName() != "cloudwatchlogs"

Copy link
Contributor

Choose a reason for hiding this comment

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

at first glance we should not hard code the cloudwatchlogs and its tests, but this is the best solution up to now

Copy link
Contributor Author

@lucix-aws lucix-aws Nov 15, 2023

Choose a reason for hiding this comment

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

Mostly just to isolate the cloudwatch check so it's minimally less effort to rip out if we ever fix this (or extend it if we have to)

@lucix-aws lucix-aws merged commit f73f738 into main Nov 15, 2023
9 checks passed
@lucix-aws lucix-aws deleted the fix-cwlogstests branch November 15, 2023 16:19
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