diff --git a/Makefile b/Makefile index 67b078b03..e8a2af69b 100644 --- a/Makefile +++ b/Makefile @@ -218,7 +218,7 @@ clickhouse-server-multi-arch: .PHONY: clickhouse-schema-management-plugin clickhouse-schema-management-plugin: @mkdir -p $(BINDIR) - GOOS=linux $(GO) build -o $(BINDIR) $(GOFLAGS) -ldflags '$(LDFLAGS)' antrea.io/theia/plugins/clickhouse-schema-management + GOOS=linux CGO_ENABLED=0 $(GO) build -o $(BINDIR) $(GOFLAGS) -ldflags '$(LDFLAGS)' antrea.io/theia/plugins/clickhouse-schema-management # Theia currently supports two spark jobs, Throughput Anomaly Detection and Policy Recommendation. # This Dockerfile helps create unified dockerfile for both the spark jobs. diff --git a/test/e2e/framework.go b/test/e2e/framework.go index e872f4fc8..9b5978a2a 100644 --- a/test/e2e/framework.go +++ b/test/e2e/framework.go @@ -1645,7 +1645,7 @@ func (data *TestData) killProcessesAndCollectCovFiles(namespace, podName, contai log.Infof("Copying coverage files from worker nodes kind-worker and kind-worker2") cmd := "/bin/sh -c find / -name 'covmeta.*' -exec basename {} ';'" rc, stdout, stderr, err := data.RunCommandOnNode("kind-worker", cmd) - var files []string; + var files []string if err != nil || rc != 0 { if !strings.Contains(err.Error(), "No such file or directory") { return fmt.Errorf("error when running this find command (for coverage file) '%s' on Node kind-worker, stderr: <%v>, err: <%v>", cmd, stderr, err)