Skip to content

ci: add API smoke check, fix lint workflow parse error#87

Open
Rufai-Ahmed wants to merge 1 commit into
Flamki:masterfrom
Rufai-Ahmed:feat/ci-smoke-checks
Open

ci: add API smoke check, fix lint workflow parse error#87
Rufai-Ahmed wants to merge 1 commit into
Flamki:masterfrom
Rufai-Ahmed:feat/ci-smoke-checks

Conversation

@Rufai-Ahmed

Copy link
Copy Markdown

What

Adds CI quality gates on pull requests: Lint, Test, and an API smoke job (three probes against the running server), plus a fix for a parse error in the existing lint workflow file.

The smoke probes use bounded requests: a route that accepts the connection but never responds fails the check in seconds and prints the captured server output, instead of hanging until the job timeout.

Known issue, needs maintainer sign-off

The Lint gate is red on day one: master carries 595 pre-existing prettier/eslint errors. The mechanical fix is a ~1500-line diff across 19 files, which I did not want to bundle into this PR. Happy to follow up with that as its own PR if wanted.

Testing

npm run smoke passes locally (all 3 probes). Hang-path verified against a stub server that never responds: fails in about 5s with the server output captured. Workflow YAML validated.

Closes #29

- add npm run smoke (tests/smoke.test.js) which boots the server and
  probes /healthz, /api/status and /api/agents; each request has a 5s
  timeout so a route that accepts but never responds fails the check
  and still prints the captured server output instead of stalling
  until the job timeout
- run smoke as its own PR-blocking job in the Tests workflow
- lint.yml declared node-version as a scalar matrix, which made the
  workflow fail parsing on every run; pin node 20 directly
- server.js used the request validation middleware without importing
  it, so the server crashed at boot (caught by the smoke check)

Known issue, needs maintainer sign-off: the Lint workflow never ran
before this change (it failed at parse time), so fixing it surfaces
pre-existing debt: 595 eslint errors (all prettier/prettier) and 19
files failing format:check. The Lint check stays red until a repo-wide
"npm run format" lands; that single command clears both steps
(verified locally: lint exits 0 with 21 warnings, format:check
passes). lint:fix alone is not enough since format:check also covers
markdown files. The mechanical ~1500 line format diff is deliberately
not bundled here to keep this PR reviewable.
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

@Rufai-Ahmed is attempting to deploy a commit to the flamki's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Rufai-Ahmed, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 01f77c06-4b8c-4869-bb1c-3cebf7e60e6f

📥 Commits

Reviewing files that changed from the base of the PR and between 8ff0c4d and 5d40ed9.

📒 Files selected for processing (5)
  • .github/workflows/lint.yml
  • .github/workflows/test.yml
  • package.json
  • src/server.js
  • tests/smoke.test.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Add CI workflow for lint, tests, and basic smoke checks

1 participant