Runner without go (#8703)

For #8701 cc @jonathanmetzman
This commit is contained in:
Catena cyber 2022-10-12 20:55:49 +02:00 committed by GitHub
parent 21b90e360d
commit 16cdd32578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -62,11 +62,12 @@ ENV GOPATH /root/go
# /root/.go/bin is for the standard Go binaries (i.e. go, gofmt, etc).
# $GOPATH/bin is for the binaries from the dependencies installed via "go get".
ENV PATH $PATH:/root/.go/bin:$GOPATH/bin
ENV PATH $PATH:$GOPATH/bin
COPY gocoverage $GOPATH/gocoverage
COPY install_go.sh /
RUN /install_go.sh && rm /install_go.sh
RUN rm -rf /root/.go
# Install OpenJDK 15 and trim its size by removing unused components.
ENV JAVA_HOME=/usr/lib/jvm/java-15-openjdk-amd64

View File

@ -280,7 +280,7 @@ wait
if [[ $FUZZING_LANGUAGE == "go" ]]; then
$SYSGOPATH/bin/gocovmerge $DUMPS_DIR/*.profdata > fuzz.cov
go tool cover -html=fuzz.cov -o $REPORT_ROOT_DIR/index.html
gotoolcover -html=fuzz.cov -o $REPORT_ROOT_DIR/index.html
$SYSGOPATH/bin/gocovsum fuzz.cov > $SUMMARY_FILE
cp $REPORT_ROOT_DIR/index.html $REPORT_PLATFORM_DIR/index.html
$SYSGOPATH/bin/pprof-merge $DUMPS_DIR/*.perf.cpu.prof

View File

@ -26,7 +26,8 @@ case $(uname -m) in
rm $SRC/installer_linux
# Set up Golang coverage modules.
printf $(find . -name gocoverage)
cd $GOPATH/gocoverage && go install ./...
cd $GOPATH/gocoverage && /root/.go/bin/go install ./...
cd /root/.go/src/cmd/cover && /root/.go/bin/go build && mv cover $GOPATH/bin/gotoolcover
;;
aarch64)
# Don't install go because installer is not provided.