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

Update fluent-bit to 2.2.1 release. #1559

Merged
merged 6 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions integration_test/ops_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4698,6 +4698,45 @@ func TestNoNvmlOtelReceiverWithoutGpu(t *testing.T) {
})
}

func TestPartialSuccess(t *testing.T) {
t.Parallel()
gce.RunForEachPlatform(t, func(t *testing.T, platform string) {
ctx, logger, vm := setupMainLogAndVM(t, platform)
logPath := logPathForPlatform(vm.Platform)
config := fmt.Sprintf(`logging:
receivers:
files_1:
type: files
include_paths: [%s]
service:
pipelines:
p1:
receivers: [files_1]`, logPath)
testFile, err := os.Open(path.Join("testdata", "partial_success", "test.log"))
if err != nil {
t.Fatal(err)
}
defer testFile.Close()
if err = gce.UploadContent(ctx, logger, vm, testFile, logPath); err != nil {
jefferbrecht marked this conversation as resolved.
Show resolved Hide resolved
t.Fatal(err)
}
if err = agents.SetupOpsAgent(ctx, logger, vm, config); err != nil {
t.Fatal(err)
}

// partialSuccess behaviour is documented at: https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/write
if err := gce.WaitForLog(ctx, logger, vm, "files_1", time.Hour, `jsonPayload.message="google"`); err != nil {
t.Error(err)
}
if err = gce.WaitForLog(ctx, logger, vm, "files_1", time.Hour, `jsonPayload.message="foo"`); err != nil {
t.Error(err)
}
if err = gce.WaitForLog(ctx, logger, vm, "files_1", time.Hour, `jsonPayload.message="goo"`); err != nil {
t.Error(err)
}
})
}

func TestRestartVM(t *testing.T) {
t.Parallel()
gce.RunForEachPlatform(t, func(t *testing.T, platform string) {
Expand Down
5 changes: 5 additions & 0 deletions integration_test/testdata/partial_success/test.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion submodules/fluent-bit
Submodule fluent-bit updated 3182 files
Loading