Skip to content

test: add workflow determinism validation#47

Merged
Amertz08 merged 1 commit into
mainfrom
claude/determinism-validation
May 15, 2026
Merged

test: add workflow determinism validation#47
Amertz08 merged 1 commit into
mainfrom
claude/determinism-validation

Conversation

@Amertz08
Copy link
Copy Markdown
Owner

Summary

  • Adds a workflowcheck CI job to .github/workflows/docker-build-push-worker.yml that runs static analysis before the Docker build, blocking merges if any workflow code contains non-deterministic constructs (goroutines, map iteration, time.Now(), etc.)
  • Adds internal/workflows/replay_test.go with replay specs for all 8 workflows — skipped by default, opt-in via RUN_REPLAY_TESTS=1 env var and Label("replay") Ginkgo filter
  • Adds internal/workflows/testdata/README.md with instructions for capturing workflow history JSON fixtures from a local Temporal dev server

Test plan

  • go test -v ./internal/workflows/... — replay specs skip automatically (no RUN_REPLAY_TESTS set)
  • workflowcheck ./... returns clean (verified locally)
  • CI workflowcheck job passes and gates build-and-push
  • After capturing history files: RUN_REPLAY_TESTS=1 ginkgo -v --label-filter "replay" ./internal/workflows/

🤖 Generated with Claude Code

…y tests

- Add workflowcheck CI step that gates Docker build on static analysis
- Add opt-in replay test suite (RUN_REPLAY_TESTS=1) with Label("replay")
- Add testdata/README.md with instructions for capturing history fixtures

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Amertz08 Amertz08 merged commit 80c70ae into main May 15, 2026
1 check passed
@Amertz08 Amertz08 deleted the claude/determinism-validation branch May 15, 2026 02:38
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.

1 participant