Skip to content

[Chore] Put date into test index and collection names - #399

Merged
jhamon merged 7 commits into
mainfrom
jhamon/test-index-names
Oct 21, 2024
Merged

jhamon merged 7 commits into
mainfrom
jhamon/test-index-names

Conversation

@jhamon

@jhamon jhamon commented Oct 19, 2024

Copy link
Copy Markdown
Collaborator

Problem

Sometimes indexes and collections aren't cleaned up properly after tests run. It's difficult to clean up orphaned resources without potentially impacting resources associated with tests that are currently running.

Solution

Modify generated names to include a timestamp. This will pave the way for automatically deleting orphaned resources after a certain period of time.

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)
  • None of the above: (explain here)

Test Plan

Describe specific steps for validating this change.

@jhamon jhamon changed the title [Chore] Put date into test index name [Chore] Put date into test index and collection names Oct 19, 2024
@jhamon
jhamon marked this pull request as ready for review October 20, 2024 05:20
@jhamon
jhamon merged commit c13a249 into main Oct 21, 2024
@jhamon
jhamon deleted the jhamon/test-index-names branch October 21, 2024 06:15
NishchayMahor pushed a commit to NishchayMahor/python-sdk-1 that referenced this pull request Sep 22, 2026
…strict-config stops killing them (pinecone-io#399) (pinecone-io#410)

Both smoke jobs install test deps by name against a published wheel rather
than syncing the dev group, so nothing tied them to the pytest ini block.
`--strict-config` (pinecone-io#306) then made `timeout = 5` a usage error, and in
pytest 9 that error is raised after collection — so the job emitted the
suite's collect-time skips and exited 4 having run none of the 12 tests it
collected.

Names the two plugins explicitly, at the dev group's versions, and adds a
source-scan guard that holds both install lines to
[tool.pytest.ini_options] and to the markers tests/smoke/ applies.
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