Relocate packaging: RPM, shell completions, no-TTY fix, repaired tests #13
Reference in New Issue
Block a user
Delete Branch "benvin/relocate-package-completions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The unit tests stopped compiling after the
--pm→-p/-imatch-modifier refactor was left uncommitted, there was no RPM/completions distribution story, and invoking the tool without a TTY against an empty pipe silently returned nothing. This makes the project releasable and safe to run from agents/CI.Changes
!isTerminalcheck withstdinReader(), which only reads node names when stdin is a real pipe/redirect carrying data. Terminals,/dev/null, and empty/closed pipes now fall through to a normal query, so running without a TTY behaves like an interactive run.main_test.goto match the currentbuildQuery/runsignatures; add coverage for the match modifiers, all output modes, config precedence, and the newstdinReaderlogic.httpteststubs PuppetDB (no live deps).packaging/nfpm.yaml,scripts/build-rpm.sh): installs the binary to/usr/bin/node-lookupand bundles generated bash/zsh/fish completions under the standard system paths.dist/and addcompletions/rpmtargets.build,test, andpre-commitworkflows and extendreleaseto build the RPM andPUTit to the artifactapirpm-internalrepo. Every step sets aserviceAccountand k8s resources.The project directory has also been relocated under
prodenv.