#TESTING
This document defines CodexManager repository-level testing and validation baselines.
Target:
- New collaborators can quickly know what at least needs to be run after the change
- Avoid upgrading all changes to full verification
- 让协议兼容、发布链路、设置治理这些高风险改动有固定检查入口
- Node.js 20
- pnpm 9
- Rust stable
- PowerShell 7+ (Windows Packaging/Script Validation)
Scope of application:
apps/src/app/apps/src/components/apps/src/lib/apps/src/hooks/
Minimal verification:
pnpm -C apps run build
pnpm -C apps run test:runtimeillustrate:
pnpm -C apps run build: Confirm that the Next.js static export link is still normalpnpm -C apps run test:runtime: Confirm runtime capability determination and desktop / Web Capability degradation logic has not returned- If the changes involve runtime identification, Web RPC, desktop/Web difference processing, make up Section 4
Scope of application:
apps/src-tauri/- Desktop updates, tray, window, command bridge related changes
Minimal verification:
cargo test --workspaceAdditional suggestions:
pwsh -NoLogo -NoProfile -File scripts/rebuild.ps1 -Bundle nsis -CleanDistillustrate:
- Whenever you make changes to Tauri bridging or the desktop lifecycle, it's a good idea to do at least one local desktop build verification.
Scope of application:
crates/web/apps/src/lib/api/transport.tsapps/src/components/layout/app-bootstrap.tsxapps/src/components/layout/header.tsxapps/src/components/layout/sidebar.tsx- Web Agent,
/api/runtime,/api/rpc, and related changes in deployment methods
Minimal verification:
pnpm -C apps run build
pnpm -C apps run test:runtime
cargo test -p codexmanager-webAfter starting the Web service, verify /api/runtime, /api/rpc, and key pages with a browser or HTTP client. The old scripts/tests/web_runtime_probe*.ps1 and web_ui_smoke.ps1 probes are no longer in the repository.
illustrate:
pnpm -C apps run build: Confirm that front-end static export can still be generatedpnpm -C apps run test:runtime: Confirm that the front-end runtime contract and capability determination are consistentcargo test -p codexmanager-web: Confirm Web Shell Routing and Runtime Probe Contract
Scope of application:
crates/core/crates/service/crates/start/crates/web/
Minimal verification:
cargo test --workspaceAdditional suggestions:
cargo build -p codexmanager-service --release
cargo build -p codexmanager-web --release
cargo build -p codexmanager-start --releaseScope of application:
crates/service/src/gateway/crates/service/src/http/crates/service/src/lib.rs
Must cover:
/v1/responses/v1/chat/completions- Streaming SSE
- Non-streaming JSON
toolstool_calls
Minimal verification:
cargo test --workspace
cargo test -p codexmanager-service gateway --offline -- --test-threads=1illustrate:
- If the local environment does not have a real upstream account, at least run the Rust tests and record real-upstream acceptance as not executed.
- Compatibility fixes cannot validate only one type of client.
Scope of application:
apps/src/app/settings/crates/service/src/app_settings/crates/core/src/storage/settings.rs- Added
CODEXMANAGER_*configuration items
Minimal verification:
pnpm -C apps run build
cargo test --workspaceMust be manually confirmed:
- Is the default value clear?
- 是否写入
app_settings - Does it need to be synchronized to runtime?
- README /
CONTRIBUTING.md/ARCHITECTURE.mdDoes it need to be updated?
Scope of application:
.github/workflows/.github/actions/scripts/release/scripts/rebuild*
Minimal verification:
pnpm -C apps run build
cargo test --workspace
pnpm -C apps run build:desktopMust be manually confirmed:
- The workflow input is consistent with the README description
- There is no drift in product naming
- prerelease / latest behavior without drift
Scope of application:
README*ARCHITECTURE.mdCONTRIBUTING.mdCHANGELOG.mddocs/
Minimal verification:
- Check if the link path is valid
- Check if document responsibilities are duplicated
- Check whether the version number, product name, and workflow name are consistent with the actual ones
pnpm -C apps run build
pnpm -C apps run test:runtime
cargo test -p codexmanager-webpnpm -C apps run build
pnpm -C apps run test:runtimepnpm -C apps run build
pnpm -C apps run test:runtime
cargo test -p codexmanager-webcargo test --workspace
cargo test -p codexmanager-service gateway --offline -- --test-threads=1- Verifications that can be completely executed are recorded as "executed".
- Verifications that cannot be executed due to environmental restrictions are clearly written as "not executed + reason".
- Don't take "should be able to pass" as "proven".