Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
criemen committed Oct 15, 2024
1 parent 6bb3110 commit 5d44fec
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/go-tests-other-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,30 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: dump env bash
shell: bash
run: |
where bazel
declare -px
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "~1.23.1"
cache: false
id: go
- name: dump env bash again
shell: bash
run: |
where bazel
declare -px
- name: test1
run: |
C:\npm\prefix\bazel version
- name: test2
run: |
C:\ProgramData\Chocolatey\bin\bazel.exe version
- name: test3
run: |
C:\npm\prefix\bazelisk version
- name: Run tests
uses: ./go/actions/test
12 changes: 10 additions & 2 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,17 @@ qhelp-to-markdown:
scripts/qhelp-to-markdown.sh ql/src "$(QHELP_OUT_DIR)"

extractor:
export
where bazel
bazel version
pwd
bazel run :go-installer

gen:
export
where bazel
bazel version
pwd
bazel run :gen

build/stats/src.stamp:
Expand All @@ -45,9 +53,9 @@ ql/lib/go.dbscheme.stats: ql/lib/go.dbscheme build/stats/src.stamp extractor
codeql dataset measure -o $@ build/stats/database/db-go

test: all build/testdb/check-upgrade-path
codeql test run -j0 ql/test --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache)
# codeql test run -j0 ql/test --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache)
# use GOOS=linux because GOOS=darwin GOARCH=386 is no longer supported
env GOOS=linux GOARCH=386 codeql$(EXE) test run -j0 ql/test/query-tests/Security/CWE-681 --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache)
# env GOOS=linux GOARCH=386 codeql$(EXE) test run -j0 ql/test/query-tests/Security/CWE-681 --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache)
cd extractor; bazel test ...
bash extractor-smoke-test/test.sh || (echo "Extractor smoke test FAILED"; exit 1)

Expand Down
4 changes: 4 additions & 0 deletions go/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ runs:
if: inputs.run-code-checks == 'true'
shell: bash
run: |
declare -px
where bazel
bazel run go:gen
git add .
git diff --exit-code HEAD || (
Expand All @@ -40,6 +42,8 @@ runs:
- name: Build
shell: bash
run: |
declare -px
where bazel
bazel run go:go-installer
- name: Check that all Go code is autoformatted
Expand Down

0 comments on commit 5d44fec

Please sign in to comment.