Skip to content

Commit 89981cd

Browse files
authored
Merge branch 'main' into fix/tool-output-defensiveness-and-duckdb-lock
2 parents 6157ecd + 22c9c38 commit 89981cd

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

packages/opencode/test/branding/upstream-merge-guard.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ describe("Build and package branding", () => {
344344
expect(buildTs).toContain("Python engine has been eliminated")
345345
})
346346

347-
test("build.ts creates altimate-code backward-compat symlink", () => {
348-
// Unix: symlink
349-
expect(buildTs).toContain("ln -sf altimate")
347+
test("build.ts creates altimate-code backward-compat alias", () => {
348+
// Unix: hard copy (not symlink — npm publish strips symlinks)
349+
expect(buildTs).toContain("cp dist/${name}/bin/altimate dist/${name}/bin/altimate-code")
350350
// Windows: copy
351351
expect(buildTs).toContain("altimate-code.exe")
352352
})

test/sanity/docker-compose.verdaccio.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
- ALTIMATE_CODE_CONN_SNOWFLAKE_TEST
2323
- TEST_PG_HOST=postgres
2424
- TEST_PG_PORT=5432
25+
- TEST_PG_USER=postgres
2526
- TEST_PG_PASSWORD=testpass123
2627
- TEST_MONGODB_HOST=mongodb
2728
- TEST_MONGODB_PORT=27017

test/sanity/phases/smoke-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ test_postgres() {
9191
fi
9292
fi
9393
cd "$WORKDIR" || return 1
94+
# Export explicit connection config so the CLI doesn't guess the user
95+
local pg_user="${TEST_PG_USER:-postgres}"
96+
local pg_pass="${TEST_PG_PASSWORD:-testpass123}"
97+
export ALTIMATE_CODE_CONN_PG_TEST="{\"type\":\"postgres\",\"host\":\"${pg_host}\",\"port\":${pg_port},\"user\":\"${pg_user}\",\"password\":\"${pg_pass}\",\"database\":\"postgres\"}"
9498
altimate_run "postgres" "run SELECT 1 against postgres at ${pg_host}:${pg_port}"
9599
local output=$(get_output "postgres")
96100
if echo "$output" | grep -qi "TIMEOUT\|unhandled"; then

0 commit comments

Comments
 (0)