Skip to content

Commit 9815ee9

Browse files
GODRIVER-3493 Test why codeql is breaking
1 parent d1d93f3 commit 9815ee9

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,8 @@ tasks:
14261426
commands:
14271427
- command: subprocess.exec
14281428
params:
1429+
args: [*task-runner, build-compile-check]
14291430
binary: bash
1430-
args: [*task-runner, build-compile-check-msv]
14311431

14321432
# Build with the same Go version that we're using for tests.
14331433
- name: build

etc/compile_check.sh

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,41 @@
22
set -e # exit when any command fails
33
set -x # show all commands being run
44

5-
GC=go
6-
COMPILE_CHECK_DIR="internal/cmd/compilecheck"
7-
ARCHITECTURES=("386" "arm" "arm64" "ppc64le" "s390x")
8-
BUILD_CMD="${GC} build -buildvcs=false"
9-
10-
# Compilation modules are not part of the workspace as testcontainers requires
11-
# a version of klauspost/compress not supported by the Go Driver / other modules
12-
# in the workspace.
13-
export GOWORK=off
14-
15-
# compile_check will attempt to build the internal/test/compilecheck project
16-
# using the provided Go version. This is to simulate an end-to-end use case.
17-
function compile_check {
18-
# Change the directory to the compilecheck test directory.
19-
pushd "${COMPILE_CHECK_DIR}" >/dev/null
20-
21-
${GC} version
22-
${GC} mod tidy
23-
24-
# Standard build
25-
$BUILD_CMD ./...
26-
27-
# Dynamic linking
28-
$BUILD_CMD -buildmode=plugin
29-
30-
# Check build with tags.
31-
[[ -n "$BUILD_TAGS" ]] && $BUILD_CMD $BUILD_TAGS ./...
32-
33-
# Check build with various architectures.
34-
for ARCH in "${ARCHITECTURES[@]}"; do
35-
GOOS=linux GOARCH=$ARCH $BUILD_CMD ./...
36-
done
37-
38-
# Change the directory back to the working directory.
39-
popd >/dev/null
40-
}
41-
42-
compile_check
5+
#GC=go
6+
#COMPILE_CHECK_DIR="internal/cmd/compilecheck"
7+
#ARCHITECTURES=("386" "arm" "arm64" "ppc64le" "s390x")
8+
#BUILD_CMD="${GC} build -buildvcs=false"
9+
#
10+
## Compilation modules are not part of the workspace as testcontainers requires
11+
## a version of klauspost/compress not supported by the Go Driver / other modules
12+
## in the workspace.
13+
#export GOWORK=off
14+
#
15+
## compile_check will attempt to build the internal/test/compilecheck project
16+
## using the provided Go version. This is to simulate an end-to-end use case.
17+
#function compile_check {
18+
# # Change the directory to the compilecheck test directory.
19+
# pushd "${COMPILE_CHECK_DIR}" >/dev/null
20+
#
21+
# ${GC} version
22+
# ${GC} mod tidy
23+
#
24+
# # Standard build
25+
# $BUILD_CMD ./...
26+
#
27+
# # Dynamic linking
28+
# $BUILD_CMD -buildmode=plugin
29+
#
30+
# # Check build with tags.
31+
# [[ -n "$BUILD_TAGS" ]] && $BUILD_CMD $BUILD_TAGS ./...
32+
#
33+
# # Check build with various architectures.
34+
# for ARCH in "${ARCHITECTURES[@]}"; do
35+
# GOOS=linux GOARCH=$ARCH $BUILD_CMD ./...
36+
# done
37+
#
38+
# # Change the directory back to the working directory.
39+
# popd >/dev/null
40+
#}
41+
#
42+
#compile_check

0 commit comments

Comments
 (0)