-
Notifications
You must be signed in to change notification settings - Fork 13
Automated test resource cleanup #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jhamon
merged 5 commits into
main
from
cursor/SDK-58-automated-test-resource-cleanup-d78b
Jan 14, 2026
Merged
Automated test resource cleanup #212
jhamon
merged 5 commits into
main
from
cursor/SDK-58-automated-test-resource-cleanup-d78b
Jan 14, 2026
+513
−13
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Enhanced IndexCleanupUtility.java with: * Age-based filtering support (structure ready for timestamps) * Collection cleanup in addition to indexes * Dry-run mode for safe preview of deletions * Command-line argument parsing (--age-threshold-days, --dry-run) * Improved error handling and logging * Comprehensive cleanup statistics - Created GitHub Actions workflow cleanup-test-resources.yml: * Scheduled daily execution at 2 AM UTC * Manual trigger via workflow_dispatch with configurable inputs * Supports age threshold and dry-run parameters * Uses Java 8 for compatibility Related to Linear issue SDK-58 Co-authored-by: jhamon <jhamon@pinecone.io>
|
Cursor Agent can help with this pull request. Just |
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: jhamon <jhamon@pinecone.io>
Co-authored-by: jhamon <jhamon@pinecone.io>
Co-authored-by: jhamon <jhamon@pinecone.io>
Contributor
Author
|
Merging with failures as the failures are related to resource quota limits that this workflow will help address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow and enhances the
IndexCleanupUtilityto automate the cleanup of old Pinecone indexes and collections.This PR addresses SDK-58 by introducing a scheduled and manually triggerable GitHub Actions workflow to remove aged Pinecone resources. The
IndexCleanupUtilityhas been updated to support collection cleanup, dry-run mode, and command-line arguments for age threshold and dry-run. Currently, age-based filtering processes all resources as creation timestamps are not exposed by the API, but the utility is structured to easily integrate this filtering once available. This helps prevent test failures caused by resource limits.Linear Issue: SDK-58
Note
Introduces automated cleanup for Pinecone test resources and expands the Java utility for broader, safer deletion.
cleanup-test-resources.yml: runs daily at 02:00 UTC and via manual dispatch; acceptsage_threshold_daysanddry_run; builds project and runsIndexCleanupUtilitywithPINECONE_API_KEYIndexCleanupUtility: parses CLI args (--age-threshold-days,--dry-run), supports deleting both indexes and collections, gracefully skips terminating resources, auto-disables deletion protection before index deletion, aggregates results, and improves logging/error handlingnet.bytebuddy.experimental=truefor tests inbuild.gradleWritten by Cursor Bugbot for commit 86c7104. This will update automatically on new commits. Configure here.