Skip types whose provider or library loads w10k cannot prove #10

Merged
benvin merged 4 commits from benvin/gentypes-fidelity into main 2026-11-09 22:34:08 +11:00
Member

puppet generate types writes no .pp when loading a type or its providers raises, and puppetserver then uses the Ruby type. w10k still wrote one for raising providers, rejected Resource API schemas and requires puppet resolves to core first.

  • analyse provider files and required libraries with the type-file allowlist
  • resolve requires with puppet core, gems and stdlib ahead of module lib dirs
  • read mixins from the required file; skip paths several modules provide
  • resolve constants by lexical scope
  • mirror resource_api schema raises, Variant flattening and float lexing
  • write no .pp for a skipped type and remove any stale one; bump gentypes.Version to 5
`puppet generate types` writes no .pp when loading a type or its providers raises, and puppetserver then uses the Ruby type. w10k still wrote one for raising providers, rejected Resource API schemas and requires puppet resolves to core first. - analyse provider files and required libraries with the type-file allowlist - resolve requires with puppet core, gems and stdlib ahead of module lib dirs - read mixins from the required file; skip paths several modules provide - resolve constants by lexical scope - mirror resource_api schema raises, Variant flattening and float lexing - write no .pp for a skipped type and remove any stale one; bump gentypes.Version to 5
unkin-agent added 1 commit 2026-11-08 22:15:28 +11:00
Skip types whose provider or library loads w10k cannot prove
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
92efabd123
- analyse provider files and required libraries with the type-file allowlist
- resolve requires with puppet core, gems and stdlib ahead of module lib dirs
- read mixins from the file that was required; skip paths several modules provide
- resolve constants by lexical scope
- mirror resource_api schema raises, Variant flattening and float lexing
- seed .resource_types from the live worktree so skipped types keep their .pp
unkin-agent added 1 commit 2026-11-08 22:21:58 +11:00
Restrict libraries that reopen puppet's own classes to nesting new ones
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
8f60f9a5d4
unkin-agent added 2 commits 2026-11-08 22:50:01 +11:00
Merge remote-tracking branch 'origin/main' into benvin/gentypes-fidelity
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
169a3be7ad
benvin merged commit 13679ff780 into main 2026-11-09 22:34:08 +11:00
benvin deleted branch benvin/gentypes-fidelity 2026-11-09 22:34:08 +11:00
This repo is archived. You cannot comment on pull requests.