Commit Graph

24 Commits

Author SHA1 Message Date
unkin-agent 94bcdc19f4 Merge remote-tracking branch 'origin/benvin/timings' into benvin/named-deploy
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
# Conflicts:
#	internal/deploy/deploy.go
2026-11-08 20:49:07 +11:00
unkin-agent ba06c3bae7 Merge remote-tracking branch 'origin/benvin/generate-types' into benvin/timings
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
# Conflicts:
#	internal/deploy/deploy.go
#	internal/gentypes/generate.go
#	internal/gentypes/generate_test.go
2026-11-08 20:47:56 +11:00
unkin-agent 8ea6aacd3f Merge remote-tracking branch 'origin/benvin/scaffold' into benvin/generate-types
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
# Conflicts:
#	internal/deploy/deploy.go
2026-11-08 20:46:10 +11:00
unkin-agent b31b4f6175 Skip types w10k cannot prove match puppet
- bound-check a trailing $ in the lexer and turn a per-file panic into an env error
- allowlist top-level statements: requires, literal constants, module Puppet, begin/rescue requires
- require the require that defines Puppet::ResourceApi, Boolean and File parents and included mixins
- name providers by their provide call; skip types whose provider files are not one recognised provide
- read symbol option keys only, as newparam, newproperty and register_type do
- parse Resource API types with a TypeParser-compatible grammar
- skip duplicate properties and parameters
- add a parseFile fuzz target and real-puppet golden fixtures for each case
2026-11-08 20:45:18 +11:00
unkin-agent d7ab79f874 Write the branch as the deploy marker name, as g10k does
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
2026-11-08 20:40:10 +11:00
unkin-agent 1c192c9409 Keep targeted deploys targeted across sources and drop unverifiable GC marks 2026-11-08 20:39:22 +11:00
unkin-agent 09f84fd752 Merge remote-tracking branch 'origin/benvin/timings' into benvin/named-deploy
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-11-08 20:34:09 +11:00
unkin-agent 2e7644e2fa Merge remote-tracking branch 'origin/benvin/generate-types' into benvin/timings
# Conflicts:
#	internal/deploy/deploy.go
#	internal/deploy/deploy_test.go
#	internal/deploy/git.go
2026-11-08 20:33:44 +11:00
unkin-agent 7d457a89cf Clear GC marks for worktrees and modules a named deploy swaps in
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
2026-11-08 20:32:25 +11:00
unkin-agent 0112806a21 Merge remote-tracking branch 'origin/benvin/scaffold' into benvin/generate-types
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
# Conflicts:
#	internal/deploy/deploy.go
2026-11-08 20:31:40 +11:00
unkin-agent cee4a1fb8d Scope named deploys to their envs and complete env args 2026-11-08 20:31:06 +11:00
unkin-agent a152bb57a0 Merge remote-tracking branch 'origin/benvin/scaffold' into benvin/generate-types
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
# Conflicts:
#	internal/deploy/deploy.go
2026-11-08 20:30:54 +11:00
unkin-agent 55224fd9f7 Report wait on leaf phases only and include it in module.download
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
2026-11-08 20:30:31 +11:00
unkin-agent dd1421f77c Drop named-deploy scoping and env completion 2026-11-08 20:30:31 +11:00
unkin-agent 53e78a5f75 Serialize worktree commands per repo
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
2026-11-08 20:29:23 +11:00
unkin-agent 8a336b62a5 Harden Puppetfile parsing, module sources and cache GC
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
- return an error for an option with no value instead of reading past EOF
- recover panics per environment, module and single-flight as errors
- accept only https, http, ssh and user@host:path module remotes
- fetch modules with protocol.file.allow=never
- reuse module and forge dirs only with an out-of-tree done marker
- rename GC'd dirs aside before deleting and sweep leftovers
- add a Puppetfile fuzz target; serve test modules over git smart HTTP
2026-11-08 20:25:59 +11:00
unkin-agent e7c72ed2d7 Test named deploys and timing phase keys
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-11-08 20:20:22 +11:00
unkin-agent d570c98fea Skip unparseable types instead of failing the environment
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
Parse failures are logged per file and counted per env; I/O, confinement and parser-limit errors still fail the deploy.
2026-11-08 19:01:34 +11:00
unkin-agent 0edce80e2c Key typed worktrees on generate_types and the generator version
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
2026-11-08 18:50:46 +11:00
unkin-agent e2bd36c8d9 Merge remote-tracking branch 'origin/benvin/scaffold' into benvin/generate-types
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
# Conflicts:
#	internal/deploy/config.go
#	internal/deploy/deploy_test.go
2026-11-08 18:08:16 +11:00
unkin-agent af20148ea4 Confine worktree writes, time out git calls, keep removed sources' modules
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
- write the deploy marker and module links through os.Root
- extract forge tarballs through os.Root
- bound each git call with w10k.git_timeout (default 10m) and http low-speed abort
- count module refs from every worktree and basedir link, not only configured sources
2026-11-08 18:07:09 +11:00
unkin-agent dfb5fa021f Generate Puppet resource types natively before the env swap
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/lint Pipeline was successful
- add gentypes: a static Go port of `puppet generate types` for classic and Resource API types
- run it in prepare when w10k.generate_types is set; a failure fails the env and keeps the old link
- confine reads to the worktree and module cache, refuse a committed .resource_types symlink
- test against real puppet output for a vendored Apache-2.0 type set
2026-11-08 17:59:12 +11:00
unkin-agent 01fa51110b Harden module installs against untrusted Puppetfiles
- reject option-like :git URLs and refs; pass -- before git positionals
- link modules without following symlinks; reject nested module paths
- judge worktree completeness by an out-of-tree done file
- key git mirrors by URL hash and forge releases by forge base
- bound every git and forge call with the -j semaphore
2026-11-08 17:52:07 +11:00
unkin-agent fc5d90b684 Add w10k: deploy Puppet environments as sha-pinned git worktrees
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-11-08 17:38:08 +11:00