Skip to content

chore: bump#5

Merged
gheorghitahurmuz merged 1 commit intomainfrom
feat/add-sdk
Feb 5, 2025
Merged

chore: bump#5
gheorghitahurmuz merged 1 commit intomainfrom
feat/add-sdk

Conversation

@gheorghitahurmuz
Copy link
Copy Markdown
Contributor

No description provided.

@gheorghitahurmuz gheorghitahurmuz merged commit 57fe741 into main Feb 5, 2025
2 checks passed
DragosBobolea added a commit that referenced this pull request Mar 27, 2026
_not_found:
- Change return type -> NoReturn (unconditionally raises; None was a
  false-negative for type checkers and caused 'index possibly unbound'
  warnings at call sites in ingest/delete)
- Update docstring to accurately describe the single responsibility:
  classify not-found vs other, re-raise as ClickException

search:
- Rename --results to --limit (-n) — more conventional (az/gcloud/aws
  all use --limit for a max-count option)
- Update all examples in docstring and help text

ingest:
- Check index.in_progress_ingestion() immediately after retrieve() to
  fail fast without a redundant HTTP round-trip (issue #4)
- Add test_ingest_already_in_progress_fast_fail covering this path and
  asserting ingest_data is never called

delete:
- Wrap delete_index() in try/except to surface 403/404 race conditions
  as clean ClickException rather than raw error (issue #5)

contract tests:
- Replace fragile 'not service.startswith(context)' heuristic with an
  explicit NESTED_SERVICES set — adding future services can't silently
  break the navigation logic (issue #6)

tests:
- Remove dead mock_client.context_grounding.retrieve.return_value from
  test_search_basic and test_search_with_results_option (search doesn't
  call retrieve; issue #11)
- Rename test_search_with_results_option -> test_search_with_limit_option
- Add comment in test_search_empty_results explaining err=True / CliRunner
  stderr mixing (issue #12)
- _make_index now configures in_progress_ingestion.return_value = False
  so the new fast-fail guard doesn't trip in unrelated tests
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