Skip to content

fix: document Python startup and enforce real HTTP smoke tests - #37

Draft
OneByJorah wants to merge 1 commit into
mainfrom
agent/offivo-startup-smoke-ci
Draft

OneByJorah wants to merge 1 commit into
mainfrom
agent/offivo-startup-smoke-ci

Conversation

@OneByJorah

Copy link
Copy Markdown
Owner

What changed

The README pointed to a missing npm dev command and described conferencing/document features absent from this Python agent dashboard. CI discarded lint/test failures, and npm test only printed ok.

  • Document Python startup, Compose .env setup, source precedence, API/SSE routes, webhook refresh behavior, and browser CDN requirements; correct AGENTS.md and package metadata/scripts.
  • Add nine isolated smoke cases for static pages, config/state, webhook GET/SSE consistency, bad JSON, missing routes, empty/missing files, and the real entry point.
  • Fix reproduced defects: array webhooks failed, object webhooks did not update shared GET state, and empty JSON arrays fell back to demo agents. Correct startup mode/ephemeral-port reporting.
  • Enforce Ruff and pytest failures in CI with pinned development dependencies and repository-local configuration; bind Compose published ports to loopback as required by AGENTS.md.

How to test

python -m pip install -r requirements-dev.txt
python -m ruff check server.py tests
python -m pytest -q

Local Windows/Python 3.15.2 verification: Ruff passed; pytest and npm test each passed all 9 cases; compileall and git diff --check passed; Markdown lint passed for README.md and AGENTS.md. Tests use temporary synthetic state and loopback only. Baseline tests reproduced the webhook and empty-file defects before fixes.

Chrome desktop: landing page and animated office rendered with demo data. Mobile 390x844: rendering works but existing top controls overlap and footer text clips; UI redesign is outside this batch.

Limitations: Docker/Compose, hadolint, Trivy, and gitleaks are unavailable locally, so container build/run and full-history secret scanning were not run. A changed-file secret-pattern scan found no matches in the 9 changed files. CI results are pending. No production services or real agent state used.

Uploaded through the existing GitHub connector after local Git push stalled and was stopped; remote tree 844bc34294b8072d7040c659cef9a8865a679578 exactly matches the tested local tree.

Checklist

  • README/docs updated.
  • No secrets or private data added; changed-file scan completed.
  • Focused on the approved startup/docs/tests/CI batch.
  • CONTRIBUTING.md and Code of Conduct read.

Draft only. Existing dependency PRs #32–#36 are unchanged. No merge, release, package publication, deployment, or repository-setting changes.

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