mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:50:43 +00:00
ci: allow package plugin metadata migrations
This commit is contained in:
@@ -7,6 +7,7 @@ const DOCKER_E2E_SCENARIOS_PATH = "scripts/lib/docker-e2e-scenarios.mjs";
|
||||
const INSTALL_E2E_RUNNER_PATH = "scripts/docker/install-sh-e2e/run.sh";
|
||||
const OPENAI_WEB_SEARCH_MINIMAL_E2E_PATH = "scripts/e2e/openai-web-search-minimal-docker.sh";
|
||||
const PLUGINS_DOCKER_E2E_PATH = "scripts/e2e/plugins-docker.sh";
|
||||
const PLUGIN_UPDATE_DOCKER_E2E_PATH = "scripts/e2e/plugin-update-unchanged-docker.sh";
|
||||
const CENTRALIZED_BUILD_SCRIPTS = [
|
||||
"scripts/docker/setup.sh",
|
||||
"scripts/e2e/browser-cdp-snapshot-docker.sh",
|
||||
@@ -69,6 +70,15 @@ describe("docker build helper", () => {
|
||||
expect(scenarios).toContain("test:docker:bundled-channel-deps:fast");
|
||||
});
|
||||
|
||||
it("allows plugin update smoke to tolerate config metadata migrations", () => {
|
||||
const runner = readFileSync(PLUGIN_UPDATE_DOCKER_E2E_PATH, "utf8");
|
||||
|
||||
expect(runner).toContain("plugin install record changed unexpectedly");
|
||||
expect(runner).toContain("index.installRecords ?? index.records ?? config.plugins?.installs");
|
||||
expect(runner).not.toContain("Config changed unexpectedly");
|
||||
expect(runner).not.toContain("before_hash");
|
||||
});
|
||||
|
||||
it("passes installer tag env to bash, not curl", () => {
|
||||
const runner = readFileSync(INSTALL_E2E_RUNNER_PATH, "utf8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user