test: fix CLI and Windows cargo test failures on 1.820.0 (#11429)

* test(cli): stop CLI tests resolving a just-published windmill-client

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: quote the Windows cert path in the pg attach assertion

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(cli): note when the windmill-client pin must move

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-09-29 22:36:32 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 039f49ef12
commit cec8eaeadb
3 changed files with 10 additions and 5 deletions
@@ -2969,7 +2969,7 @@ mod tests {
assert!(
attach.starts_with(&format!(
"ATTACH 'sslmode=verify-full sslrootcert=''{}''",
root
root.replace('\\', "\\\\")
)),
"{attach}"
);
+8 -2
View File
@@ -455,6 +455,12 @@ schema:
// SCRIPT WITH MODULES PREVIEW TESTS
// =============================================================================
// Pinned: a release commit runs these tests while the same release publishes a new
// windmill-client, and the worker resolving that version before npm serves it fails the job.
// These are the only CLI tests running task/taskScript/workflow on a real client: bump the pin
// to a published release whenever the WAC client surface changes.
const WINDMILL_CLIENT = "windmill-client@1.819.0";
test("script preview: script with modules (taskScript pattern)", async () => {
await withTestBackend(async (backend, tempDir) => {
await createWmillConfig(tempDir, { defaultTs: "bun" });
@@ -463,7 +469,7 @@ test("script preview: script with modules (taskScript pattern)", async () => {
await createScript(
tempDir,
"f/test/wac_script.ts",
`import { task, taskScript, workflow } from "windmill-client";
`import { task, taskScript, workflow } from "${WINDMILL_CLIENT}";
const helper = taskScript("./helper.ts");
@@ -512,7 +518,7 @@ test("script preview: script with modules (folder layout)", async () => {
// Entry point script
await writeFile(
`${modDir}/script.ts`,
`import { task, taskScript, workflow } from "windmill-client";
`import { task, taskScript, workflow } from "${WINDMILL_CLIENT}";
const helper = taskScript("./helper.ts");
+1 -2
View File
@@ -61,8 +61,7 @@ root.render(<App/>);
const PACKAGE_JSON = `{
"dependencies": {
"react": "19.0.0",
"react-dom": "19.0.0",
"windmill-client": "^1"
"react-dom": "19.0.0"
},
"devDependencies": {
"@types/react-dom": "^19.0.0",