doctor के जरिए stale
legacy state को repair कर सकता है, और supported sources से
plugins को अब भी install, load, update, और uninstall कर सकता है।
व्यापक test runner map के लिए, Testing देखें। live provider
keys और network-touching suites के लिए, Testing live देखें।
हम क्या सुरक्षित रखते हैं
Update और plugin tests ये contracts सुरक्षित रखते हैं:- package tarball complete है, उसमें valid
dist/postinstall-inventory.jsonहै, और वह unpacked repo files पर depend नहीं करता। - user config, agents, sessions, workspaces, plugin allowlists, या channel config खोए बिना पुराने published package से candidate package पर जा सकता है।
openclaw doctor --fix --non-interactivelegacy cleanup और repair paths का owner है। Startup को stale plugin state के लिए hidden compatibility migrations नहीं बढ़ानी चाहिए।- Plugin installs local directories, git repos, npm packages, और ClawHub registry path से काम करते हैं।
- Plugin npm dependencies हर plugin के लिए एक managed npm project में install होती हैं, trust से पहले scanned होती हैं, और uninstall के दौरान npm के जरिए हटाई जाती हैं ताकि hoisted dependencies बची न रहें।
- जब कुछ बदला न हो तब Plugin update stable रहता है: install records, resolved source, installed dependency layout, और enabled state intact रहते हैं।
development के दौरान local proof
संकीर्ण दायरे से शुरू करें:release:check config/docs/API drift checks चलाता है, package dist
inventory लिखता है, npm pack --dry-run चलाता है, forbidden packed files reject करता है,
tarball को temp prefix में install करता है, postinstall चलाता है, और bundled channel
entrypoints smoke करता है।
Docker lanes
Docker lanes product-level proof हैं। वे Linux containers के अंदर real package install या update करते हैं और CLI commands, Gateway startup, HTTP probes, RPC status, और filesystem state के जरिए behavior assert करते हैं। Iterate करते समय focused lanes का उपयोग करें:test:docker:pluginsplugin install smoke, local folder installs, local folder update skip behavior, preinstalled dependencies वाले local folders,file:package installs, CLI execution के साथ git installs, git moving-ref updates, hoisted transitive dependencies के साथ npm registry installs, npm update no-ops, malformed npm package metadata rejection, local ClawHub fixture installs और update no-ops, marketplace update behavior, और Claude-bundle enable/inspect validate करता है। ClawHub block को hermetic/offline रखने के लिएOPENCLAW_PLUGINS_E2E_CLAWHUB=0set करें।test:docker:plugin-lifecycle-matrixcandidate package को bare container में install करता है, npm plugin को install, inspect, disable, enable, explicit upgrade, explicit downgrade, और plugin code delete करने के बाद uninstall से गुजारता है। यह हर phase के लिए RSS और CPU metrics log करता है।test:docker:plugin-updatevalidate करता है कि unchanged installed pluginopenclaw plugins updateके दौरान reinstall नहीं होता या install metadata नहीं खोता।test:docker:upgrade-survivorcandidate tarball को dirty old-user fixture के ऊपर install करता है, package update plus non-interactive doctor चलाता है, फिर loopback Gateway शुरू करता है और state preservation checks करता है।test:docker:published-upgrade-survivorपहले published baseline install करता है, bakedopenclaw config setrecipe से उसे configure करता है, उसे candidate tarball पर update करता है, doctor चलाता है, legacy cleanup check करता है, Gateway शुरू करता है, और/healthz,/readyz, और RPC status probe करता है।test:docker:update-restart-authcandidate package install करता है, managed token-auth Gateway शुरू करता है,openclaw update --yes --jsonके लिए caller gateway auth env unset करता है, और candidate update command से normal probes से पहले Gateway restart करवाना require करता है।test:docker:update-migrationcleanup-heavy published-update lane है। यह configured Discord/Telegram-style user state से शुरू करता है, baseline doctor चलाता है ताकि configured plugin dependencies materialize होने का मौका पा सकें, configured packaged plugin के लिए legacy plugin dependency debris seed करता है, candidate tarball पर update करता है, और post-update doctor से legacy dependency roots हटाना require करता है।
base, feishu-channel, bootstrap-persona,
plugin-deps-cleanup, configured-plugin-installs,
stale-source-plugin-shadow, tilde-log-path, और versioned-runtime-deps। aggregate runs में,
OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS=reported-issues सभी reported
issue-shaped scenarios तक expand होता है, जिसमें configured-plugin install migration शामिल है।
Full update migration को Full Release CI से जानबूझकर अलग रखा गया है। जब release question यह हो कि “क्या
2026.4.23 से आगे की हर published stable release इस candidate पर update हो सकती है और
plugin dependency debris clean up कर सकती है?”, तब manual Update Migration workflow का उपयोग करें:
Package Acceptance
Package Acceptance GitHub-native package gate है। यह एक candidate package कोpackage-under-test tarball में resolve करता है, version और SHA-256 record करता है, फिर
उसी exact tarball के खिलाफ reusable Docker E2E lanes चलाता है। workflow harness
ref package source ref से अलग है, इसलिए current test logic पुराने trusted releases को validate कर सकता है।
Candidate sources:
source=npm:openclaw@beta,openclaw@latest, या exact published version validate करें।source=ref: selected current harness के साथ trusted branch, tag, या commit pack करें।source=url: requiredpackage_sha256के साथ public HTTPS tarball validate करें। यह path URL credentials, non-default HTTPS ports, private/internal hostnames या DNS/IP results, special-use IP space, और unsafe redirects reject करता है।source=trusted-url: maintainer-owned policy.github/package-trusted-sources.jsonके खिलाफ requiredpackage_sha256औरtrusted_source_idके साथ HTTPS tarball validate करें। enterprise/private mirrors के लिए इसका उपयोग करें,source=urlको input-level allow-private switch से कमजोर करने के बजाय। Bearer auth, जब policy से configured हो, fixedOPENCLAW_TRUSTED_PACKAGE_TOKENsecret का उपयोग करता है।source=artifact: किसी अन्य Actions run द्वारा uploaded tarball reuse करें।
source=artifact का उपयोग करता है, जिसे
resolved release SHA से बनाया जाता है। post-publish proof के लिए,
package_acceptance_package_spec=openclaw@YYYY.M.PATCH pass करें ताकि वही upgrade matrix
shipped npm package को target करे।
Release checks Package Acceptance को package/update/restart/plugin set के साथ call करते हैं:
last-stable-4 चार latest stable npm-published OpenClaw
releases पर resolve होता है। Release package acceptance 2026.4.23 को first plugin-update
compatibility boundary, 2026.5.2 को plugin-architecture churn boundary, और
2026.4.15 को पुराने 2026.4.1x published-update baseline के रूप में pin करता है; resolver
उन pins को dedupe करता है जो पहले से latest four में हैं। exhaustive published
update migration coverage के लिए, Full Release CI के बजाय अलग Update
Migration workflow में all-since-2026.4.23 का उपयोग करें। जब आप legacy pre-date
anchor भी चाहते हों, तब manual wider sampling के लिए release-history उपलब्ध रहता है।
जब multiple published-upgrade survivor baselines चुने जाते हैं, reusable
Docker workflow हर baseline को अपने targeted runner job में shard करता है। हर
baseline shard अब भी selected scenario set चलाता है, लेकिन logs और artifacts
per-baseline रहते हैं और wall time एक बड़े serial job के बजाय slowest shard से bounded होता है।
release से पहले candidate validate करते समय package profile manually चलाएँ:
suite_profile=product का उपयोग करें। suite_profile=full
का उपयोग केवल तब करें जब आपको full Docker release-path coverage चाहिए।
Release default
Release candidates के लिए, default proof stack है:- source-level regressions के लिए
pnpm check:changedऔरpnpm test:changed। - package artifact integrity के लिए
pnpm release:check। - install/update/restart/plugin contracts के लिए Package Acceptance
packageprofile या release-check custom package lanes। - OS-specific installer, onboarding, और platform behavior के लिए Cross-OS release checks।
- Live suites केवल तब जब changed surface provider या hosted-service behavior को touch करे।
Legacy compatibility
Compatibility leniency संकीर्ण और time boxed है:2026.4.25तक के packages, जिनमें2026.4.25-beta.*शामिल हैं, Package Acceptance में already-shipped package metadata gaps tolerate कर सकते हैं।- published
2026.4.26package already shipped local build metadata stamp files के लिए warn कर सकता है। - बाद के packages को modern contracts satisfy करने होंगे। वही gaps warning या skipping के बजाय fail होंगे।
upgrade-survivor, published-upgrade-survivor, या
update-restart-auth से prove करें।
Coverage जोड़ना
Update या plugin behavior बदलते समय, सबसे lower layer पर coverage जोड़ें जो सही वजह से fail हो सके:- शुद्ध पाथ या मेटाडेटा लॉजिक: source के पास unit test।
- पैकेज इन्वेंटरी या पैक्ड-फ़ाइल व्यवहार:
package-dist-inventoryया tarball checker test। - CLI install/update व्यवहार: Docker lane assertion या fixture।
- प्रकाशित-रिलीज़ migration व्यवहार:
published-upgrade-survivorscenario। - update-owned restart व्यवहार:
update-restart-auth। - registry/package source व्यवहार:
test:docker:pluginsfixture या ClawHub fixture server। - dependency layout या cleanup व्यवहार: runtime execution और
filesystem boundary, दोनों assert करें। npm dependencies Plugin के
managed npm project के अंदर hoist हो सकती हैं, इसलिए tests को साबित करना चाहिए
कि उसी project को scan/clean किया जाता है, बजाय इसके कि केवल Plugin package-local
node_modulestree मान लिया जाए।
failure triage
artifact identity से शुरू करें:- पैकेज स्वीकृति
resolve_packagesummary: source, version, SHA-256, और artifact name। - Docker artifacts:
.artifacts/docker-tests/**/summary.json,failures.json, lane logs, और rerun commands। - upgrade survivor summary:
.artifacts/upgrade-survivor/summary.json, जिसमें baseline version, candidate version, scenario, phase timings, और recipe steps शामिल हों।