Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/docs_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ jobs:
done
docker system prune -f --volumes 2>/dev/null || true

test-java-v6:
name: Test Java v6
test-java:
name: Test Java
runs-on: ubuntu-latest
timeout-minutes: 30

Expand Down Expand Up @@ -431,7 +431,7 @@ jobs:
- name: Record test start time
run: echo "TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV

- name: Run Java v6 tests
- name: Run Java tests
id: run-tests
continue-on-error: true
env:
Expand All @@ -448,16 +448,16 @@ jobs:
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
echo "🧪 Running Java v6 tests..."
uv run pytest -m "java_v6" -v --tb=short --durations=10 -s --junitxml=pytest-results.xml
echo "🧪 Running Java tests..."
uv run pytest -m "java" -v --tb=short --durations=10 -s --junitxml=pytest-results.xml
echo "✅ Tests completed"

- name: Handle test results
if: always()
uses: ./.github/actions/handle-test-results
with:
test-outcome: ${{ steps.run-tests.outcome }}
test-type: 'Java-v6'
test-type: 'Java'
languages-tested: 'Java'
slack-bot-token: ${{ secrets.TESTING_CI_SLACK_BOT }}

Expand Down
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ tests/start-weaviate.sh
tests/stop-weaviate.sh
```

#### Java v6 Tests
#### Java Tests
```bash
cd _includes/code/java-v6
mvn clean install
Expand Down Expand Up @@ -212,15 +212,15 @@ Code snippets are organized by language under `_includes/code/`:
|----------|--------------|----------------|---------------|-------------|
| Python | `_includes/code/howto/*.py` | pytest (in `/tests`) | `weaviate-client` from PyPI (`pyproject.toml`) | `uv run python _includes/code/howto/<file>.py` |
| TypeScript | `_includes/code/howto/*.ts` | Inline assertions (no test runner) | `weaviate-client` from npm (`package.json`) | `npx tsx _includes/code/howto/<file>.ts` |
| Java v6 | `_includes/code/java-v6/src/test/java/*.java` | JUnit 5 + AssertJ | `io.weaviate:client6` from Maven/local (`pom.xml`) | `cd _includes/code/java-v6 && mvn test -Dtest=<ClassName>` |
| Java | `_includes/code/java-v6/src/test/java/*.java` | JUnit 5 + AssertJ | `io.weaviate:client6` from Maven/local (`pom.xml`) | `cd _includes/code/java-v6 && mvn test -Dtest=<ClassName>` |
| C# | `_includes/code/csharp/*.cs` | xunit | Local project ref to `../../csharp-client/` (`WeaviateProject.Tests.csproj`) | `dotnet test _includes/code/csharp/WeaviateProject.Tests.csproj --filter "FullyQualifiedName~<ClassName>"` |
| Go | `_includes/code/howto/go/docs/*.go` | Go testing | `github.com/weaviate/weaviate-go-client` | `cd _includes/code/howto/go/docs && go test` |

#### Client library dependencies and versioning

- **Python**: Version pinned in `pyproject.toml`. Install via `uv sync`.
- **TypeScript**: Version in root `package.json` (`devDependencies`). Uses `tsx` to run `.ts` files directly.
- **Java v6**: Version in `_includes/code/java-v6/pom.xml`. For unreleased features, switch to SNAPSHOT: build the local client at `/Users/ivandespot/dev/java-client` with `mvn install -DskipTests -Dmaven.javadoc.skip=true`, then update the pom.xml version.
- **Java**: Version in `_includes/code/java-v6/pom.xml`. For unreleased features, switch to SNAPSHOT: build the local client at `/Users/ivandespot/dev/java-client` with `mvn install -DskipTests -Dmaven.javadoc.skip=true`, then update the pom.xml version.
- **C#**: References a local project at `../../../../csharp-client/` (i.e., `/Users/ivandespot/dev/csharp-client`). For unreleased features, checkout the appropriate branch in that repo (e.g., `git checkout v1.0.1`). The .NET 9.0 SDK is required.
- **Go**: Version in `_includes/code/howto/go/docs/go.mod`.

Expand Down Expand Up @@ -250,7 +250,7 @@ import PyCode from '!!raw-loader!/_includes/code/howto/manage-data.ttl.py';
- `(await collection.aggregate.overAll()).totalCount`
- Config: `await collection.config.get()` returns object with camelCase fields

**Java v6** (`client6`):
**Java** (`client6`):
- `WeaviateClient client = WeaviateClient.connectToLocal()`
- `client.collections.create("Name", c -> c.properties(Property.date("fieldName")).objectTtl(ttl -> ttl.deleteByCreationTime().defaultTtlSeconds(3600)))`
- `collection.config.get()` returns `Optional<CollectionConfig>` — must call `.get().get()` to unwrap
Expand Down
181 changes: 0 additions & 181 deletions _includes/code/connections/connect.java

This file was deleted.

2 changes: 1 addition & 1 deletion _includes/code/connections/oidc-connect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import CSharpCode from '!!raw-loader!/_includes/code/csharp/ConnectionTest.cs';
language="go"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START OIDCConnect"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/connections/timeouts-cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import CSharpCode from "!!raw-loader!/_includes/code/csharp/ConnectionTest.cs";
language="ts"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START TimeoutWCD"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/connections/timeouts-custom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import CSharpCode from "!!raw-loader!/_includes/code/csharp/ConnectionTest.cs";
language="ts"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START TimeoutCustom"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/connections/timeouts-local.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import CSharpCode from "!!raw-loader!/_includes/code/csharp/ConnectionTest.cs";
language="ts"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START TimeoutLocal"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/howto/manage-data.create.with.geo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func main() {
```

</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START WithGeoCoordinates"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/howto/manage-data.read.check.existence.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {
```

</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START CheckForAnObject"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/howto/manage-data.shards.inspect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
```

</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START InspectCollectionShards"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/howto/manage-data.shards.update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ console.log(JSON.stringify(shards, null, 2));
language="go"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START UpdateCollectionShards"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/java-v6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</properties>

<dependencies>
<!-- Weaviate Java v6 Client -->
<!-- Weaviate Java Client -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/nodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
```

</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START GetNodes"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/quickstart.byov.schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import ByovAllShCode from "!!raw-loader!/_includes/code/quickstart.byov.all.sh";
language="ts"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START CreateCollection"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/quickstart.import.questions-and-vectors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import CSharpCode from "!!raw-loader!/_includes/code/csharp/StarterGuidesCustomV
language="ts"
/>
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START ImportData"
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/quickstart/clients.install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ go get github.com/weaviate/weaviate-go-client/v5
```

</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">

Add this dependency to your project:<br/><br/>

Expand Down
2 changes: 1 addition & 1 deletion _includes/code/quickstart/clients.install.new.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go get github.com/weaviate/weaviate-go-client/v5
```

</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">

```xml
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion _includes/code/quickstart/connect.partial.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import HostnameWarning from "/_includes/wcs/hostname-warning.mdx";
/>
<HostnameWarning />
</TabItem>
<TabItem value="java6" label="Java v6">
<TabItem value="java" label="Java">
<FilteredTextBlock
text={JavaV6Code}
startMarker="// START APIKeyWCD"
Expand Down
Loading
Loading