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

Add e2e tests #458

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

Add e2e tests #458

wants to merge 1 commit into from

Conversation

jessejlt
Copy link
Member

Integration test for the entire pipeline

Integration test for the entire pipeline
testcontainers.CleanupContainer(t, collectorContainer)
require.NoError(t, err)

t.Run("Logs", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we set the Logs and Metrics blocks to run with t.Parallel() so they can wait in parallel?

buffer bytes.Buffer
}

func (b *threadsafeBuffer) Write(p []byte) (n int, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a wrapper to read the buffer? I think we probably need to have something that wraps reads with a lock operation too.

}
})

ingestorContainer, err := ingestor.Run(ctx, ingestor.WithCluster(ctx, k3sContainer))
Copy link
Contributor

Choose a reason for hiding this comment

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

For a follow on PR, I think it would be nice to have a way to configure the Kusto batch policies so we can set them to something like 30s for logs (instead of the 5m we hard code them to) which hopefully speeds this test up a lot.

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.

2 participants