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

fix: align ci-base-sha guard with autofixer install on server shards (#12302)

[._.]/ Adam Eivye9506aac89b1
diff --git a/scripts/ci-base-sha.test.js b/scripts/ci-base-sha.test.js
index 1d58f819c2..669754373c 100644
--- a/scripts/ci-base-sha.test.js
+++ b/scripts/ci-base-sha.test.js
@@ -252,7 +252,7 @@ describe('ci.yml autofixer workspace install', () => {
const installers = Object.entries(jobs)
.filter(([, body]) => body.includes('npm ci --prefix autofixer'));
- it('resolves the autofixer lockfile and checks the server entry point on the job that always runs', () => {
+ it('resolves the autofixer lockfile and checks the server entry point on the job that always runs and each shard', () => {
// autofixer/ carries its own package.json, its own tracked lockfile, and
// its own .npmrc, and `npm run setup` / scripts/ensure-deps.js install it
// on every user's machine. When no CI job ran `npm ci` against it, a
@@ -264,7 +264,10 @@ describe('ci.yml autofixer workspace install', () => {
// Named, so the loop below is never vacuously green on a deleted step.
expect(jobs.impact).toMatch(/- name: Install autofixer dependencies\n {8}run: npm ci --prefix autofixer/);
expect(jobs.impact).toMatch(/- name: Check server entry-point syntax\n {8}run: node --check server\/index\.js/);
- expect(jobs.server).not.toContain('npm ci --prefix autofixer');
+ // Shards are separate checkouts and run ../autofixer tests, which import
+ // express from autofixer/node_modules, so they install it too.
+ expect(jobs.server).toMatch(/- name: Install autofixer dependencies\n {8}run: npm ci --prefix autofixer/);
+ expect(jobs['windows-server']).toMatch(/- name: Install autofixer dependencies\n {8}run: npm ci --prefix autofixer/);
expect(jobs.server).not.toContain('node --check server/index.js');
});