Skip to content

Conversation

@kraenhansen
Copy link
Collaborator

@kraenhansen kraenhansen commented Oct 15, 2025

Description

As preparation for COMPASS-9930 I suggest moving the mongodb-build-info package into our shared devtools monorepo and migrate the package to TypeScript in the process.

Once merged, we should archive the original repo.

Open Questions

Checklist

Comment on lines +138 to +139
serverOs: string | null;
serverArch: string | null;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type declarations didn't include null but the implementation could return it: https://github.com/mongodb-js/mongodb-build-info/blob/cbdfb4ad0bf4e3bfc818cf9e5197ea7345032f72/index.d.ts#L20-L21

This is technically a breaking change, which is fine as I expect to release a major version next 🤞


export function getDataLake(buildInfo: unknown): {
isDataLake: boolean;
dlVersion: string | null;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing null here to match the former implementation.

This is technically a breaking change, which is fine as I expect to release a major version next 🤞

Comment on lines +83 to +101
export const COSMOSDB_BUILD_INFO = {
_t: 'BuildInfoResponse',
ok: 1,
version: '3.2.0',
gitVersion: '45d947729a0315accb6d4f15a6b06be6d9c19fe7',
targetMinOS: 'Windows 7/Windows Server 2008 R2',
modules: [],
allocator: 'tcmalloc',
javascriptEngine: 'Chakra',
sysInfo: 'deprecated',
versionArray: [3, 2, 0, 0],
bits: 64,
debug: false,
maxBsonObjectSize: 524288,
openssl: {
running: 'OpenSSL 1.0.1p-fips 9 Jul 2015',
compiled: 'OpenSSL 1.0.1p-fips 9 Jul 2015',
},
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be deleted as it's not used in the test 🤔

@kraenhansen kraenhansen marked this pull request as ready for review October 15, 2025 15:43
@kraenhansen kraenhansen merged commit c6ad0b0 into main Oct 15, 2025
33 checks passed
@kraenhansen kraenhansen deleted the kh/build-info branch October 15, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants