Skip to content

ci(fix): resolve lint failure, broken coverage task, and redundant test runs#39

Merged
wax911 merged 3 commits into
mainfrom
ci/fix-ci-failures
Jul 5, 2026
Merged

ci(fix): resolve lint failure, broken coverage task, and redundant test runs#39
wax911 merged 3 commits into
mainfrom
ci/fix-ci-failures

Conversation

@wax911

@wax911 wax911 commented Jul 5, 2026

Copy link
Copy Markdown
Member

Description

Resolves three issues causing CI to fail on the default branch:

1. Lint failure: no-explicit-any

src/cli/mod.ts:1492 used { complete: completeStackNames } as any to bypass Cliffy's type system. Replaced with the documented .complete("stacks", completeStackNames) chain API which is fully typed.

2. Broken coverage task

deno task coverage errored with "No coverage files found" because the path .coverage was missing. Fixed the task and added a test:coverage task for CI use (keeping test lightweight for local dev).

3. Redundant test runs in CI

Tests ran twice: once via deno task test and again in the coverage step via deno test --coverage=.coverage. Consolidated to a single test:coverage pass.

Validation (all passing locally)

  • fmt:check -- 54 files, 0 issues
  • lint -- 54 files, 0 issues (was failing before)
  • check (type) -- pass
  • test -- 357 passed, 0 failed
  • test:coverage -- 357 passed, 0 failed
  • coverage -- detailed report generated

wax911 added 3 commits July 5, 2026 17:16
The --stacks option on the plan command was using `{ complete: completeStackNames } as any`
to bypass Cliffy's type system. This triggered the `no-explicit-any` lint rule, causing
CI to fail at the lint step.

Replaced with the documented `.complete("stacks", completeStackNames)` chain method
which is fully typed and the idiomatic Cliffy approach.
Added a dedicated `test:coverage` task that runs tests with --coverage=.coverage for CI use,
keeping the `test` task lightweight for local dev (coverage instrumentation adds 5-20% overhead).

Fixed the `coverage` task which was missing the .coverage directory argument. Previously
`deno task coverage` errored with "No coverage files found" because it defaulted to the
current directory instead of the coverage output directory.
Previously tests ran twice in CI: once via `deno task test` (no coverage) and again via
`deno test ... --coverage=.coverage` in the coverage step. This doubled CI test time.

Consolidated to a single test pass with coverage using `deno task test:coverage`, followed
by `deno task coverage` to generate the detailed report.

Also added .slim/deepwork/ to .gitignore and created .ignore to allow deepwork files
for agent-assisted development sessions.
@wax911 wax911 merged commit 6a282c9 into main Jul 5, 2026
4 checks passed
@wax911 wax911 deleted the ci/fix-ci-failures branch July 5, 2026 15:20
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