mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 15:00:22 +00:00
fix(ci): default local low-memory checks
This commit is contained in:
@@ -1721,7 +1721,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
const effectiveConfigRaw = legacyResolution.effectiveConfigRaw;
|
||||
for (const w of readResolution.envWarnings) {
|
||||
deps.logger.warn(
|
||||
`Config (${configPath}): missing env var "${w.varName}" at ${w.configPath} — feature using this value will be unavailable`,
|
||||
`Config (${configPath}): missing env var "${w.varName}" at ${w.configPath} - feature using this value will be unavailable`,
|
||||
);
|
||||
}
|
||||
warnOnConfigMiskeys(effectiveConfigRaw, deps.logger);
|
||||
@@ -1971,7 +1971,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
// sections reference unset env vars (e.g. optional provider API keys).
|
||||
const envVarWarnings = readResolution.envWarnings.map((w) => ({
|
||||
path: w.configPath,
|
||||
message: `Missing env var "${w.varName}" — feature using this value will be unavailable`,
|
||||
message: `Missing env var "${w.varName}" - feature using this value will be unavailable`,
|
||||
}));
|
||||
|
||||
const resolvedConfigRaw = readResolution.resolvedConfigRaw;
|
||||
@@ -2021,7 +2021,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
const nodeErr = err as NodeJS.ErrnoException;
|
||||
let message: string;
|
||||
if (nodeErr?.code === "EACCES") {
|
||||
// Permission denied — common in Docker/container deployments where the
|
||||
// Permission denied - common in Docker/container deployments where the
|
||||
// config file is owned by root but the gateway runs as a non-root user.
|
||||
const uid = process.getuid?.();
|
||||
const uidHint = typeof uid === "number" ? String(uid) : "$(id -u)";
|
||||
@@ -2123,7 +2123,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
|
||||
// Restore ${VAR} env var references that were resolved during config loading.
|
||||
// Read the current file (pre-substitution) and restore any references whose
|
||||
// resolved values match the incoming config — so we don't overwrite
|
||||
// resolved values match the incoming config - so we don't overwrite
|
||||
// "${ANTHROPIC_API_KEY}" with "sk-ant-..." when the caller didn't change it.
|
||||
//
|
||||
// We use only the root file's parsed content (no $include resolution) to avoid
|
||||
@@ -2179,7 +2179,7 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Do NOT apply runtime defaults when writing — user config should only contain
|
||||
// Do NOT apply runtime defaults when writing - user config should only contain
|
||||
// explicitly set values. Runtime defaults are applied when loading (issue #6070).
|
||||
const stampedOutputConfig = stampConfigVersion(outputConfig);
|
||||
const json = JSON.stringify(stampedOutputConfig, null, 2).trimEnd().concat("\n");
|
||||
|
||||
Reference in New Issue
Block a user