Skip to content

Reorganize codebase, add E2E CLI tests and docs#2

Merged
NeerajG03 merged 1 commit intomainfrom
reorganize-codebase-e2e-tests
Mar 15, 2026
Merged

Reorganize codebase, add E2E CLI tests and docs#2
NeerajG03 merged 1 commit intomainfrom
reorganize-codebase-e2e-tests

Conversation

@NeerajG03
Copy link
Owner

Summary

  • Codebase reorganization: Split large files for better navigability
    • task.go (524 lines) → task.go (mutations) + query.go (reads)
    • id.go merged into store.go (single function, only used there)
    • task_cmds.go (700 lines) → task_cmds.go + list_cmd.go + query_cmds.go
    • Config commands extracted from util_cmds.goconfig_cmd.go
    • Added doc.go with package-level file layout guide
  • E2E CLI test suite: 21 tests that build the binary, run commands against temp GIG_HOME, and assert output. Already caught a real bug (--actor not wired to create's CreatedBy)
  • CI updated: E2E tests run alongside unit tests in GitHub Actions
  • Docs: SECURITY.md, gig config set command, ExcludeStatuses in SDK reference, tree view/config defaults in roadmap, web UI no-auth note, testing & code quality guides in CLAUDE.md
  • Bug fix: --actor flag now correctly sets CreatedBy on task creation

Test plan

  • go test ./... — all SDK unit tests pass
  • go test -tags=e2e -count=1 ./cmd/gig/ — all 21 E2E CLI tests pass
  • go vet ./... — clean
  • go build ./cmd/gig/ — binary builds
  • CI workflow runs both unit and E2E tests on this PR

🤖 Generated with Claude Code

Split large files for better navigability:
- task.go → task.go (mutations) + query.go (reads)
- id.go merged into store.go
- task_cmds.go → task_cmds.go + list_cmd.go + query_cmds.go
- config commands extracted to config_cmd.go
- Added doc.go with package layout guide

Add E2E CLI test suite (21 tests) that builds the binary and
exercises every major command. Caught and fixed a bug where
--actor flag was not wired to create command's CreatedBy field.

Add SECURITY.md, update docs with config set, ExcludeStatuses,
tree view, web UI no-auth note, and testing/code quality guides.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NeerajG03 NeerajG03 merged commit e6fbc27 into main Mar 15, 2026
1 check passed
NeerajG03 added a commit that referenced this pull request Mar 15, 2026
Reorganize codebase, add E2E CLI tests and docs
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