Repository navigation
Clear the build LabVIEW's compiled object cache at the start of every CI job - #35
Conversation
#29's package build failed with "The following source VIs or Libraries are missing: Tool Annotations.ctl, Tool Hint.ctl", files #29 does not have. The job before it built #34, whose branch has them, in the same workspace path, and LabVIEW 2020 was still running with that job's MCP Server.lvlib in memory. The clean start only ended LabVIEW when a leftover VIPM Desktop was found. With -Fix -CleanStart (the first step of every job) the resolver now also closes the LabVIEW chosen for the tests and the build if it is running, and says so in the job summary. LabVIEW CLI and VIPM start it again with this checkout's files. The check after the package install does not pass -CleanStart and keeps what the install started. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests✅ All 50 tests passed. Per-test results
Protocol tests✅ Protocol tester output (0 failed required checks)VI diff reportNo VI, VIM or CTL files changed in this pull request. Report for commit 2dc3cfc. The installable test package is under Artifacts of this run once the build job has finished. |
Closing LabVIEW alone does not explain or fix #29's failure: the runner already terminates LabVIEW and VIPM at the end of every job. The error names Get Tool.vi as the caller of the missing Tool Annotations.ctl and Tool Hint.ctl, and Get Tool.vi is identical on #29 and #34. The repository's VIs are saved source-only, so their compiled code lives in LabVIEW's compiled object cache, keyed by file path; Get Tool.vi's entry was compiled against #34's Tool Data.ctl and stayed valid because the checkout did not change the file. With -Fix -CleanStart the resolver now also deletes the cache folder of the test/build LabVIEW's version (Documents\LabVIEW Data\VIObjCache\ 20.0.0r0 for LabVIEW 2020), after closing that LabVIEW, and notes it in the job summary. LabVIEW rebuilds it from this checkout's files, at the cost of compiling the VIs once per job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Update ( |
|
Verified on the runner after merging: #29's fresh run (39174605466) passed review and |
PR #30 was merged into main; this brings main's CI and diff-report changes (#29, #35) into the branch. The toolkit and test files that both branches touched are PR #30's final versions on main, which this branch already builds on, so the branch's versions are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
After #32, four of the five pull requests built their package. #29's build failed in under five minutes with a different error:
#29 does not contain those two controls, and nothing in its tree refers to them. The job before it on the runner built #34, whose branch has them, from the same workspace path.
Get Tool.viis byte-identical on both branches. The repository's VIs are saved source-only, so their compiled code lives in LabVIEW's compiled object cache (Documents\LabVIEW Data\VIObjCache\20.0.0r0), keyed by file path.Get Tool.vi's cache entry was compiled against #34'sTool Data.ctl, which usesTool Annotations.ctl. Checkout did not touch the unchanged file, so that entry stayed valid for the next job.My first commit here only closed a still-running LabVIEW. That cannot be the fix: the runner already terminates LabVIEW and VIPM at the end of every job (see "Terminate orphan process" in any job log).
Changes
tools/ci/Resolve-CiEnvironment.ps1, with-Fix -CleanStart(every job's first step):VIObjCache\20.0.0r0for LabVIEW 2020)The check after the package install does not pass
-CleanStart, so it keeps the LabVIEW the install just started.Why this pull request's own checks fail
Pull request runs take
tools/cifrom main, not from the pull request, so a pull request cannot change how its own checks run. This pull request'stest-buildtherefore runs the old scripts and fails with the same error as #29. That failure says nothing about the change.The change takes effect on main for every run, reruns included.
Verified
C:\Users\PVE\Documents\LabVIEW Data\VIObjCache\20.0.0r0).-Fixthe new code does not run; the read-only run gives an unchanged result.Not verified
Cost
Each job compiles the VIs once more, because the cache starts empty. That adds some time to the review and build jobs.
Maintainer steps
test-buildjob of Show every case frame of changed VIs in the detailed diff report #29. That is the test.test-buildtoo if you want it green; it will then use the merged scripts.🤖 Generated with Claude Code