Skip to content

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

test: collect planner inputs once for DB contract sources (#12449)

[._.]/ Adam Eivyad8f11dcb2e7
diff --git a/scripts/ci-test-plan.test.js b/scripts/ci-test-plan.test.js
index 894d4ea135..69117afaf8 100644
--- a/scripts/ci-test-plan.test.js
+++ b/scripts/ci-test-plan.test.js
@@ -420,9 +420,11 @@ it('requests DB verification for every suite in the real canonical inventory wit
it('requests DB verification for the real deck, model pin and backup source contracts', () => {
const cwd = fileURLToPath(new URL('../', import.meta.url));
- for (const source of ['server/routes/decks.js', 'server/services/modelPinRecords.js', 'server/services/backup.js']) {
- const inputs = collectPlanInputs({ baseSha: 'HEAD', changedFiles: [source], cwd });
- expect(buildCiTestPlan(inputs.changedFiles, inputs), source).toMatchObject({ full: false, db: true });
+ const sources = ['server/routes/decks.js', 'server/services/modelPinRecords.js', 'server/services/backup.js'];
+ // One whole-repository collection; the union is a superset whose DB-dependency walk still covers each source.
+ const inputs = collectPlanInputs({ baseSha: 'HEAD', changedFiles: sources, cwd });
+ for (const source of sources) {
+ expect(buildCiTestPlan([source], inputs), source).toMatchObject({ full: false, db: true });
}
});