File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 uses : ./.github/platform_environment_setup/ubuntu
5858
5959 - name : Set Bazel version
60- run : echo ${{ matrix.bazel_version }} >> test/foss/templates/.bazelversion
60+ run : echo ${{ matrix.bazel_version }} > .bazelversion
61+
62+ - name : Print versions
63+ run : |
64+ bazel version
65+ CodeChecker version
66+ echo "[NOTE]: CodeChecker may find different analyzer binaries" \
67+ "when invoking directly, or in bazel's sandbox environment!" \
68+ "Be sure to double check during debugging."
69+ CodeChecker analyzers
6170
6271 - name : Run Test On Opensource Projects
6372 working-directory : test
8392 uses : ./.github/platform_environment_setup/rhel9
8493
8594 - name : Set Bazel version
86- run : echo ${{ matrix.bazel_version }} >> test/foss/templates/.bazelversion
95+ run : echo ${{ matrix.bazel_version }} > .bazelversion
96+
97+ - name : Print versions
98+ run : |
99+ bazel version
100+ CodeChecker version
101+ echo "[NOTE]: CodeChecker may find different analyzer binaries" \
102+ "when invoking directly, or in bazel's sandbox environment!" \
103+ "Be sure to double check during debugging."
104+ CodeChecker analyzers
87105
88106 - name : Run Test On Opensource Projects
89107 working-directory : test
Original file line number Diff line number Diff line change @@ -135,6 +135,9 @@ def run_command(
135135 cwd = working_dir ,
136136 ) as process :
137137 stdout , stderr = process .communicate ()
138+ # if process.returncode:
139+ logging .debug ("stdout: %s" , stdout .decode ('utf-8' ))
140+ logging .debug ("stderr: %s" , stderr .decode ('utf-8' ))
138141 return (
139142 process .returncode ,
140143 f"stdout: { stdout .decode ('utf-8' )} " ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ cd test-proj
1919git checkout yaml-cpp-0.7.0
2020
2121# This file must be in the root of the project to be analyzed for bazelisk to work
22- cp ../../templates/.bazelversion ./.bazelversion
22+ bazelversion=" ../../../../.bazelversion"
23+ [[ -f $bazelversion ]] && cp $bazelversion .
2324
2425# Add codechecker to the project
2526cat << EOF >> BUILD.bazel
5253
5354# Add codechecker_bazel repo to WORKSPACE
5455cat ../../templates/WORKSPACE.template >> WORKSPACE
56+
57+ # Check
58+ bazel version
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ cd test-proj
1919git checkout 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71
2020
2121# This file must be in the root of the project to be analyzed for bazelisk to work
22- cp ../../templates/.bazelversion ./.bazelversion
22+ bazelversion=" ../../../../.bazelversion"
23+ [[ -f $bazelversion ]] && cp $bazelversion .
24+
2325# Add codechecker to the project
2426cat << EOF >> BUILD.bazel
2527#-------------------------------------------------------
5153echo " common --enable_bzlmod" > .bazelrc
5254# Add codechecker_bazel repo MODULE.bazel
5355cat ../../templates/MODULE.template >> MODULE.bazel
56+
57+ # Check
58+ bazel version
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ cd test-proj
1919git checkout 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71
2020
2121# This file must be in the root of the project to be analyzed for bazelisk to work
22- cp ../../templates/.bazelversion ./.bazelversion
22+ bazelversion=" ../../../../.bazelversion"
23+ [[ -f $bazelversion ]] && cp $bazelversion .
2324
2425# Add codechecker to the project
2526cat << EOF >> BUILD.bazel
5253
5354# Add codechecker_bazel repo to WORKSPACE
5455cat ../../templates/WORKSPACE.template >> WORKSPACE
56+
57+ # Check
58+ bazel version
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def setUpClass(cls):
5353 logging .debug ("No bazel version set, using system default" )
5454 _ , stdout , _ = cls .run_command ("bazel --version" )
5555 cls .BAZEL_VERSION = stdout .split (' ' )[2 ].strip ()
56- logging .debug ("Using Bazel" , cls .BAZEL_VERSION )
56+ logging .debug ("Using Bazel %s " , cls .BAZEL_VERSION )
5757
5858 @final
5959 @classmethod
You can’t perform that action at this time.
0 commit comments