@@ -3,8 +3,8 @@ import assert from 'node:assert/strict';
33import fs from 'node:fs' ;
44import path from 'node:path' ;
55
6- import crossSpawn from 'cross-spawn' ;
7- import kill from 'tree-kill' ;
6+ // import crossSpawn from 'cross-spawn';
7+ // import kill from 'tree-kill';
88import yargs from 'yargs' ;
99import { hideBin } from 'yargs/helpers' ;
1010import { pick } from 'lodash' ;
@@ -23,6 +23,11 @@ import { installMacDMG } from './installers/mac-dmg';
2323import { installMacZIP } from './installers/mac-zip' ;
2424import { installWindowsZIP } from './installers/windows-zip' ;
2525
26+ // hardcode to yesterday's nightly
27+ process . env . DEV_VERSION_IDENTIFIER = '25.1.22-dev.10011' ;
28+ process . env . EVERGREEN_BUCKET_KEY_PREFIX =
29+ '10gen-compass-main/e231969720181ae6e978f0ce3799b954d99ed9a2_7797' ;
30+
2631const SUPPORTED_PLATFORMS = [ 'win32' , 'darwin' , 'linux' ] as const ;
2732const SUPPORTED_ARCHS = [ 'x64' , 'arm64' ] as const ;
2833
@@ -194,10 +199,10 @@ async function run() {
194199 } ) ;
195200
196201 try {
197- const server = startAutoUpdateServer ( {
198- allowDowngrades : true ,
199- port : 8080 ,
200- } ) ;
202+ // const server = startAutoUpdateServer({
203+ // allowDowngrades: true,
204+ // port: 8080,
205+ // });
201206 try {
202207 runTest ( {
203208 appName,
@@ -206,12 +211,12 @@ async function run() {
206211 testName : 'AUTO_UPDATE_FROM' ,
207212 } ) ;
208213 } finally {
209- if ( server . pid ) {
210- console . log ( 'Stopping auto-update server' ) ;
211- kill ( server . pid , 'SIGINT' ) ;
212- } else {
213- console . log ( 'cannnot stop auto-update server because no pid' ) ;
214- }
214+ // if (server.pid) {
215+ // console.log('Stopping auto-update server');
216+ // kill(server.pid, 'SIGINT');
217+ // } else {
218+ // console.log('cannnot stop auto-update server because no pid');
219+ // }
215220 }
216221 } finally {
217222 await uninstall ( ) ;
@@ -222,6 +227,7 @@ async function run() {
222227 }
223228}
224229
230+ /*
225231type AutoUpdateServerOptions = {
226232 port: number;
227233 allowDowngrades?: boolean;
@@ -262,6 +268,7 @@ function startAutoUpdateServer({
262268 shell: true,
263269 });
264270}
271+ */
265272
266273type RunTestOptions = {
267274 appName : string ;
@@ -292,7 +299,13 @@ function runTest({
292299 shell : true ,
293300 env : {
294301 ...process . env ,
295- HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE : 'http://localhost:8080' ,
302+ //HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE: 'http://localhost:8080',
303+
304+ // this is the usual one, just setting
305+ // HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE so the app will set up the
306+ // auto-update code even though it is running in CI
307+ HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE : 'https://compass.mongodb.com' ,
308+
296309 AUTO_UPDATE_UPDATABLE : ( ! ! autoUpdatable ) . toString ( ) ,
297310 TEST_NAME : testName ,
298311 COMPASS_APP_NAME : appName ,
0 commit comments