Skip to content

Fix failing CI lint check and document CI completion expectations#22

Merged
danieljhkim merged 2 commits into
mainfrom
orbit/T20260510-19-6a00efca
May 10, 2026
Merged

Fix failing CI lint check and document CI completion expectations#22
danieljhkim merged 2 commits into
mainfrom
orbit/T20260510-19-6a00efca

Conversation

@danieljhkim
Copy link
Copy Markdown
Owner

Task

T20260510-19 — Fix failing CI lint check and document CI completion expectations

Description

Problem

The latest GitHub Actions CI workflow is failing on main before tests run. Run 25638736264 failed in the Lint & Test job during the Lint step with:

func (*Engine).workspacesDirs is unused (unused)

The failing run is https://github.com/danieljhkim/monodev/actions/runs/25638736264 on commit 63491c5dfbfb06894a9b105ec879ca48db17df69.

There is also no root CLAUDE.md yet, but this task should add one or update it if it appears before implementation. The file must instruct future agents to check and pass CI checks once work is complete.

Why It Matters

CI is currently blocking reliable merges and skips the unit/integration test steps because lint fails first. Adding explicit agent guidance should reduce recurrence by making CI verification part of the expected completion checklist.

Constraints / Notes

  • Keep the lint fix scoped to the unused (*Engine).workspacesDirs issue unless investigation finds a directly related cause.
  • Do not weaken linting to hide the failure.
  • CLAUDE.md may need to be created at the repository root because it does not currently exist.
  • Relevant local CI commands are make lint, make test, and make test-integration; the GitHub workflow runs golangci/golangci-lint-action@v4, then make test, then make test-integration.

Acceptance Criteria

  • make lint or an equivalent local golangci-lint run ./... check completes with no unused-code findings, including no finding for (*Engine).workspacesDirs.
  • make test completes successfully.
  • make test-integration completes successfully, or any environment-specific blocker is documented with the exact command output and the GitHub CI run is used as the final source of truth.
  • A root-level CLAUDE.md exists and includes an explicit instruction that agents must check CI status and ensure CI checks pass after completing work.
  • A pushed branch or PR reruns the CI workflow, and the Lint & Test job passes all steps: Lint, Test, and Integration Test.

Execution Summary

Click to expand

Outcome: success

Changes:

  • Removed the unused (*Engine).workspacesDirs helper from internal/engine/workspace_state.go, resolving the golangci-lint unused finding without weakening linting.
  • Added root CLAUDE.md with explicit guidance to check CI status and ensure CI checks pass after work is complete, plus the local CI-equivalent commands.
  • Updated the integration drift-detection test to match current engine behavior and existing unit coverage: unapply without force returns ErrValidation/ErrDrift and preserves the drifted file and workspace state.

Assessment: Local lint, unit tests, and integration tests pass. CI rerun remains pipeline-owned after the branch/PR is pushed.

Validation

  • Not reported

Branch Freshness

  • Base ref: origin/main
  • Head ref: orbit/T20260510-19-6a00efca
  • Behind base: 0
  • Ahead of base: 1

authored by: gpt-5

orbit and others added 2 commits May 10, 2026 13:54
Tasks:
- T20260510-19: Fix failing CI lint check and document CI completion expectations
…00efca

# Conflicts:
#	test/integration/unapply_test.go
@danieljhkim danieljhkim merged commit 1794d25 into main May 10, 2026
3 checks passed
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