File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
.github/actions/kubernetes-e2e-tests Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3838 with :
3939 name : bug-report-${{ inputs.cluster-name }}-${{ inputs.matrix-label }}
4040 path : ./_test/bug_report/${{ inputs.cluster-name }}
41+ - name : Upload build timings
42+ uses : ./.github/actions/upload-artifact
43+ with :
44+ name : bug-report-${{ inputs.cluster-name }}-${{ inputs.matrix-label }}
45+ path : ./_test/timings/${{ inputs.cluster-name }}
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ endif
220220endif
221221
222222# Skip -race on e2e. This requires building the codebase twice, and provides no value as the only code executed is test code.
223- E2E_GO_TEST_ARGS ?= -timeout=25m -cpu=4 -outputdir=$(OUTPUT_DIR )
223+ E2E_GO_TEST_ARGS ?= -timeout=25m -cpu=4 -outputdir=$(OUTPUT_DIR ) -debug-actiongraph=./_test/timings/ $( CLUSTER_NAME ) /actiongraph-test -debug-trace=./_test/timings/ $( CLUSTER_NAME ) /trace-test
224224# Testing flags: https://pkg.go.dev/cmd/go#hdr-Testing_flags
225225# The default timeout for a suite is 10 minutes, but this can be overridden by setting the -timeout flag. Currently set
226226# to 25 minutes based on the time it takes to run the longest test setup (kgateway_test).
@@ -422,7 +422,7 @@ export CONTROLLER_IMAGE_REPO ?= kgateway
422422# We include the files in K8S_GATEWAY_SOURCES as dependencies to the kgateway build
423423# so changes in those directories cause the make target to rebuild
424424$(CONTROLLER_OUTPUT_DIR ) /kgateway-linux-$(GOARCH ) : $(K8S_GATEWAY_SOURCES )
425- $(GO_BUILD_FLAGS ) GOOS=linux go build -ldflags=' $(LDFLAGS)' -gcflags=' $(GCFLAGS)' -o $@ ./cmd/kgateway/...
425+ $(GO_BUILD_FLAGS ) GOOS=linux go build -ldflags=' $(LDFLAGS)' -gcflags=' $(GCFLAGS)' -o $@ -debug-actiongraph=./_test/timings/ $( CLUSTER_NAME ) /actiongraph-build -debug-trace=./_test/timings/ $( CLUSTER_NAME ) /trace-build ./cmd/kgateway/...
426426
427427.PHONY : kgateway
428428kgateway : $(CONTROLLER_OUTPUT_DIR ) /kgateway-linux-$(GOARCH )
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ LOCALSTACK="${LOCALSTACK:-false}"
3333# Export the variables so they are available in the environment
3434export VERSION CLUSTER_NAME
3535
36+ mkdir -p ./_test/timings/$CLUSTER_NAME
37+
3638function create_kind_cluster_or_skip() {
3739 activeClusters=$( kind get clusters)
3840
You can’t perform that action at this time.
0 commit comments