Commit Graph
26 Commits
Author SHA1 Message Date
Story Crater Bot 463ddf1f2a test(activities): implement comprehensive activity and workflow tests
Unit tests for all git activities:
- TestGitCloneAndFetch ✓
- TestGitWorktreeAdd ✓
- TestGitCommit ✓
- TestGitDiff ✓
- TestGitSquashMerge ✓

Integration test framework for LLM and Temporal:
- TestTemporalConnection
- TestActivityExecution
- TestLLMActivityAvailability
- TestOrchestratorWorkflowIntegration

All unit tests passing (8/8).
Integration tests available with: go test -v ./tests/temporal_integration_test.go
(Requires TEMPORAL_HOSTPORT and ANTHROPIC_API_KEY set)
2026-08-22 10:26:05 -07:00
Story Crater Bot 28b3e2c37a feat(taskqueue): rename from 'default' to 'poimen-taskqueue'
Updated all references to task queue:
- cmd/worker/main.go: NewWorker second param
- cmd/starter/main.go: ExecuteWorkflow StartWorkflowOptions + output display
2026-08-22 10:18:11 -07:00
Story Crater Bot 54f4cba45f fix(kustomize): remove old worker-deployment from resources
Now using TWC (Temporal Worker Controller) WorkerDeployment CR instead of
raw Kubernetes Deployment. Keep only orchestrator-job in kustomization.
2026-08-22 10:05:55 -07:00
Story Crater Bot d2345b1eba fix(workflow): add activity timeouts to prevent BadScheduleActivityAttributes
All ExecuteActivity calls were missing StartToCloseTimeout and
ScheduleToCloseTimeout, causing 'BadScheduleActivityAttributes' errors.

- Added 10min timeout for git operations (clone, worktree, push, merge)
- Added 30min timeout for LLM activities (implementer, which calls Claude)
- Git operations use shared ctxWithOptions context
- LLM activities get their own implCtx with longer timeout
- Added time import
2026-08-22 10:05:05 -07:00
Story Crater Bot 9364b68f66 fix(deploy): use apt-get for Debian golang:latest image
golang:latest is Debian-based, not Alpine. Replace apk package manager
commands with apt-get for both orchestrator and worker deployments.
2026-08-22 06:09:15 -07:00
Story Crater Bot 1b3e2f9789 fix(deploy): use golang:latest to satisfy Go 1.25.4 requirement
Dependencies require go >= 1.25.4. Alpine golang:1.22-alpine doesn't have it.
Use golang:latest which should have Go 1.25+ available. Re-enable orchestrator job.
2026-08-22 06:02:55 -07:00
Story Crater Bot 71ceb5cdc6 fix(build): require go 1.22 instead of non-existent go 1.25.4
golang:1.23-alpine doesn't exist yet. Revert to golang:1.22-alpine
and update go.mod to require go 1.22, which matches the available image.
2026-08-22 06:02:03 -07:00
Story Crater Bot 27ed8a9675 fix(build): update Go version requirement to 1.23
go.mod required go >= 1.25.4 but golang:1.25-alpine doesn't exist yet.
Downgrade to go 1.23 which is available in Alpine images and sufficient
for the codebase. Update both deployment and job images to golang:1.23-alpine.
2026-08-22 05:59:33 -07:00
Story Crater Bot 62b14a9ee2 fix(orchestrator): clone correct repo and fix paths
- Clone from poimen-workflows.git (correct repo)
- Remove unnecessary gcc and musl-dev (not needed for running Go binaries)
- Fix cd path from /app/workflows to /app
2026-08-22 05:57:44 -07:00
Story Crater Bot b664c3ce40 fix(worker): clone correct repo and fix working directory
- Clone from poimen-workflows.git (where worker code actually lives)
- Remove unnecessary packages from apk add
- Change workdir to /app (no /workflows subdirectory)
- Fix go run path to ./cmd/worker
2026-08-22 05:55:53 -07:00
Story Crater Bot af41f1477b fix(kustomize): remove duplicate configmap resource & use literals
- Remove configmap.yaml from resources (conflicted with configMapGenerator)
- Define TEMPORAL_* vars as literals in configMapGenerator
- This fixes the namespace transformation ID conflict
2026-08-22 05:54:52 -07:00
Story Crater Bot 2dd57da647 fix(kustomize): use create behavior for generators
Change configMapGenerator and secretGenerator behavior from 'merge'
to 'create' since target ConfigMap/Secret don't exist on first deploy.
'merge' only works when the resource already exists.
2026-08-22 05:54:13 -07:00
Story Crater Bot f8a733ef87 test(ci): verify multi-package build to directory 2026-08-22 01:04:42 -07:00
Story Crater Bot be455dca7a fix(ci): build multiple cmd packages to directory not file
go build -o flag with ./cmd/... builds multiple binaries. The -o path
must be a directory when building multiple packages, not a file.
2026-08-22 01:04:41 -07:00
Story Crater Bot e7ce8c61b5 test(git): verify main branch creation in tests 2026-08-22 01:03:04 -07:00
Story Crater Bot 4d7c1555bd fix(tests): create main branch after initial commit for worktree tests
Tests were failing because git worktree add -b branch worktree origin/main
requires origin/main to exist. Now all test setups create main branch after
initial commit so cloned repos have the expected branch.
2026-08-22 01:03:02 -07:00
Story Crater Bot 9651323a19 test(build): verify unused import removal 2026-08-22 01:01:33 -07:00
Story Crater Bot 79630e5d3c fix(action): remove unused fmt import
Fixes build failure: action/integration_test.go uses only context and exec,
not fmt. Import was unused and causing build failure.
2026-08-22 01:01:32 -07:00
Story Crater Bot 6f89eadbeb test(git): verify git commit with configured user 2026-08-22 00:57:59 -07:00
Story Crater Bot 7065ee2c74 fix(action): configure git user in worktree before commit
Worktrees don't inherit git config from main repo, causing 'git commit'
to fail with exit status 128 when user.name/user.email are not set.
Configure with poimen agent identity before each commit.
2026-08-22 00:57:57 -07:00
Story Crater Bot 99473a0d20 test(ci): verify git clone checkout 2026-08-22 00:47:18 -07:00
Story Crater Bot bb6bfd30da fix(ci): use git clone instead of Node.js actions/checkout 2026-08-22 00:47:11 -07:00
Story Crater Bot 5db0fc2a9f test(ci): verify node installation for actions 2026-08-22 00:45:40 -07:00
Story Crater Bot 907b641f07 fix(ci): install node in golang container for actions/checkout 2026-08-22 00:45:39 -07:00
Story Crater Bot e0947c5ed3 test(ci): verify main-branch trigger
ci / test (push) Failing after 11s
2026-08-21 21:24:24 -07:00
Story Crater Bot 30a7f4fec6 ci(main): add Go test and build workflow
ci / test (push) Failing after 45s
2026-08-21 21:23:40 -07:00