Skip to content

Commit cca9267

Browse files
Merge pull request #237 from LorenzoTettamanti/0.1.5
Added mcp tests to github CI, added alpine image for metrics service. Minor updates
2 parents d05cd3f + 9ff7b63 commit cca9267

17 files changed

Lines changed: 1286 additions & 122 deletions

File tree

‎.github/workflows/core-build-checks.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ jobs:
7070
working-directory: cli
7171
run: cargo test --locked
7272

73+
test-mcp:
74+
name: Test MCP
75+
runs-on: ubuntu-latest
76+
77+
steps:
78+
- name: Checkout code
79+
uses: actions/checkout@v4
80+
81+
- name: Test MCP
82+
working-directory: mcp
83+
run: cargo test --locked
84+
7385
build-core-components:
7486
runs-on: ubuntu-latest
7587

@@ -142,3 +154,25 @@ jobs:
142154
- name: Cleanup build artifacts
143155
run: |
144156
docker system prune -f
157+
158+
build-metrics-alpine:
159+
runs-on : alpine-latest
160+
161+
steps:
162+
- name: Checkout code
163+
uses: actions/checkout@v4
164+
165+
- name: Set up Docker Buildx
166+
uses: docker/setup-buildx-action@v3
167+
168+
- name: Build metrics image(alpine)
169+
run: |
170+
cd core
171+
chmod +x metrics-build-alpine.sh
172+
echo "🚀 Starting CortexFlow Metrics build..."
173+
./metrics-build-alpine.sh || { echo "❌ Metrics build failed"; exit 1; }4
174+
echo "✅ Metrics build completed"
175+
176+
- name: Cleanup artifacts
177+
run: docker system prune -f
178+

‎Examples/run-with-docker/docker-compose.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
# - cortexflow
5050

5151
otel-collector:
52-
image: otel/opentelemetry-collector-contrib:0.95.0
52+
image: otel/opentelemetry-collector-contrib:0.162.0
5353
container_name: otel-collector
5454
command:
5555
- "--config=/conf/otel-collector-config.yaml"
@@ -69,7 +69,7 @@ services:
6969
- cortexflow-metrics
7070

7171
prometheus:
72-
image: prom/prometheus:v2.51.2
72+
image: prom/prometheus:v3.13.3
7373
container_name: prometheus
7474
user: "65534:65534"
7575
command:

‎Examples/run-with-docker/otel-collector-config.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ processors:
2020
where attributes["container.name"] == nil and attributes["k8s.pod.name"] != nil
2121

2222
exporters:
23-
logging: {}
23+
debug: {}
2424
prometheus:
2525
endpoint: 0.0.0.0:8889
2626
namespace: cortexbrain
@@ -30,12 +30,12 @@ service:
3030
traces:
3131
receivers: [otlp]
3232
processors: [memory_limiter]
33-
exporters: [logging]
33+
exporters: [debug]
3434
logs:
3535
receivers: [otlp]
3636
processors: [memory_limiter]
37-
exporters: [logging]
37+
exporters: [debug]
3838
metrics:
3939
receivers: [otlp]
4040
processors: [memory_limiter, transform/identity]
41-
exporters: [logging, prometheus]
41+
exporters: [debug,prometheus]

0 commit comments

Comments
 (0)