mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:10:49 +00:00
fix(ci): expose package deps to Telegram QA harness (#72680)
* fix(ci): expose package deps to telegram QA harness * fix(ci): link QA package runtime deps * fix(agents): guard replay metadata in empty retries * fix(ci): keep plugin update smoke migration-stable
This commit is contained in:
20
test/scripts/plugin-update-unchanged-docker.test.ts
Normal file
20
test/scripts/plugin-update-unchanged-docker.test.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const PLUGIN_UPDATE_DOCKER_SCRIPT = "scripts/e2e/plugin-update-unchanged-docker.sh";
|
||||
|
||||
describe("plugin update unchanged Docker E2E", () => {
|
||||
it("seeds current plugin install ledger state before checking config stability", () => {
|
||||
const script = readFileSync(PLUGIN_UPDATE_DOCKER_SCRIPT, "utf8");
|
||||
const configSeedStart = script.indexOf('cat > \\"\\$HOME/.openclaw/openclaw.json\\"');
|
||||
const configSeedEnd = script.indexOf('cat > \\"\\$HOME/.openclaw/plugins/installs.json\\"');
|
||||
const configSeed = script.slice(configSeedStart, configSeedEnd);
|
||||
|
||||
expect(configSeedStart).toBeGreaterThanOrEqual(0);
|
||||
expect(configSeedEnd).toBeGreaterThan(configSeedStart);
|
||||
expect(configSeed).toContain('\\"plugins\\": {}');
|
||||
expect(configSeed).not.toContain('\\"installs\\"');
|
||||
expect(script).toContain('\\"installRecords\\": {');
|
||||
expect(script).toContain('\\"lossless-claw\\": {');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user