mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
fix: resolve all CI test failures (19 fixes across 6 files) (#519)
- canonical-session: fall back to JSON file recording when the loaded state-store module has no writer methods (factory vs instance) - install-executor: skip node_modules and .git dirs in listFilesRecursive to prevent ETIMEDOUT copying thousands of .opencode dependency files - ecc.js: increase maxBuffer to 10MB for spawned subcommands to prevent ENOBUFS on large install plan JSON output - install-apply.test: update Cursor and Antigravity path assertions to match flattened rule layout and remapped dirs (workflows, skills) - ecc.test: increase maxBuffer in test runner to handle large output - orchestrate-codex-worker.sh: guard against unreadable task file before cat, write failure status and handoff artifacts on early exit
This commit is contained in:
@@ -83,6 +83,11 @@ function validateLegacyTarget(target) {
|
||||
}
|
||||
}
|
||||
|
||||
const IGNORED_DIRECTORY_NAMES = new Set([
|
||||
'node_modules',
|
||||
'.git',
|
||||
]);
|
||||
|
||||
function listFilesRecursive(dirPath) {
|
||||
if (!fs.existsSync(dirPath)) {
|
||||
return [];
|
||||
@@ -94,6 +99,9 @@ function listFilesRecursive(dirPath) {
|
||||
for (const entry of entries) {
|
||||
const absolutePath = path.join(dirPath, entry.name);
|
||||
if (entry.isDirectory()) {
|
||||
if (IGNORED_DIRECTORY_NAMES.has(entry.name)) {
|
||||
continue;
|
||||
}
|
||||
const childFiles = listFilesRecursive(absolutePath);
|
||||
for (const childFile of childFiles) {
|
||||
files.push(path.join(entry.name, childFile));
|
||||
|
||||
Reference in New Issue
Block a user