Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abingcbc committed Nov 26, 2024
1 parent d932019 commit 48bb981
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions core/config/PipelineConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ bool PipelineConfig::Parse() {
mLogstore,
mRegion);
}
mHasNativeProcessor = true;
} else {
mHasNativeProcessor = true;
}
Expand Down
2 changes: 1 addition & 1 deletion core/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ macro(link_spl target_name)

find_library(LIB_FOUND "libloongcollector_spl.a")
if (NOT LIB_FOUND)
message(FATAL_ERROR "Please upgrade your development image to compile SPL feature!")
message(FATAL_ERROR "Please upgrade your development image to compile!")
endif()

target_link_libraries(${target_name} "libloongcollector_spl.a")
Expand Down
8 changes: 6 additions & 2 deletions docker/Dockerfile.e2e-test
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM python:3.8
FROM golang:1.19.10

RUN mkdir -p /tmp/loongcollector

WORKDIR /root
COPY . ./loongcollector

RUN apt-get update
RUN apt-get -y install python3-setuptools
RUN apt-get -y install python3-pip

WORKDIR /root/loongcollector/test
RUN pip3 install -r requirements.txt
RUN pip3 install -r requirements.txt --break-system-packages

CMD ["sh", "-c", "while true; do sleep 3600; done"]
3 changes: 3 additions & 0 deletions test/engine/cleanup/chaos.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func DestoryAllChaos(ctx context.Context) (context.Context, error) {
case "daemonset", "deployment":
k8sEnv := setup.Env.(*setup.K8sEnv)
chaosDir := filepath.Join("test_cases", "chaos")
if _, err := os.Stat(chaosDir); os.IsNotExist(err) {
return ctx, nil
}
err := filepath.Walk(chaosDir, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
Expand Down
7 changes: 6 additions & 1 deletion test/engine/setup/docker_compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ func (d *DockerComposeEnv) Clean() error {
}

func (d *DockerComposeEnv) ExecOnLogtail(command string) (string, error) {
return "", fmt.Errorf("not implemented")
// exec on host of docker compose
fmt.Println(command)
cmd := exec.Command("sh", "-c", command)
output, err := cmd.CombinedOutput()
fmt.Println(string(output))
return string(output), err
}

func (d *DockerComposeEnv) ExecOnSource(ctx context.Context, command string) (string, error) {
Expand Down

0 comments on commit 48bb981

Please sign in to comment.