Skip to content

[puppetsync] Fix hiera.yaml write race in spec_helper - #120

Merged
michael-riddle merged 1 commit into
simp:masterfrom
silug:puppetsync/20260820-spec-helper-race
Aug 24, 2026
Merged

[puppetsync] Fix hiera.yaml write race in spec_helper#120
michael-riddle merged 1 commit into
simp:masterfrom
silug:puppetsync/20260820-spec-helper-race

Conversation

@silug

@silug silug commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Every parallel_spec worker's before(:all) hook rewrote the shared
spec/fixtures/hieradata/hiera.yaml in place; a catalogue compile in
another worker during the truncation window saw an empty hiera
config and silently dropped all custom hieradata, producing random
hieradata-not-applied spec failures across the fleet. hiera.yaml is
now written atomically (write + rename).

See simp/puppetsync#90; validated on simp/pupmod-simp-simplib#363.

Every parallel_spec worker's before(:all) hook rewrote the shared
spec/fixtures/hieradata/hiera.yaml in place; a catalogue compile in
another worker during the truncation window saw an empty hiera
config and silently dropped all custom hieradata, producing random
hieradata-not-applied spec failures across the fleet. hiera.yaml is
now written atomically (write + rename).

See simp/puppetsync#90; validated on simp/pupmod-simp-simplib#363.
@silug
silug force-pushed the puppetsync/20260820-spec-helper-race branch from 377546c to eb3e512 Compare August 24, 2026 14:52
@michael-riddle
michael-riddle merged commit d93e3c8 into simp:master Aug 24, 2026
23 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in Org Triage Aug 24, 2026
@silug silug removed this from Org Triage Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants