Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex, claude): honest no-base diagnostic and a related-list fallback for `files` plans
[._.]/ Adam Eivycb4ac83ba93a
diff --git a/scripts/ci-base-sha.js b/scripts/ci-base-sha.jsindex f308962631..10388c28d9 100644--- a/scripts/ci-base-sha.js+++ b/scripts/ci-base-sha.js@@ -53,13 +53,24 @@ export function resolveBaseSha({ eventName, revParse = gitRevParse } = {}) {}function main() {- const baseSha = resolveBaseSha({ eventName: process.env.GITHUB_EVENT_NAME });- if (!baseSha) {- console.log('No pull-request merge base to resolve — this run tests the complete suite.');+ const eventName = process.env.GITHUB_EVENT_NAME;+ const baseSha = resolveBaseSha({ eventName });+ if (baseSha) {+ writeStepEnv('CI_BASE_SHA', baseSha);+ console.log(`📌 Diff base for this pull request: ${baseSha}`);return;}- writeStepEnv('CI_BASE_SHA', baseSha);- console.log(`📌 Diff base for this pull request: ${baseSha}`);+ if (eventName === 'pull_request') {+ // Say so here rather than leaving the reader with "tests the complete+ // suite", which describes a forced-full run and is the opposite of what+ // happens next: a scoped pull request with no base fails loudly one step+ // later, on the planner's throw or the runner's requiresBaseSha guard.+ // Not fatal on its own — a pull request into the release branch forces+ // the complete suite and legitimately needs no base.+ console.error('❌ pull_request checkout is not a merge ref — no diff base to resolve.');+ return;+ }+ console.log('No pull-request merge base to resolve — this run tests the complete suite.');}const isMain = process.argv[1]diff --git a/scripts/run-ci-tests.js b/scripts/run-ci-tests.jsindex 655c92987b..1b170076e8 100644--- a/scripts/run-ci-tests.js+++ b/scripts/run-ci-tests.js@@ -173,7 +173,12 @@ function main() {const listed = listRelatedFiles(scope, baseSha);if (listed) {relatedFiles = listed;- } else if (mode === 'related') {+ } else {+ // The list failed, so the union cannot be built. Run the import-graph+ // half through Vitest directly and the planner's explicit half after+ // it — two processes instead of one, but never a green run that+ // quietly dropped every related test. This fallback covers a `files`+ // plan as much as a `related` one: both union the same two halves.const relatedStatus = spawnNpm(scope, ['--changed', baseSha], 'related tests');if (relatedStatus !== 0) process.exit(relatedStatus);process.exit(selectedFiles.length ? spawnNpm(scope, selectedFiles, 'explicit structural tests') : 0);