Skip to content

Commit d39b040

Browse files
authored
Merge pull request #161 from rostilos/1.5.5-rc
newrelic preparation for inference-orchestrator.
2 parents 4853f35 + 936ee9f commit d39b040

78 files changed

Lines changed: 147 additions & 14 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deployment/build/development-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo "--- 1. Ensuring frontend submodule is synchronized ---"
2929
echo "--- 2. Injecting Environment Configurations ---"
3030

3131
echo "Copying inference-orchestrator .env..."
32-
cp "$CONFIG_PATH/inference-orchestrator/.env" "python-ecosystem/inference-orchestrator/.env"
32+
cp "$CONFIG_PATH/inference-orchestrator/.env" "python-ecosystem/inference-orchestrator/src/.env"
3333

3434
echo "Copying rag-pipeline .env..."
3535
cp "$CONFIG_PATH/rag-pipeline/.env" "python-ecosystem/rag-pipeline/.env"
@@ -43,11 +43,11 @@ echo "--- 3. Building Java Artifacts (mvn clean package) ---"
4343
(cd "$JAVA_DIR" && mvn clean package -DskipTests)
4444

4545
echo "--- 4. MCP Servers jar update ---"
46-
cp "$MCP_SERVERS_JAR_PATH" python-ecosystem/inference-orchestrator/codecrow-vcs-mcp-1.0.jar
46+
cp "$MCP_SERVERS_JAR_PATH" python-ecosystem/inference-orchestrator/src/codecrow-vcs-mcp-1.0.jar
4747

4848
echo "--- 4.1. Platform MCP jar update ---"
4949
if [ -f "$PLATFORM_MCP_JAR_PATH" ]; then
50-
cp "$PLATFORM_MCP_JAR_PATH" python-ecosystem/inference-orchestrator/codecrow-platform-mcp-1.0.jar
50+
cp "$PLATFORM_MCP_JAR_PATH" python-ecosystem/inference-orchestrator/src/codecrow-platform-mcp-1.0.jar
5151
echo "Platform MCP JAR copied successfully."
5252
else
5353
echo "Warning: Platform MCP JAR not found at $PLATFORM_MCP_JAR_PATH"

deployment/build/production-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo "Frontend at: $(cd "$FRONTEND_DIR" && git log --oneline -1)"
2929
echo "--- 2. Injecting Environment Configurations ---"
3030

3131
echo "Copying inference-orchestrator .env..."
32-
cp "$CONFIG_PATH/inference-orchestrator/.env" "python-ecosystem/inference-orchestrator/.env"
32+
cp "$CONFIG_PATH/inference-orchestrator/.env" "python-ecosystem/inference-orchestrator/src/.env"
3333

3434
echo "Copying rag-pipeline .env..."
3535
cp "$CONFIG_PATH/rag-pipeline/.env" "python-ecosystem/rag-pipeline/.env"
@@ -43,11 +43,11 @@ echo "--- 3. Building Java Artifacts (mvn clean package) ---"
4343
(cd "$JAVA_DIR" && mvn clean package)
4444

4545
echo "--- 4. MCP Servers jar update ---"
46-
cp "$MCP_SERVERS_JAR_PATH" python-ecosystem/inference-orchestrator/codecrow-vcs-mcp-1.0.jar
46+
cp "$MCP_SERVERS_JAR_PATH" python-ecosystem/inference-orchestrator/src/codecrow-vcs-mcp-1.0.jar
4747

4848
echo "--- 4.1. Platform MCP jar update ---"
4949
if [ -f "$PLATFORM_MCP_JAR_PATH" ]; then
50-
cp "$PLATFORM_MCP_JAR_PATH" python-ecosystem/inference-orchestrator/codecrow-platform-mcp-1.0.jar
50+
cp "$PLATFORM_MCP_JAR_PATH" python-ecosystem/inference-orchestrator/src/codecrow-platform-mcp-1.0.jar
5151
echo "Platform MCP JAR copied successfully."
5252
else
5353
echo "Warning: Platform MCP JAR not found at $PLATFORM_MCP_JAR_PATH"

deployment/ci/ci-build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ echo "=========================================="
3434
echo "--- 1. Writing .env files from CI secrets ---"
3535

3636
if [ -n "${ENV_INFERENCE_ORCHESTRATOR:-}" ]; then
37-
echo "$ENV_INFERENCE_ORCHESTRATOR" > python-ecosystem/inference-orchestrator/.env
38-
echo " ✓ inference-orchestrator/.env written"
37+
echo "$ENV_INFERENCE_ORCHESTRATOR" > python-ecosystem/inference-orchestrator/src/.env
38+
echo " ✓ inference-orchestrator/src/.env written"
3939
fi
4040

4141
if [ -n "${ENV_RAG_PIPELINE:-}" ]; then
@@ -55,11 +55,11 @@ echo " ✓ Java build & tests complete"
5555

5656
# ── 3. Copy MCP JARs ──────────────────────────────────────────────────────
5757
echo "--- 3. Copying MCP server JARs ---"
58-
cp "$MCP_JAR" python-ecosystem/inference-orchestrator/codecrow-vcs-mcp-1.0.jar
58+
cp "$MCP_JAR" python-ecosystem/inference-orchestrator/src/codecrow-vcs-mcp-1.0.jar
5959
echo " ✓ VCS MCP JAR copied"
6060

