Skip to content

Commit

Permalink
back out gradle wrapper changes, tweak findIndexByDimensionAndType ag…
Browse files Browse the repository at this point in the history
…ain, max-parallel again
  • Loading branch information
austin-denoble committed Feb 14, 2024
1 parent a90eb2a commit 1bfd814
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
{ java: 8, gradle: 6.8 },
{ java: 17, gradle: 7.3.1 }
]
max-parallel: 1
steps:
- uses: actions/checkout@v4

Expand All @@ -83,5 +84,5 @@ jobs:
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}


1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ tasks.named('build') {
test {
useJUnitPlatform()


testLogging {
events = [TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT]
exceptionFormat = TestExceptionFormat.FULL
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/integration/java/io/pinecone/helpers/IndexManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ private static String findIndexWithDimensionAndType(IndexList indexList, int dim
while (i < indexModels.size()) {
IndexModel indexModel = isIndexReady(indexModels.get(i).getName(), controlPlaneClient);
if (indexModel.getDimension() == dimension
&& (indexType.equalsIgnoreCase(IndexModelSpec.SERIALIZED_NAME_POD)
&& ((indexType.equalsIgnoreCase(IndexModelSpec.SERIALIZED_NAME_POD)
&& indexModel.getSpec().getPod() != null
&& indexModel.getSpec().getPod().getReplicas() == 1
&& indexModel.getSpec().getPod().getPodType().equalsIgnoreCase("p1.x1"))
|| (indexType.equalsIgnoreCase(IndexModelSpec.SERIALIZED_NAME_SERVERLESS))) {
|| (indexType.equalsIgnoreCase(IndexModelSpec.SERIALIZED_NAME_SERVERLESS)))) {
return indexModel.getName();
}
i++;
Expand Down

0 comments on commit 1bfd814

Please sign in to comment.