Tech debt#618
Conversation
santoshkumarradha
left a comment
There was a problem hiding this comment.
Thanks for pushing this cleanup through. I found a couple of concrete regressions while validating locally, so I’m requesting changes before this can land.
I ran cd control-plane && go test ./... in a fresh checkout of this PR and the run fails during SQLite setup because the new migration uses IF NOT EXISTS on ALTER TABLE ... ADD COLUMN, which SQLite does not support in the version our tests exercise. I also checked the new root compose.yaml, and the agent services point at ./agent.py, but this repo does not have that file at the root, so the example stack will not start as written.
Also worth noting: I only see the CLA check on the PR right now, so the normal CI gates do not appear to have run yet.
| -- RetryStaleWorkflowExecutions increments this column when resetting stuck runs. | ||
|
|
||
| -- +goose Up | ||
| ALTER TABLE workflow_executions ADD COLUMN IF NOT EXISTS retry_count INTEGER NOT NULL DEFAULT 0; |
There was a problem hiding this comment.
This migration breaks the current SQLite test path. ALTER TABLE ... ADD COLUMN IF NOT EXISTS is not accepted by the SQLite version our suite uses, so go test ./... fails during storage initialization with near "EXISTS": syntax error. Please switch this to the same compatibility pattern we use in earlier migrations so both fresh SQLite DBs and already-migrated DBs work.
| - from agent import agent; | ||
| agent.run() | ||
| volumes: | ||
| - ./agent.py:/app/agent.py |
There was a problem hiding this comment.
This compose example points at ./agent.py, but there is no agent.py at the repo root. In a fresh checkout the bind mount source is missing, so the agent and team services cannot start as written. If this is meant to reuse the triggers demo, please wire it to the real file under examples/triggers-demo/ or add the missing entrypoint alongside this compose file.
Performance
✓ No regressions detected |
|
Thanks for the cleanup pass. I did a security-focused read because this PR touches a lot of sensitive surfaces. I don’t see evidence of a supply-chain/backdoor style issue, but I think this should be split up and fixed before merge. Main blockers:
I’d recommend reducing this into small focused PRs: |
|
@santoshkumarradha sorry about the sloppy PR, I was in a rush yesterday. I'll split them properly. Rest assured it's not an account takeover 😆 |
Summary
Type of change
Test plan
Test coverage
This repo enforces a coverage gate on every PR (see
.github/workflows/coverage.ymlanddocs/COVERAGE.md)../scripts/coverage-summary.shand compares per-surfacenumbers against
coverage-baseline.json.if any surface is below 80%, or if the weighted aggregate falls below
85%.
Before asking for review, please confirm:
coverage-baseline.jsoninthis PR only if the removal caused a legitimate regression and I
called it out in the summary above.
Checklist
docs/DEVELOPMENT.md.
Related issues / PRs