6161
if [ -f "$PLATFORM_MCP_JAR" ]; then
62-
cp "$PLATFORM_MCP_JAR" python-ecosystem/inference-orchestrator/codecrow-platform-mcp-1.0.jar
62+
cp "$PLATFORM_MCP_JAR" python-ecosystem/inference-orchestrator/src/codecrow-platform-mcp-1.0.jar
6363
echo " ✓ Platform MCP JAR copied"
6464
else
6565
echo " ⚠ Platform MCP JAR not found (optional)"
@@ -71,7 +71,7 @@ echo "--- 4. Building Docker images ---"
7171
IMAGES=(
7272
"codecrow/web-server|java-ecosystem/services/web-server|Dockerfile.observable"
7373
"codecrow/pipeline-agent|java-ecosystem/services/pipeline-agent|Dockerfile.observable"
74-
"codecrow/inference-orchestrator|python-ecosystem/inference-orchestrator"
74+
"codecrow/inference-orchestrator|python-ecosystem/inference-orchestrator/src|Dockerfile.observable"
7575
"codecrow/rag-pipeline|python-ecosystem/rag-pipeline"
7676
"codecrow/web-frontend|frontend"
7777
)

deployment/ci/server-deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ for cfg in \
4646
"$CONFIG_DIR/java-shared/newrelic-web-server.yml" \
4747
"$CONFIG_DIR/java-shared/newrelic-pipeline-agent.yml" \
4848
"$CONFIG_DIR/inference-orchestrator/.env" \
49+
"$CONFIG_DIR/inference-orchestrator/newrelic.ini" \
4950
"$CONFIG_DIR/rag-pipeline/.env"; do
5051
if [ ! -f "$cfg" ]; then
5152
echo "ERROR: Missing config file: $cfg"

deployment/ci/server-init.sh

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,27 @@ SAMPLE
8383
fi
8484
done
8585

86+
# New Relic config for inference-orchestrator (Python agent)
87+
NR_INI="$DEPLOY_DIR/config/inference-orchestrator/newrelic.ini"
88+
if [ ! -f "$NR_INI" ]; then
89+
cat > "$NR_INI" <<'SAMPLE'
90+
# ============================================================================
91+
# New Relic Python agent config for inference-orchestrator
92+
# See https://docs.newrelic.com/docs/apm/agents/python-agent/configuration/python-agent-configuration/
93+
# Copy your newrelic.ini here with your license_key and app_name
94+
# ============================================================================
95+
[newrelic]
96+
license_key = REPLACE_WITH_YOUR_LICENSE_KEY
97+
app_name = CodeCrow Inference Orchestrator
98+
monitor_mode = true
99+
log_level = info
100+
SAMPLE
101+
echo " ✓ Created placeholder: inference-orchestrator/newrelic.ini"
102+
echo " → EDIT THIS FILE with your New Relic license key!"
103+
else
104+
echo " ○ inference-orchestrator/newrelic.ini already exists (skipped)"
105+
fi
106+
86107
# Docker Compose .env (DB creds, internal secrets — never committed to git)
87108
ENV_FILE="$DEPLOY_DIR/.env"
88109
if [ ! -f "$ENV_FILE" ]; then
@@ -126,7 +147,8 @@ echo " │ ├── newrelic-pipeline-agent.yml ← YOUR New Relic con
126147
echo " │ └── github-private-key/"
127148
echo " │ └── *.pem ← YOUR GitHub App key"
128149
echo " ├── inference-orchestrator/"
129-
echo " │ └── .env ← YOUR secrets"
150+
echo " │ ├── .env ← YOUR secrets"
151+
echo " │ └── newrelic.ini ← YOUR New Relic Python agent config"
130152
echo " └── rag-pipeline/"
131153
echo " └── .env ← YOUR secrets"
132154
echo ""

deployment/docker-compose.prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ services:
185185
- codecrow-network
186186
volumes:
187187
- ./config/inference-orchestrator/.env:/app/.env
188+
- ./config/inference-orchestrator/newrelic.ini:/app/newrelic.ini:ro
188189
restart: unless-stopped
189190
extra_hosts:
190191
- "host.docker.internal:host-gateway"

deployment/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ services:
168168

169169
inference-orchestrator:
170170
build:
171-
context: ../python-ecosystem/inference-orchestrator
171+
context: ../python-ecosystem/inference-orchestrator/src
172172
container_name: codecrow-inference-orchestrator
173173
ports:
174174
- "127.0.0.1:8000:8000"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### IntelliJ IDEA ###
2+
.idea
3+
*.iws
4+
*.iml
5+
*.ipr
6+
7+
target/
8+
!.mvn/wrapper/maven-wrapper.jar
9+
!**/src/main/**/target/
10+
!**/src/test/**/target/
11+
12+
.env
13+
server.log
14+
*.jar
15+
16+
logs/**
17+
**/__pycache__/
18+
newrelic.ini
File renamed without changes.

0 commit comments

Comments
 (0)