Skip to content

Commit 9f5b521

Browse files
authored
chore: remove unecessary integration tests/projects (#125)
1 parent 19ae0b3 commit 9f5b521

30 files changed

Lines changed: 9 additions & 2981 deletions

File tree

Dockerfile

Lines changed: 0 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -201,126 +201,8 @@ FROM wasm-deps AS confidence-cloudflare-resolver.lint
201201
WORKDIR /workspace/confidence-cloudflare-resolver
202202
RUN make lint
203203

204-
# ==============================================================================
205-
# Node.js Host - Run Node.js host example
206-
# ==============================================================================
207-
FROM node:20-alpine AS node-host-base
208-
209-
# Install protoc for proto generation
210-
RUN apk add --no-cache protobuf-dev protoc make
211-
212-
WORKDIR /app
213-
214-
# Enable Corepack for Yarn
215-
RUN corepack enable
216-
217-
# Copy package files for dependency caching
218-
COPY wasm/node-host/package.json wasm/node-host/yarn.lock wasm/node-host/.yarnrc.yml ./
219-
COPY wasm/node-host/Makefile ./
220-
221-
# Copy proto files for generation
222-
COPY wasm/proto ../proto/
223-
224-
# Build using Makefile (installs deps + generates protos)
225-
ENV IN_DOCKER_BUILD=1
226-
RUN make build
227-
228-
# Copy source code
229-
COPY wasm/node-host/src ./src/
230-
COPY wasm/node-host/tsconfig.json ./
231-
232-
# Copy WASM module from wasm-rust-guest.artifact
233-
COPY --from=wasm-rust-guest.artifact /confidence_resolver.wasm ../confidence_resolver.wasm
234204

235-
# Copy resolver state
236-
COPY wasm/resolver_state.pb ../resolver_state.pb
237-
238-
# ==============================================================================
239-
# Test Node.js Host (integration test)
240-
# ==============================================================================
241-
FROM node-host-base AS node-host.test
242-
RUN make run
243205

244-
# ==============================================================================
245-
# Java Host - Run Java host example
246-
# ==============================================================================
247-
FROM eclipse-temurin:21-alpine AS java-host-base
248-
249-
# Install Maven and protobuf
250-
RUN apk add --no-cache maven protobuf-dev protoc make
251-
252-
WORKDIR /app
253-
254-
# Copy pom.xml for dependency caching
255-
COPY wasm/java-host/pom.xml ./
256-
COPY wasm/java-host/Makefile ./
257-
258-
# Download dependencies (this layer will be cached)
259-
RUN mvn dependency:go-offline -q || true
260-
261-
# Copy proto files
262-
COPY wasm/proto ../proto/
263-
264-
# Copy source code
265-
COPY wasm/java-host/src ./src/
266-
267-
# Build using Makefile (compiles proto + builds JAR)
268-
ENV IN_DOCKER_BUILD=1
269-
RUN make build
270-
271-
# Copy WASM module from wasm-rust-guest.artifact
272-
COPY --from=wasm-rust-guest.artifact /confidence_resolver.wasm ../confidence_resolver.wasm
273-
274-
# Copy resolver state
275-
COPY wasm/resolver_state.pb ../resolver_state.pb
276-
277-
# ==============================================================================
278-
# Test Java Host (integration test)
279-
# ==============================================================================
280-
FROM java-host-base AS java-host.test
281-
RUN make run
282-
283-
# ==============================================================================
284-
# Go Host - Run Go host example
285-
# ==============================================================================
286-
FROM golang:1.23-alpine AS go-host-base
287-
288-
# Install protobuf and protoc-gen-go
289-
RUN apk add --no-cache protobuf-dev protoc bash make git
290-
291-
WORKDIR /app
292-
293-
# Copy go.mod for dependency caching
294-
COPY wasm/go-host/go.mod wasm/go-host/go.sum ./
295-
COPY wasm/go-host/Makefile ./
296-
297-
# Download Go dependencies (this layer will be cached)
298-
RUN go mod download
299-
300-
# Install protoc-gen-go (pin version for stability)
301-
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34
302-
303-
# Copy proto files
304-
COPY wasm/proto ../proto/
305-
306-
# Copy source code
307-
COPY wasm/go-host/*.go wasm/go-host/*.sh ./
308-
309-
# Build using Makefile (generates proto + builds)
310-
ENV IN_DOCKER_BUILD=1
311-
RUN make build
312-
313-
# Copy WASM module
314-
COPY --from=wasm-rust-guest.artifact /confidence_resolver.wasm ../confidence_resolver.wasm
315-
316-
# Copy resolver state
317-
COPY wasm/resolver_state.pb ../resolver_state.pb
318-
319-
# ==============================================================================
320-
# Test Go Host (integration test)
321-
# ==============================================================================
322-
FROM go-host-base AS go-host.test
323-
RUN make run
324206

325207
# ==============================================================================
326208
# Python Host - Run Python host example
@@ -684,9 +566,6 @@ COPY --from=openfeature-provider-ruby.test /app/Gemfile /markers/test-openfeatur
684566
COPY --from=openfeature-provider-go.validate-wasm /built/confidence_resolver.wasm /markers/validate-wasm-go
685567

686568
# Force integration test stages to run (host examples)
687-
COPY --from=node-host.test /app/package.json /markers/integration-node
688-
COPY --from=java-host.test /app/pom.xml /markers/integration-java
689-
COPY --from=go-host.test /app/go.mod /markers/integration-go
690569
COPY --from=python-host.test /app/Makefile /markers/integration-python
691570

692571
# Force lint stages to run by copying marker files

Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ test:
3737
$(MAKE) -C openfeature-provider/ruby test
3838

3939
integration-test:
40-
$(MAKE) -C wasm/node-host run
41-
$(MAKE) -C wasm/java-host run
42-
$(MAKE) -C wasm/go-host run
4340
$(MAKE) -C wasm/python-host run
44-
$(MAKE) -C wasm/java-host run
4541

4642

4743
lint:
@@ -64,9 +60,6 @@ all: lint test build
6460

6561
clean:
6662
cargo clean
67-
$(MAKE) -C wasm/node-host clean
68-
$(MAKE) -C wasm/java-host clean
69-
$(MAKE) -C wasm/go-host clean
7063
$(MAKE) -C wasm/python-host clean
7164
$(MAKE) -C openfeature-provider/js clean
7265
$(MAKE) -C openfeature-provider/java clean

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Confidence Flag Resolver implemented in Rust, plus example hosts and a Cloud
99
- `confidence-resolver`: Core resolver crate
1010
- `confidence-cloudflare-resolver`: Cloudflare Worker-compatible WASM target
1111
- `wasm-msg`: Minimal WASM messaging layer shared by hosts
12-
- `wasm/*-host`: Small host apps (Go, Node.js, Python, Java) calling the resolver. These are only intended to be examples, as well as being used for integration tests.
12+
- `wasm/python-host`: Python host example calling the resolver. Only intended to be an example and used for integration tests.
1313
- `data/`: Sample local development data (e.g., resolver state)
1414

1515
## Prerequisites
@@ -19,7 +19,7 @@ The Confidence Flag Resolver implemented in Rust, plus example hosts and a Cloud
1919

2020
**Option 2: Local development**
2121
- Rust toolchain (automatically installed via `rust-toolchain.toml`)
22-
- For host examples: Go, Node.js + Yarn, Python 3, Java + Maven
22+
- For Python host example: Python 3
2323

2424
## Quick Start
2525

@@ -39,23 +39,17 @@ make test # Run tests
3939
make lint # Run linting
4040
make build # Build WASM
4141

42-
# Run host examples
43-
make run-node
44-
make run-java
45-
make run-go
42+
# Run Python host example
4643
make run-python
4744
```
4845

49-
## Running the example hosts
46+
## Running the Python host example
5047

51-
There are host implementations for different languages in the `wasm` folder.
52-
They are used for integration tests, but if you want you manually run them:
48+
There is a Python host implementation in the `wasm/python-host` folder.
49+
It is used for integration tests, but you can manually run it:
5350

5451
```bash
55-
make run-go-host
56-
make run-js-host
5752
make run-python-host
58-
make run-java-host
5953
```
6054

6155
## Cloudflare Worker build

openfeature-provider/go/confidence/proto/messages.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm/go-host/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

wasm/go-host/Makefile

Lines changed: 0 additions & 36 deletions
This file was deleted.

wasm/go-host/README.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

wasm/go-host/generate_proto.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

wasm/go-host/go.mod

Lines changed: 0 additions & 8 deletions
This file was deleted.

wasm/go-host/go.sum

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)