Skip to content

Add tests#11

Merged
abrichr merged 2 commits intomainfrom
feat/tests
Mar 30, 2025
Merged

Add tests#11
abrichr merged 2 commits intomainfrom
feat/tests

Conversation

@abrichr
Copy link
Member

@abrichr abrichr commented Mar 24, 2025

No description provided.

abrichr added a commit that referenced this pull request Mar 30, 2025
This merges the infrastructure for automated OmniParser server deployment on EC2, including a fix for reliable inactivity-based auto-shutdown using CloudWatch Alarms.

Key additions:
- EC2 instance provisioning, configuration (Docker install), and deployment logic for OmniParser container (`omnimcp/omniparser/server.py`).
- CloudWatch Alarm / Lambda setup for inactivity-based auto-shutdown (replaces previous flawed `rate()` trigger).
- Client logic (`omnimcp/omniparser/client.py`) updated for auto-deployment triggering and reliable initialization after deployment.
- Foundational unit tests for core logic and simulation (`tests/test_core.py`, `tests/synthetic_ui_helpers.py`), which pass.
- End-to-end test structure and files (`tests/test_omnimcp.py`, `tests/test_omniparser_e2e.py`, `tests/test_omnimcp_core.py`).
- Test configuration (`tests/conftest.py`) for managing e2e tests.
- GitHub Actions CI workflow (`.github/workflows/ci.yml`) using `uv` for linting and running passing tests.
- Associated dependency updates in `pyproject.toml`.
- Updated README with badges, demo GIF, setup instructions.

Status:
- Core deployment and client initialization verified via `test_deploy_and_parse.py`.
- Unit tests pass and are checked by CI.
- E2E tests and core tests involving client interaction are included but currently skipped/commented out due to API mismatches requiring refactoring (tracked separately).

Combines and supersedes work from PRs #11 and #12.
@abrichr abrichr merged commit 13f4461 into main Mar 30, 2025
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