Skip to content

fix: 改用 NEVSTOP-LAB/lvCICD@main - #1

Merged
nevstop merged 2 commits into
mainfrom
fix/use-nevstop-lvcicd
Oct 7, 2026
Merged

nevstop merged 2 commits into
mainfrom
fix/use-nevstop-lvcicd

Conversation

@nevstop

@nevstop nevstop commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

背景

LV-APT/lvCICD 的 main 停在 5e7267dc(2025-09-06),lvCICD.ps1 只有 80 行:
Start-Process LabVIEW 之后固定 Start-Sleep -Seconds 10 就调用 LabVIEWCLI,没有端口就绪轮询、没有重试、没有实例重启。

self-hosted runner 上 LabVIEW 冷启动超过这个时间时会得到:

LabVIEW launched successfully.
Error code : -350000
The CLI for LabVIEW failed to establish a connection with LabVIEW.

而且 job 结束时 runner 会清掉 LabVIEW 进程,所以每次重跑的第一次调用都是冷启动 —— 表现为「连续几次 attempt 全部失败,某一次才通过」。

NEVSTOP-LAB/lvCICD@main 的 lvCICD.ps1 有 302 行,含端口就绪轮询、MaxRetries 重试与 RestartOnError66 / RestartOnConnectFailure 实例重启升级,正是这个失败模式的对症修复。

改动

action.yml 中的 uses: LV-APT/lvCICD@main 改为 uses: NEVSTOP-LAB/lvCICD@main。

实测依据

NEVSTOP-LAB/CSM-INI-Static-Variable-Support 的 run 37626587830:run_attempt = 4,前 3 次都失败在本 action 触发的 DownloadPackageFromNevstopFTP 调用上,错误全是 -350000;attempt 4 成功。

nevstop added 2 commits October 7, 2026 23:06
LV-APT/lvCICD 的 main 停在 2025-09-06,启动 LabVIEW 后只固定等待 10 秒且没有重试,
LabVIEW 冷启动超过该时间时会以 "Error code : -350000" 让步骤失败(同一 run 往往要重跑若干次,
等实例残留下来才偶然通过)。NEVSTOP-LAB/lvCICD@main 含端口就绪轮询、失败重试与实例重启升级。
workflow 里 `uses: NEVSTOP-LAB/<repo>@main` 让 push / PR 上的自我验证始终运行 main 的代码,
本次改动无法被自身 CI 覆盖。改为本地引用 `uses: ./`,验证的是被 push 的分支。
lvEcho 原 workflow 没有 checkout 步骤,补上 actions/checkout@v4。
@nevstop
nevstop merged commit e7fd530 into main Oct 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant