Repository navigation
Exclude tools/, _ci/ and .git from the VI package - #36
Merged
Merged
Conversation
The package build takes the whole repository root as its source folder
and excluded only .github, builds, tests and a few UserState files. The
pull request workflow checks main's tools/ci out into _ci/ inside the
workspace, and since tools/ci contains Print Diagram Frames.vi the
build saw that VI twice and stopped with VIPM error 42 ("The following
source VIs are duplicates"). Every pull request's test build failed on
it.
tools/ holds CI, setup and protocol test scripts; nothing in src/ or
examples/ uses them, and they do not belong in the installed package.
Excluding tools/ and _ci/ fixes the duplicate and keeps the scripts out
of the package. The package no longer installs tools/ci, tools/setup
and tools/test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package build copied the checkout's .git entry into vi.lib. In a worktree that is a one-line file naming a path on the build machine (the 2.6.1.10 package carries one pointing at a local build_pr10 worktree); it has no use in an installed package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests✅ All 53 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 80b0514. The installable test package is under Artifacts of this run once the build job has finished. |
JanGoebel
pushed a commit
that referenced
this pull request
Oct 19, 2026
Brings in #36, which keeps tools/ out of the VI package; the test build failed on the duplicate Print Diagram Frames.vi it removes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JanGoebel
pushed a commit
that referenced
this pull request
Oct 19, 2026
Brings in #36, which keeps tools/ out of the VI package; the test build failed on the duplicate Print Diagram Frames.vi it removes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Every pull request's test build fails with VIPM error 42, "The following source VIs are duplicates ... Print Diagram Frames.vi" (e.g. run 39177065851 on #31). The package build takes the repository root as its source folder, and the workflow checks main's
tools/ciout into_ci/inside the workspace. Since #29 addedtools/ci/Print Diagram Frames.vi, the build sees that VI twice. This pull request excludestools/,_ci/and.gitfrom the package._ci/in the workspacevi.lib/jgoebel/LabVIEW MCP Server SDKsrc,tools/ci/*.ps1,.git, docs, readme, licensesrc, docs, readme, licenseChanges
src/LabVIEW MCP Server SDK.vipb(modified): three new<Exclusions>entries,tools,_ciand.git, in the same format as the existing ones. I edited the text directly; VIPM did not have to save the file, and the builds below left it unchanged.tools/holds CI, setup and protocol-test scripts. Nothing insrc/orexamples/refers to them. The 2.6.1.10 package installedtools/ci/Convert-CarayaReport.ps1,New-ViDiffReport.ps1andPublish-PrReport.ps1into vi.lib._ci/is the workflow's checkout of main's scripts..git: the package copied the checkout's.gitentry. From a worktree that is a file holding a local path (2.6.1.10 carriesgitdir: C:/Users/PVE/.../worktrees/build_pr10).No VIs change, so there is no Code summary and no diff report.
Verified
All on this machine with
vipm 26.3.2, LabVIEW 2020 64-bit, in a clean worktree of this branch with a copy oftools/ciat_ci/tools/ci(the same layout the workflow creates):.vipb:vipm buildfailed with error 42,Print Diagram Frames.vilisted twice..vipb,vipm buildsucceeded in 240 s and producedjgoebel_lib_labview_mcp_server_sdk-2.2.6.37.vip.tools/,_ci/or.gitentries and no.ps1files;src/MCP Server, the examples, docs, readme and license are there (146 files).Not verified
.gitpointer, which nothing loads.Known rough edges
CLAUDE.mdanddocs/(contributor guides) still go into the package. Whether they belong there is the maintainer's call, so I left them in.Maintainer steps (optional)
The cleaner long-term fix is to keep the script checkout out of the build's source tree. In
.github/workflows/pull-request.yml, check_ciout under$RUNNER_TEMPinstead of the workspace.actions/checkoutonly accepts paths under the workspace, so this means either agit clone --depth 1 --filter=blob:none --sparse/git sparse-checkout set tools/ci tools/setupstep into$env:RUNNER_TEMP\_ci, or keeping the checkout step and moving the folder afterwards (Move-Item "$env:GITHUB_WORKSPACE\_ci" "$env:RUNNER_TEMP\_ci"). Then point the$civariable and the script paths ($env:GITHUB_WORKSPACE\_ci\...) at the new place in both jobs. With the exclusions from this pull request the build is correct either way.🤖 Generated with Claude Code