Skip to content

Commit 05912b7

Browse files
committed
Change default server port to 2900 and bump Node to 24
Replace the default KalamDB HTTP API port 8080 with 2900 across docs, examples, tests, CI workflows, agent metadata, and configs. Update related server checks, CLI envs, and sample code to use the new API port; adjust cluster RPC/API settings in release workflow (rpc port updated to 2910, api addr to 2900). Also bump GitHub Actions Node.js setup from Node 22 to Node 24 in multiple workflows and add the 'react' package to the typescript-sdk test matrix. Miscellaneous housekeeping updates to keep documentation and test harnesses consistent with these defaults.
1 parent 535c1c0 commit 05912b7

286 files changed

Lines changed: 1057 additions & 1051 deletions

File tree

Some content is hidden

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

.agents/skills/rust-skills/rules/api-default-impl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl Default for Connection {
8181
fn default() -> Self {
8282
Connection {
8383
host: "localhost".to_string(),
84-
port: 8080,
84+
port: 2900,
8585
timeout: Duration::from_secs(30),
8686
}
8787
}

.agents/skills/rust-skills/rules/api-typestate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ impl Connection<Authenticated> {
8787

8888
// Bug: forgot to authenticate
8989
let conn = Connection::new();
90-
let conn = conn.connect("server:8080")?;
90+
let conn = conn.connect("server:2900")?;
9191
conn.send(b"data"); // Compile error! send() not available on Connection<Connected>
9292

9393
// Correct usage
9494
let conn = Connection::new();
95-
let conn = conn.connect("server:8080")?;
95+
let conn = conn.connect("server:2900")?;
9696
let mut conn = conn.authenticate("secret")?;
9797
conn.send(b"data")?; // Works - type is Connection<Authenticated>
9898
```

.agents/skills/rust-skills/rules/async-cancellation-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ let child = token.child_token();
9494

9595
```rust
9696
async fn run_server(shutdown: CancellationToken) {
97-
let listener = TcpListener::bind("0.0.0.0:8080").await?;
97+
let listener = TcpListener::bind("0.0.0.0:2900").await?;
9898

9999
loop {
100100
tokio::select! {

.agents/skills/rust-skills/rules/doc-hidden-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ For examples that shouldn't run in tests:
131131
/// ```no_run
132132
/// # use my_crate::Server;
133133
/// // This would actually start a server - don't run in tests
134-
/// let server = Server::bind("0.0.0.0:8080").await?;
134+
/// let server = Server::bind("0.0.0.0:2900").await?;
135135
/// server.run().await?;
136136
/// # Ok::<(), my_crate::Error>(())
137137
/// ```

.agents/skills/rust-skills/rules/err-expect-bugs-only.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ let port: u16 = input.parse().expect("Invalid port");
114114
let port: u16 = input.parse().map_err(|_| ConfigError::InvalidPort)?;
115115

116116
// Do: Provide default
117-
let port: u16 = input.parse().unwrap_or(8080);
117+
let port: u16 = input.parse().unwrap_or(2900);
118118

119119
// Do: Handle explicitly
120120
let port: u16 = match input.parse() {
121121
Ok(p) => p,
122122
Err(_) => {
123123
log::warn!("Invalid port '{}', using default", input);
124-
8080
124+
2900
125125
}
126126
};
127127
```

.agents/tasks/performance-profiling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Iteratively identify and fix INSERT hot-path bottlenecks using Jaeger distribute
2525

2626
### Step 1: Run Benchmark
2727
```bash
28-
cd cli && KALAMDB_SERVER_URL="http://127.0.0.1:8080" KALAMDB_ROOT_PASSWORD="kalamdb123" \
28+
cd cli && KALAMDB_SERVER_URL="http://127.0.0.1:2900" KALAMDB_ROOT_PASSWORD="kalamdb123" \
2929
cargo test --features e2e-tests --test smoke smoke_test_insert_throughput_summary -- --nocapture
3030
```
3131

@@ -91,7 +91,7 @@ Common fixes:
9191
### Step 6: Rebuild & Re-run
9292
```bash
9393
# Kill server
94-
lsof -i :8080 -t | xargs kill
94+
lsof -i :2900 -t | xargs kill
9595

9696
# Rebuild (incremental)
9797
cd backend && cargo build --bin kalamdb-server
@@ -100,7 +100,7 @@ cd backend && cargo build --bin kalamdb-server
100100
cargo run --bin kalamdb-server &
101101

102102
# Wait for startup
103-
sleep 10 && curl -s http://127.0.0.1:8080/health
103+
sleep 10 && curl -s http://127.0.0.1:2900/health
104104

105105
# Re-run benchmark (Step 1)
106106
```

.github/agents/kalamdb-release-server-check.agent.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: "KalamDB Release Server Checker"
3-
description: "Use when checking the KalamDB server end-to-end, reusing an existing healthy server on 127.0.0.1:8080 when present, otherwise starting a release server, wiring cli/.env, running cli/run-tests.sh, recording failures, fixing them one-by-one, and confirming the requested server check passes."
3+
description: "Use when checking the KalamDB server end-to-end, reusing an existing healthy server on 127.0.0.1:2900 when present, otherwise starting a release server, wiring cli/.env, running cli/run-tests.sh, recording failures, fixing them one-by-one, and confirming the requested server check passes."
44
tools: [execute, read, edit, search, todo]
5-
argument-hint: "Describe what to verify, whether to reuse an existing 8080 server, any custom port/password, and whether the server should stay running after the check."
5+
argument-hint: "Describe what to verify, whether to reuse an existing 2900 server, any custom port/password, and whether the server should stay running after the check."
66
user-invocable: true
77
---
8-
You are a specialist for KalamDB release-mode server validation. Your job is to validate KalamDB against a live server, preferably by reusing an already-running healthy server on `127.0.0.1:8080`. When no suitable 8080 server exists, start a real `cargo run --release --bin kalamdb-server`, point the CLI test harness at the chosen server through `cli/.env`, run `cli/run-tests.sh`, record failures, fix them one-by-one with narrow reruns, and prove the requested validation scope passes.
8+
You are a specialist for KalamDB release-mode server validation. Your job is to validate KalamDB against a live server, preferably by reusing an already-running healthy server on `127.0.0.1:2900`. When no suitable 2900 server exists, start a real `cargo run --release --bin kalamdb-server`, point the CLI test harness at the chosen server through `cli/.env`, run `cli/run-tests.sh`, record failures, fix them one-by-one with narrow reruns, and prove the requested validation scope passes.
99

1010
## Constraints
11-
- DO NOT start a second backend if a single healthy KalamDB server is already listening on `127.0.0.1:8080`; reuse it.
11+
- DO NOT start a second backend if a single healthy KalamDB server is already listening on `127.0.0.1:2900`; reuse it.
1212
- DO NOT validate server behavior against a debug build.
1313
- DO NOT skip starting or verifying a live server process before running CLI tests.
1414
- If you start a new backend, DO NOT use `KALAMDB_STORAGE_DATA_PATH`; use `KALAMDB_DATA_DIR`.
@@ -25,10 +25,10 @@ You are a specialist for KalamDB release-mode server validation. Your job is to
2525
1. Determine the requested validation scope.
2626
If the user asked for a broad server check, run the full `cli/run-tests.sh` flow. If they asked for a narrower validation, honor that with the smallest matching `run-tests.sh` arguments.
2727
2. Choose the server target before starting anything new.
28-
Check `127.0.0.1:8080` first.
28+
Check `127.0.0.1:2900` first.
2929
- If exactly one healthy KalamDB server is already there, reuse it instead of starting a second backend.
3030
- Prefer proving from the process command, startup logs, or binary path that it is a release server. If it is clearly a debug binary or clearly not KalamDB, treat it as unsuitable.
31-
- Only start a new backend when `8080` is unused or the existing target is unsuitable.
31+
- Only start a new backend when `2900` is unused or the existing target is unsuitable.
3232
3. If you must start a new backend, start it correctly in release mode.
3333
Use `cd backend && cargo run --release --bin kalamdb-server`, adding an explicit port override only when needed to avoid conflicts.
3434
- Use a clean temp `KALAMDB_DATA_DIR`.
@@ -65,7 +65,7 @@ Unless the user asked to keep the server running, stop the server process after
6565

6666
## Output Format
6767
Return:
68-
- whether you reused an existing `127.0.0.1:8080` server or started a new one
68+
- whether you reused an existing `127.0.0.1:2900` server or started a new one
6969
- the exact release server command used
7070
- the `cli/.env` values you set or changed
7171
- the exact discovery, narrow rerun, and final `cli/run-tests.sh` command(s) used
@@ -74,8 +74,8 @@ Return:
7474
- whether the server is still running or was stopped
7575

7676
## Conflict Handling
77-
- If a healthy KalamDB server is already running on `127.0.0.1:8080`, reuse it instead of starting a second backend.
78-
- If an existing `8080` server is clearly unsuitable, say exactly why and only start a new release server when necessary.
77+
- If a healthy KalamDB server is already running on `127.0.0.1:2900`, reuse it instead of starting a second backend.
78+
- If an existing `2900` server is clearly unsuitable, say exactly why and only start a new release server when necessary.
7979
- If the root password or server URL cannot be determined safely, say exactly what is missing instead of guessing.
8080
- If a compile failure blocks test discovery, treat that compile failure as the first remembered failure and fix it before resuming discovery.
8181
- If a failure is outside the requested scope but blocks the requested validation, call that out explicitly and explain why it is a blocker.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,10 @@ jobs:
366366
with:
367367
toolchain: ${{ env.RUST_VERSION }}
368368

369-
- name: Setup Node 22
369+
- name: Setup Node 24
370370
uses: actions/setup-node@v6
371371
with:
372-
node-version: 22
372+
node-version: 24
373373

374374
- name: Install cargo-license
375375
shell: bash

.github/workflows/dart-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
KALAMDB_SERVER_LOG="$PWD/dart-sdk-server.log" \
177177
KALAMDB_SERVER_PID_FILE="$SERVER_WORK_DIR/server.pid" \
178178
KALAMDB_SERVER_WAIT_SECONDS="120" \
179-
KALAMDB_URL="http://localhost:8080" \
179+
KALAMDB_URL="http://localhost:2900" \
180180
bash scripts/start-sdk-test-server.sh
181181
echo "SERVER_PID=$(cat "$SERVER_WORK_DIR/server.pid")" >> "$GITHUB_ENV"
182182
@@ -186,7 +186,7 @@ jobs:
186186
shell: bash
187187
working-directory: link/sdks/dart
188188
env:
189-
KALAMDB_URL: "http://localhost:8080"
189+
KALAMDB_URL: "http://localhost:2900"
190190
KALAMDB_USER: "admin"
191191
KALAMDB_PASSWORD: "kalamdb123"
192192
KALAMDB_ROOT_PASSWORD: "kalamdb123"

.github/workflows/react-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929
CARGO_TERM_COLOR: always
3030
RUST_VERSION: "1.92.0"
3131
WASM_PACK_VERSION: "0.14.0"
32-
KALAMDB_URL: "http://127.0.0.1:8080"
32+
KALAMDB_URL: "http://127.0.0.1:2900"
3333

3434
jobs:
3535
e2e:
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup Node
5858
uses: actions/setup-node@v5
5959
with:
60-
node-version: '20'
60+
node-version: '24'
6161

6262
- name: Setup Rust
6363
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)