Repository navigation
ci: accept site kubeconfigs in the CS capacity preflight - #506
Open
Ariznawlll wants to merge 6 commits into
Open
Ariznawlll wants to merge 6 commits into
Ariznawlll wants to merge 6 commits into
Conversation
Collaborator
Author
|
@XuPeng-SH 麻烦帮忙复审一下 #506( |
Collaborator
Author
XuPeng-SH
requested changes
Nov 29, 2026
| # one shared parser allowance, not one extra wait per configured site. | ||
| using_kubeconfig = any(isinstance(configs[site], dict) and "kubeconfig" in configs[site] | ||
| for site in sites) | ||
| deadline = time.monotonic() + SNAPSHOT_SECONDS + (KUBECONFIG_PARSE_SECONDS if using_kubeconfig else 0) |
Contributor
There was a problem hiding this comment.
P2|一个慢站点会拖住两组 Coverage 派单。 本地故障注入让两个健康站点返回同一组可用 runner,第三站点一直卡住。Base 在约 15 秒返回,当前 JSON 路径等了约 120 秒,kubeconfig 路径等了约 130 秒。两组派单都依赖这个结果,因此即使早已有足够落点,仍要等慢站点耗完预算。
容量读取和必选准入共用 check_coverage_eligibility 的 5 分钟总预算。比如前置步骤已耗时 3 分钟时,130 秒采集会触发整个 job 的超时,continue-on-error 也无法让共享队列接手。
请为可选采集保留短的共享总预算,并在已有足够可用落点时尽早返回。请用一个慢站点与两个健康站点的组合验证派单可继续,同时覆盖容量读取耗尽预算时的共享队列兜底。 准入 job
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Accept the platform-issued standalone read-only kubeconfig as a per-site Secret in the trusted Coverage preflight. Embedded client certificates and static bearer tokens are supported; auth plugins, external file references, proxy configuration, and disabled TLS verification are rejected. The credential stays in preflight. The existing JSON source remains usable for sites without kubeconfigs; the same six read-only inventory APIs, TLS verification, freshness guard, and shared-queue fallback are unchanged.
Verification