-
Use REST API in stubs repo discovery and run it inside the container (#9434)
发布于
2026-04-23 21:32:57 +00:00 | 128 次提交 在此版本后已推送到 masterContinuation of #9433.
find_datasource_repos.py: drop the gh CLI in favor of urllib + REST with
QC_GIT_TOKEN as a Bearer token. The REST /orgs/{org}/repos endpoint only
needs the 'repo' scope -- which the PAT already has for git clone --
whereas gh's GraphQL path required 'read:org' and returned HTTP 401 when
that scope was missing. Also add HTTP keep-alive via thread-local
HTTPSConnection and run the independent JSON download + org listing in
parallel to cut end-to-end runtime by ~40%. Log a diagnostic line when
QC_GIT_TOKEN is unset so empty output is easier to trace.gh-actions.yml: run the python script inside the container (which
already has QC_GIT_TOKEN from docker run -e) and chain it with
ci_build_stubs.sh in a single runInContainer bash -c, removing the
host->docker exec env round-trip. Drop the -e ADDITIONAL_STUBS_REPOS
injection since the python script now supplies the full list.Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
下载附件