Skip to content

2024-07 rc - #354

Closed
gdj0nes wants to merge 22 commits into
mainfrom
2024-07-rc
Closed

gdj0nes wants to merge 22 commits into
mainfrom
2024-07-rc

Conversation

@gdj0nes

@gdj0nes gdj0nes commented Jun 13, 2024 •

Copy link
Copy Markdown
Contributor

Release Candidate (RC) branch client version 5.0.0 using x-pinecone-api-version 2024-07.

This PR will get merged into main when we release pinecone-client==5.0.0 (July 15), which is promoted to our 2024-07 spec - @aulorbe

Changes

  • Adds support for inference.embed

@gdj0nes
gdj0nes requested review from aulorbe and jhamon June 13, 2024 00:58
@gdj0nes
gdj0nes marked this pull request as draft June 13, 2024 01:37
Comment thread pinecone/grpc/pinecone.py
```
"""
if name == '' and host == '':
if name == "" and host == "":

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building off of @ssmith-pc's wisdom, plz remove linting changes from your PRs :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be running black on all commits to avoid this issue.

Gareth added 12 commits June 20, 2024 11:53
## Problem

PRs often include formatting changes that makes it difficult to identify
changes in functionality

## Solution

- Format all code with `black`
- Introduce linting `black` linting workflow

## Type of Change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [x] None of the above: (explain here)
@gdj0nes gdj0nes changed the title 2024 07 rc 2024-07 rc Jun 20, 2024
@jhamon

jhamon commented Jun 20, 2024

Copy link
Copy Markdown
Collaborator

I'm going to take over this workstream, but I think it will be easiest to start from a fresh branch so I will close this one.

@jhamon jhamon closed this Jun 20, 2024
@gdj0nes
gdj0nes deleted the 2024-07-rc branch July 9, 2024 14:49
NishchayMahor pushed a commit to NishchayMahor/python-sdk-1 that referenced this pull request Sep 22, 2026
…t-loop group is fixture-side and already gone (pinecone-io#354)

Re-ran the integration suite on the merged 2026-07 tip (506 of 535 ran, 94%).
Zero occurrences of "Event loop is closed" — the group named in pinecone-io#313 does not
reproduce. Attribution is fixture-side, not SDK:

- The SDK has no __del__, weakref.finalize, atexit hook or event-loop
  construction anywhere under pinecone/, so it cannot touch a loop after the
  loop is gone. AsyncPinecone.close(), AsyncHTTPClient.close(),
  AsyncAssistants.close() and AsyncIndex.close() are all plain awaits.
- The trigger was pytest-asyncio closing the loop before running async fixture
  teardown, which makes the `await pc.close()` in the `async_client` fixture
  raise. That was fixed by moving integration tests to pytest.mark.anyio
  (bd07408); tests/integration now carries no asyncio marks at all.

Adds two guards so it cannot come back silently, and fixes the three
assertion failures the current run does have — all three stale expectations
about server behaviour, verified against pinecone-db @ cbee5a67fe:

- test_indexes_2026_07 / test_async_indexes_2026_07 bare-string: a bare
  {"type": "string"} fails deserialization with 422 because filterable is a
  required bool on MetadataSchemaField, so it never reaches the validation
  that emits the "fields used for search" 400. Now asserts both rejections,
  which are each other's positive control.
- test_backups_2026_07: BackupModel.schema carries the source index's legacy
  metadata_config, which a schema-based index does not have, so the server
  returns "schema": null. Verified on the wire.
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.

3 participants