Repository navigation
Conversation
Normalize personal keywords at the existing comparison boundary. Add offline keyword and FastAPI extraction-route regressions and register the plugin runner in the shared check manifest. Validation: 3 plugin tests pass after failing on the original keyword/route cases; local preflight passed (shallow-history ratchet deferred to CI); git diff --check passed.
|
The branch is pushed and the bounded local pre-push gate passed without skip hatches. Upstream Actions currently show |
There was a problem hiding this comment.
1 issue found across 5 files
Confidence score: 3/5
plugins/composio/test.shruns in bothlocalandcilanes from.github/checks-manifest.yaml, whileuv run --isolatedrecreates the environment and downloads dependencies from PyPI on every run; this can make checks slower or unreliable when package availability or network access is limited.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="plugins/composio/test.sh">
<violation number="1" location="plugins/composio/test.sh:6">
P2: This check runs in both the `local` and `ci` lanes via `.github/checks-manifest.yaml`, but `uv run --isolated` builds a fresh, ephemeral environment and downloads fastapi/uvicorn/pydantic/httpx/etc. from PyPI on every invocation. That contradicts the repo-checks job contract, which states manifest checks "consume only Python stdlib + Git; do not install code-test tools," and the AGENTS.md rule that CI tests be hermetic (no network). Any PR or `make preflight` touching `plugins/composio/**` now requires live PyPI (and a managed 3.11 if uv lacks one) or the check fails red, even though the underlying unittest suite is fully offline and only needs stdlib + the plugin source. Make the dependency provisioning hermetic: e.g. install pinned deps at CI startup into the cached uv path (add `plugins/composio/requirements.txt` to the job's `cache-dependency-glob`) and have test.sh reuse that environment instead of `--isolated`, consistently with how the backend jobs pre-sync deps.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| set -euo pipefail | ||
|
|
||
| cd "$(dirname "${BASH_SOURCE[0]}")" | ||
| exec uv run --isolated --no-project --python 3.11 \ |
There was a problem hiding this comment.
P2: This check runs in both the local and ci lanes via .github/checks-manifest.yaml, but uv run --isolated builds a fresh, ephemeral environment and downloads fastapi/uvicorn/pydantic/httpx/etc. from PyPI on every invocation. That contradicts the repo-checks job contract, which states manifest checks "consume only Python stdlib + Git; do not install code-test tools," and the AGENTS.md rule that CI tests be hermetic (no network). Any PR or make preflight touching plugins/composio/** now requires live PyPI (and a managed 3.11 if uv lacks one) or the check fails red, even though the underlying unittest suite is fully offline and only needs stdlib + the plugin source. Make the dependency provisioning hermetic: e.g. install pinned deps at CI startup into the cached uv path (add plugins/composio/requirements.txt to the job's cache-dependency-glob) and have test.sh reuse that environment instead of --isolated, consistently with how the backend jobs pre-sync deps.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At plugins/composio/test.sh, line 6:
<comment>This check runs in both the `local` and `ci` lanes via `.github/checks-manifest.yaml`, but `uv run --isolated` builds a fresh, ephemeral environment and downloads fastapi/uvicorn/pydantic/httpx/etc. from PyPI on every invocation. That contradicts the repo-checks job contract, which states manifest checks "consume only Python stdlib + Git; do not install code-test tools," and the AGENTS.md rule that CI tests be hermetic (no network). Any PR or `make preflight` touching `plugins/composio/**` now requires live PyPI (and a managed 3.11 if uv lacks one) or the check fails red, even though the underlying unittest suite is fully offline and only needs stdlib + the plugin source. Make the dependency provisioning hermetic: e.g. install pinned deps at CI startup into the cached uv path (add `plugins/composio/requirements.txt` to the job's `cache-dependency-glob`) and have test.sh reuse that environment instead of `--isolated`, consistently with how the backend jobs pre-sync deps.</comment>
<file context>
@@ -0,0 +1,8 @@
+set -euo pipefail
+
+cd "$(dirname "${BASH_SOURCE[0]}")"
+exec uv run --isolated --no-project --python 3.11 \
+ --with-requirements requirements.txt \
+ python -m unittest discover -s tests -v
</file context>
There was a problem hiding this comment.
Addressed in 6a1869c. Dependency provisioning is now a separate setup-tests.sh step creating an ignored plugin .test-venv. test.sh only runs that interpreter; it invokes neither uv nor pip and reports an explicit setup error if the environment is absent. CI Hygiene prepares the environment before checks when the shared manifest selects this test, and the uv cache key includes the plugin requirements. The metadata-only job is unchanged. Verified both the missing-environment failure and passing tests after setup with UV_OFFLINE=1.
…riants Address the case-variant review by matching and replacing with the same casing policy, preserving rule priority and proper names. Assert full extracted strings and exercise mixed-case text through the real route. Regression tests failed before this fix and pass afterward.
Move uv dependency provisioning to a separate setup script and CI preparation selected by the manifest. Keep test.sh offline, fail explicitly without setup, and cache requirements in CI. Validation: offline plugin suite, actionlint, diff hygiene and all 21 local preflight checks passed.
|
Thanks @nbhby — this is a well-verified fix, and both earlier review findings are clearly resolved at the current head. What I checked:
Two non-blocking notes:
Since this adds a lane to shared CI and the fork workflows haven't been approved to run yet (so there's no upstream verdict), maintainer sign-off on the CI integration is the remaining gate, along with the bounty question in #13302. The code change itself looks mergeable to me. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Follow-up on the automated review note: the current head ( |
Address the non-blocking review in BasedHardware#13304. Preserve friends singular/plural and rule priority; unsupported forms retain User note. Added 8 formatting cases, reproduced substring failures before the fix, and passed 4 offline tests plus all 21 local preflight checks. The shallow-history ratchet remains deferred to full-history CI. Failure-Class: none
|
Addressed the word-boundary suggestion in a separate follow-up commit: replacements now match complete phrases, preventing The regression test reproduced the substring failures before the change. The offline plugin suite now passes all 4 tests, including 8 new formatting cases and the existing FastAPI extraction-route test with synthetic Notion responses. All 21 selected local preflight checks pass, with the shallow-history ratchet deferred to full-history CI. The additional backend tests reproduced the already documented Windows symlink privilege error (1314); the other 27 cases pass. The push uses the documented backend-test hatch for that limitation, not a claim of an entirely green backend suite. No live Notion or Omi account was used. This update was developed and tested with Codex assistance. For the provisioning suggestion, I opened #13396 to track the duplicated check-to-setup association and the coverage needed for a manifest-level provisioning phase. The current single-plugin setup/runner split remains functional. Keeping that shared runner change separate makes its cross-check behavior independently reviewable. |
|
Follow-up verification at the new head
Remaining before merge: maintainer sign-off on the new shared-CI provisioning step ( by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Preserve both independent plugin check additions. Composio offline tests: 4 passed. PR diff whitespace check passes. Merge-only pre-commit formatter bypassed because it selects upstream Dart/backend/ARB files and requires unavailable toolchains; upstream content is preserved.
|
Keeping this open on DIRTY composio Notion first-person + extra workflow files; 0-checks not MERGE. This touches I am not approving or merging this SHA. |
|
Keeping this open. Not approving — Astar, on behalf of @aryanorastar |
|
Hey @nbhby 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Fixes #13302.
The Composio Notion extractor lowercases each sentence but compares it with mixed-case keywords such as
I like, silently returning no memories for supported first-person input. Normalize the keywords at the comparison boundary and apply the same casing policy when formatting recognized phrases. For example,i LIKE reading science fiction books on weekendsnow producesUser likes reading science fiction books on weekends. Sentence-length filtering, rule priority and the casing of the remaining text are preserved.Add offline coverage asserting complete outputs for case variants, excluded content, and the real FastAPI extraction route. The route receives synthetic Notion blocks and must store the expected memory. Register the plugin test runner in the shared local/CI manifest. A separate setup script provisions the plugin environment before checks, with CI caching keyed by the plugin requirements; the test runner never installs dependencies or invokes uv. Missing setup produces an explicit error.
Validation:
bash plugins/composio/test.shpasses all 4 tests, including 8 word-boundary cases added in response to review. The new test reproduced substring corruption before the fix (I likedbecameUser likesd); singular/plural friends and case normalization remain covered.git diff --checkpasses.scripts/pr-preflight --lane local --pr-body-file ../omi-notion-pr.mdpassed all 21 selected checks, including workflow contract tests and source closure for 15 runtime images. The 90-day failure-class history ratchet reports a shallow-clone skip locally; full-history CI remains authoritative for that check.actionlint -shellcheck '' .github/workflows/repo-checks.ymlpasses. Missing plugin setup fails with an explicit instruction; after setup,UV_OFFLINE=1 bash plugins/composio/test.shpasses without installing dependencies.test_changed_files_reports_delete_rename_and_file_type_changefails atPath.symlink_to()with Windows privilege error 1314, before its assertions. That test andscripts/changed-filesare unchanged from the base. The update uses the repository's explicitPRE_PUSH_SKIP_BACKEND_UNIT_TESTS=1push hatch for this environment limitation; Linux CI must still verify this test. No backend test success is claimed for the subset as a whole.Review follow-up: formatting now matches whole phrases at word boundaries and explicitly supports both
my friendandmy friends. Unsupported forms retain the existingUser note:fallback. The broader suggestion to associate provisioning with manifest entries is tracked in #13396; the current single-plugin setup remains offline at test execution time.Product invariants affected: none.
Failure-Class: none
The existing failure-class registry has no matching case-normalization contract for this plugin. The root cause and durable coverage are described above. This fixes the existing shared keyword predicate; it does not add a separate guard or fallback. The regression reproduces #13302 through production behavior.
Developed and verified with OpenAI Codex assistance. The small bounty proposed in #13302 remains subject to maintainer approval.