CodeQL autobuild hangs forever on failure
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- github-actions, go, typescript
- 領域
- ci-cd
調査の方向性
github/codeql-action/autobuild のエントリーポイントから開始し、workflow log で報告された Go の autobuild 失敗を再現します。失敗した autobuild の結果がどのように処理されるかを追跡し、その後、GitHub のキャンセルを待つのではなく、action が失敗状態ですぐに終了することを確認します。
索引モデルが issue の本文から書いたものです。
説明
It seems in special cases when CodeQL autobuild fails it can reach the state where it's just waiting for Github to kill the job. This can be few hours.
Can you make the autobuild fail on failure, instead of hanging forever?
Here in this example it failed in few seconds but then was Cancelled 2 hours later by Github.
Run github/codeql-action/autobuild@99df26d4f13ea111d4ec1a7dddef6063f76b97e9
/usr/bin/docker exec 8e2f4e0d52608abebb21500d2e7edccd5af32df47e3f55902194746e7ca51f38 sh -c "cat /etc/*release | grep ^ID"
ERROR: ld.so: object '/__w/_tool/CodeQL/2.26.0/x64/codeql/tools/linux64/${LIB}_${PLATFORM}_trace.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Attempting to automatically build go code
Picked up JAVA_TOOL_OPTIONS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
/__w/_tool/CodeQL/2.26.0/x64/codeql/go/tools/autobuild.sh
2026/07/11 00:24:41 Autobuilder was built with go1.26.4, environment has go1.26.5
2026/07/11 00:24:41 LGTM_SRC is /__w/xxx-xxx/xxx-xxx
2026/07/11 00:24:41 Found no go.work files in the workspace; looking for go.mod files...
2026/07/11 00:24:41 Found 3 go.mod files in: go.mod, internal/mongodb-rotation-xxx/go.mod, pkg/sdk/go.mod.
2026/07/11 00:24:41 Found 3 go.mod file(s).
go: downloading github.com/caarlos0/env/v6 v6.10.1
go: downloading github.com/go-openapi/runtime v0.32.3
go: downloading github.com/go-openapi/errors v0.22.7
go: downloading github.com/go-openapi/strfmt v0.26.3
go: downloading github.com/go-openapi/loads v0.23.3
go: downloading github.com/jessevdk/go-flags v1.6.1
go: downloading github.com/caarlos0/env v3.5.0+incompatible
go: downloading github.com/xxx/go-lib v1.7.5
go: downloading github.com/go-openapi/swag v0.25.5
go: downloading github.com/go-openapi/validate v0.25.3
go: downloading github.com/go-openapi/spec v0.22.5
go: downloading github.com/golang/mock v1.6.0
go: downloading github.com/google/uuid v1.6.0
go: downloading golang.org/x/net v0.56.0
go: downloading github.com/stretchr/testify v1.11.1
go: downloading k8s.io/api v0.36.2
go: downloading github.com/xxx/hyperscaler-network-client v1.2.0
go: downloading go.mongodb.org/mongo-driver v1.17.9
go: downloading k8s.io/client-go v0.36.2
go: downloading google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af
go: downloading github.com/xxx/xxx-crypto v1.10.0
go: downloading github.com/xxx/xxx-rest-client v0.81.0
go: downloading github.com/golang-jwt/jwt/v5 v5.3.1
go: downloading github.com/Azure/azure-sdk-for-go/sdk/azcore v1.21.0
go: downloading github.com/pingcap/failpoint v0.0.0-20210806123219-9af598712e22
go: downloading gopkg.in/h2non/gock.v1 v1.1.2
go: downloading github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.13.1
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading k8s.io/apimachinery v0.36.2
go: downloading github.com/prometheus/client_golang v1.23.2
go: downloading golang.org/x/sys v0.46.0
go: downloading github.com/go-viper/mapstructure/v2 v2.5.0
go: downloading github.com/oklog/ulid/v2 v2.1.1
go: downloading github.com/go-openapi/analysis v0.25.2
go: downloading github.com/go-openapi/swag/loading v0.26.0
go: downloading github.com/go-openapi/swag/yamlutils v0.26.0
go: downloading github.com/xxx/xxx-rest-client v0.6.0
go: downloading github.com/prometheus/client_model v0.6.2
go: downloading github.com/prometheus/common v0.67.5
go: downloading github.com/go-openapi/swag/fileutils v0.26.0
go: downloading github.com/go-openapi/swag/jsonutils v0.26.0
go: downloading github.com/go-openapi/swag/stringutils v0.26.0
go: downloading golang.org/x/sync v0.21.0
go: downloading github.com/go-openapi/runtime/server-middleware v0.30.0
go: downloading go.opentelemetry.io/otel v1.44.0
go: downloading go.opentelemetry.io/otel/trace v1.44.0
go: downloading go.opentelemetry.io/otel/sdk v1.44.0
go: downloading github.com/go-openapi/swag/conv v0.26.0
go: downloading github.com/go-openapi/swag/typeutils v0.26.0
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/go-openapi/swag/cmdutils v0.25.5
go: downloading github.com/go-openapi/swag/jsonname v0.26.0
go: downloading github.com/go-openapi/swag/mangling v0.26.0
go: downloading github.com/go-openapi/swag/netutils v0.25.5
go: downloading github.com/go-openapi/jsonpointer v0.23.1
go: downloading go.yaml.in/yaml/v3 v3.0.4
go: downloading github.com/go-openapi/jsonreference v0.21.6
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading github.com/thoas/go-funk v0.9.3
go: downloading k8s.io/klog/v2 v2.140.0
go: downloading github.com/xxx/xxx-otel-common v0.4.0
go: downloading github.com/PuerkitoBio/rehttp v1.4.0
go: downloading github.com/sirupsen/logrus v1.9.4
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.68.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2
go: downloading sigs.k8s.io/randfill v1.0.0
go: downloading golang.org/x/crypto v0.53.0
go: downloading github.com/MicahParks/jwkset v0.11.0
go: downloading github.com/MicahParks/keyfunc/v3 v3.8.0
go: downloading golang.org/x/time v0.15.0
go: downloading github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2
go: downloading github.com/pingcap/errors v0.11.4
go: downloading github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542
go: downloading github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0
go: downloading github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78
go: downloading github.com/go-openapi/testify/v2 v2.5.1
go: downloading github.com/go-openapi/testify/enable/yaml/v2 v2.5.1
go: downloading github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
go: downloading github.com/google/go-cmp v0.7.0
go: downloading github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32
go: downloading github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2
go: downloading github.com/montanaflynn/stats v0.7.1
go: downloading sigs.k8s.io/yaml v1.6.0
go: downloading go.uber.org/goleak v1.3.0
go: downloading k8s.io/kube-openapi v0.0.0-20260317180543-43fb72c5454a
go: downloading sigs.k8s.io/structured-merge-diff/v6 v6.3.2
go: downloading gopkg.in/evanphx/json-patch.v4 v4.13.0
go: downloading golang.org/x/text v0.38.0
go: downloading github.com/klauspost/compress v1.18.0
go: downloading github.com/kylelemons/godebug v1.1.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.20.1
go: downloading github.com/go-openapi/swag/jsonutils/fixtures_test v0.26.0
go: downloading go.yaml.in/yaml/v2 v2.4.4
go: downloading github.com/go-logr/logr v1.4.3
go: downloading go.opentelemetry.io/otel/metric v1.44.0
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/stretchr/objx v0.5.2
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/spf13/pflag v1.0.9
go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: downloading go.opentelemetry.io/contrib/exporters/autoexport v0.68.0
go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.68.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0
go: downloading go.opentelemetry.io/otel/sdk/metric v1.44.0
go: downloading google.golang.org/grpc v1.81.1
go: downloading github.com/Azure/go-autorest/autorest v0.11.30
go: downloading github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0
go: downloading github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.7.1
go: downloading github.com/golang/snappy v0.0.4
go: downloading github.com/xdg-go/scram v1.1.2
go: downloading github.com/xdg-go/stringprep v1.0.4
go: downloading github.com/fxamacker/cbor/v2 v2.9.0
go: downloading golang.org/x/term v0.44.0
go: downloading golang.org/x/oauth2 v0.36.0
go: downloading github.com/felixge/httpsnoop v1.0.4
go: downloading github.com/google/gnostic-models v0.7.0
go: downloading github.com/Azure/go-autorest v14.2.0+incompatible
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
go: downloading sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730
go: downloading github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1
go: downloading github.com/json-iterator/go v1.1.12
go: downloading go.opentelemetry.io/auto/sdk v1.2.1
go: downloading go.opentelemetry.io/contrib/bridges/prometheus v0.68.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.19.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.19.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/prometheus v0.65.0
go: downloading go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.19.0
go: downloading go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.43.0
go: downloading go.opentelemetry.io/otel/sdk/log v0.19.0
go: downloading go.opentelemetry.io/proto/otlp v1.10.0
go: downloading github.com/kr/pretty v0.3.1
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20260406210006-6f92a3bedf2d
go: downloading go.opentelemetry.io/otel/metric/x v0.66.0
go: downloading github.com/benbjohnson/clock v1.3.0
go: downloading github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.5.0
go: downloading github.com/xdg-go/pbkdf2 v1.0.0
go: downloading github.com/x448/float16 v0.8.4
go: downloading github.com/Azure/go-autorest/logger v0.2.2
go: downloading github.com/Azure/go-autorest/tracing v0.6.1
go: downloading github.com/Azure/go-autorest/autorest/mocks v0.4.2
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee
go: downloading go.opentelemetry.io/otel/log v0.19.0
go: downloading github.com/keybase/go-keychain v0.0.1
go: downloading github.com/prometheus/otlptranslator v1.0.0
go: downloading github.com/cenkalti/backoff/v5 v5.0.3
go: downloading go.opentelemetry.io/otel/sdk/log/logtest v0.19.0
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0
go: downloading github.com/emicklei/go-restful/v3 v3.13.0
go: downloading github.com/Azure/go-autorest/autorest/adal v0.9.24
go: downloading github.com/kr/text v0.2.0
go: downloading github.com/rogpeppe/go-internal v1.14.1
go: downloading github.com/golang/protobuf v1.5.4
go: downloading github.com/Azure/go-autorest/autorest/date v0.3.1
go: downloading github.com/golang-jwt/jwt/v4 v4.5.2
go: downloading gonum.org/v1/gonum v0.17.0
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20260406210006-6f92a3bedf2d
2026/07/11 00:24:49 We have run `go mod tidy -e` and it altered go.sum. You may wish to check these changes into version control.
go: downloading github.com/Azure/azure-sdk-for-go/sdk/azcore v1.22.0
go: downloading github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.0
go: downloading github.com/prometheus/common v0.69.0
go: downloading github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets v0.12.0
go: downloading github.com/prometheus/procfs v0.16.1
go: downloading github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1
go: downloading github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0
go: downloading github.com/AzureAD/microsoft-authentication-library-for-go v1.7.2
go: downloading github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0
go: downloading golang.org/x/time v0.14.0
go: downloading github.com/go-openapi/swag v0.23.0
go: downloading github.com/go-openapi/jsonreference v0.20.2
go: downloading github.com/go-openapi/jsonpointer v0.21.0
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/go-openapi/runtime v0.32.4
go: downloading github.com/go-openapi/swag v0.27.0
go: downloading github.com/go-openapi/errors v0.22.8
go: downloading github.com/go-openapi/strfmt v0.26.4
go: downloading github.com/go-openapi/validate v0.26.0
go: downloading github.com/go-openapi/swag/cmdutils v0.27.0
go: downloading github.com/go-openapi/jsonpointer v0.24.0
go: downloading github.com/go-openapi/swag/conv v0.27.0
go: downloading github.com/go-openapi/swag/fileutils v0.27.0
go: downloading github.com/go-openapi/swag/jsonutils v0.27.0
go: downloading github.com/go-openapi/swag/loading v0.27.0
go: downloading github.com/go-openapi/swag/mangling v0.27.0
go: downloading github.com/go-openapi/swag/netutils v0.27.0
go: downloading github.com/go-openapi/swag/stringutils v0.27.0
go: downloading github.com/go-openapi/swag/typeutils v0.27.0
go: downloading github.com/go-openapi/swag/yamlutils v0.27.0
go: downloading github.com/go-openapi/spec v0.22.6
go: downloading github.com/go-openapi/testify/v2 v2.6.0
go: downloading github.com/go-openapi/swag/jsonutils/fixtures_test v0.27.0
go: downloading github.com/go-openapi/loads v0.24.0
go: downloading github.com/go-openapi/testify/enable/yaml/v2 v2.6.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/go-openapi/swag/jsonname v0.26.1
2026/07/11 00:24:52 Makefile found.
2026/07/11 00:24:52 Trying build command make []
DEV_SHELL_FLAGS: ""
DEV_SHELL: ""
TEST_SHELL_FLAGS: ""
TEST_SHELL: ""
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
GITHUB_REF_TYPE is: branch
GITHUB_REF_NAME is: 1179/merge
$iteration is [20260711-0024]
$git-version is []
$versionplus is [-20260711-0024]
$channel is [unstable]
dev_image=""
Use Default LOG_LEVEL info
GO_COMMON_PREFIX="(CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go")
GO_BUILD="(CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build")
GO_TEST_BUILD="(CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go test")
HELM_SHELL is currently: "/bin/bash"
cat: deployments/docker/test.env: No such file or directory
DEV_SHELL_FLAGS: "-v /github/home/.go_cache_modules:/go/pkg --network host -v /var/run/docker.sock:/var/run/docker.sock -v /github/home/.ssh/:/root/.ssh/:ro -v /github/home/.docker:/home/github/.docker:ro -v /tmp/ssh-XXXXXXV2kS7t/agent.238:/tmp/ssh-agent.sock -e SSH_AUTH_SOCK=/tmp/ssh-agent.sock"
DEV_SHELL: ""
TEST_SHELL_FLAGS: "-v /github/home/.go_cache_modules:/go/pkg -v /var/run/docker.sock:/var/run/docker.sock -v /github/home/.ssh/:/root/.ssh/:ro -v /github/home/.docker:/home/github/.docker:ro -v /tmp/ssh-XXXXXXV2kS7t/agent.238:/tmp/ssh-agent.sock -e SSH_AUTH_SOCK=/tmp/ssh-agent.sock --network vp_network-"
TEST_SHELL: "docker run --rm -i -v /github/home/.go_cache_modules:/go/pkg -v /var/run/docker.sock:/var/run/docker.sock -v /github/home/.ssh/:/root/.ssh/:ro -v /github/home/.docker:/home/github/.docker:ro -v /tmp/ssh-XXXXXXV2kS7t/agent.238:/tmp/ssh-agent.sock -e SSH_AUTH_SOCK=/tmp/ssh-agent.sock --network vp_network- /dev: bash"
HELM_SHELL: "/bin/bash"
Makefile:8: build-tools/dev_image/Makefile: No such file or directory
make: *** No rule to make target 'build-tools/dev_image/Makefile'. Stop.
2026/07/11 00:24:52 Running /usr/bin/make [make] failed, continuing anyway: exit status 2
2026/07/11 00:24:52 Unsuccessfully ran 1 build scripts(s), continuing to install dependencies in the normal way.
2026/07/11 00:24:52 Installing dependencies using `go get -v ./...` in `.`.
Error: The operation was canceled.
Error: The operation was canceled = 2h later
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 493
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 44
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/codeql-action のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/codeql-action#4052 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
github/codeql-action#4078 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
github/codeql-action#3978 · コメント 4 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
github/codeql-action#3915 · コメント 6 件 · リアクション 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
github/codeql-action#3870 · コメント 3 件 · リアクション 1 件 ·
github/codeql-action の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dennys-bd/agent-hive#184 ·
-
Add: hunch オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AbdelStark/awesome-typesafe#104 ·
-
ai-observability bug team/ai-observability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vicharanashala/fln#563 ·