Repository navigation
fix(scan): scan-host 路由字段用错(cluster→runner)+ 同步机断言 - #166
Open
KadenZhang3321 wants to merge 1 commit into
Open
KadenZhang3321 wants to merge 1 commit into
KadenZhang3321 wants to merge 1 commit into
Conversation
First dispatch (run 45956441953) exposed the bug: matrix carries
{cluster, runner} separately; scan-host used runs-on=matrix.cluster.
Consequences: hk001/aiframe/mind3/gy004/gy005 queued forever (no such
runner labels), while cn12-001 silently matched an sgl ARC job pod that
registers the cluster-name label and reported a bogus success scanning
the wrong machine.
- runs-on/concurrency now use matrix.runner (same as scan-arc);
- add Assert sync machine step: /etc/profile.d/model-tools.sh must exist
on model-sync hosts, so any future label collision fails loudly instead
of scanning the wrong disk.
resolve https://github.com/opensourceways/backlog/issues/2647
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.
resolve https://github.com/opensourceways/backlog/issues/2647
现象(首轮扫盘 run 45956441953)
linux-aarch64-a3-2-sgl-lp7gz-runner-zrw4w——sgl 业务 ARC pod,不是同步机。结果假。根因
prepare 把矩阵拆成
{cluster, runner}两个字段,scan-host 却写了runs-on: ${{ matrix.cluster }}:集群名多数不是 runner 标签(→永久排队),而cn12-001恰好撞上 ARC 池注册的集群标签(→静默跑错机器)。修复
runs-on/concurrency统一改matrix.runner(与 scan-arc 一致);/etc/profile.d/model-tools.sh,缺失即红——今后任何标签撞名导致的跑错机器都会大声失败,不会再假成功。影响