Skip to content

Commit

Permalink
fix(build): fix tests for new platforms MONGOSH-1806 (#2022)
Browse files Browse the repository at this point in the history
Our `build` package tests have been failing since 904162f.
This commit fixes:

- Ubuntu 24.04 is not known as part of the server distro list yet,
  but we can reliably infer its name tag based on the format used
  for existing Ubuntu distros
- Oracle Linux 9 is not known as a server distro and will likely
  never be.
  • Loading branch information
addaleax authored Jun 11, 2024
1 parent ac38223 commit 404445c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/release-package-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const rhel81AndAbove = ['rhel81', 'rhel82', 'rhel83', 'rhel90']
const rhel80AndAbove = ['rhel80', ...rhel81AndAbove]
const rhel72AndAbove = ['rhel72', ...rhel80AndAbove]
const al2AndAbove = ['amazon2', 'amazon2023', ...rhel81AndAbove]
const rhel70AndAboveAndRpmBased = ['rhel70', 'rhel71', ...rhel72AndAbove, 'amazon', ...al2AndAbove, 'suse12', 'suse15', 'oraclelinux9']
const rhel70AndAboveAndRpmBased = ['rhel70', 'rhel71', ...rhel72AndAbove, 'amazon', ...al2AndAbove, 'suse12', 'suse15']
const ubuntu1804AndAboveAndDebBased = ['ubuntu1804', 'ubuntu1804', 'ubuntu2004', 'ubuntu2204', 'ubuntu2404', 'debian10', 'debian11', 'debian12']
const allLinux = [...rhel70AndAboveAndRpmBased, ...ubuntu1804AndAboveAndDebBased]

Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/download-center/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ describe('DownloadCenter config', function () {
];
const mongoshTargets = [
...new Set(mongoshJsonFeedEntry.downloads.flatMap((d) => d.targets)),
].filter((t) => t !== 'debian12'); // debian12 is not part of the server platform list at the time of writing
].filter((t) => t !== 'ubuntu2404'); // ubuntu2404 is not part of the server platform list at the time of writing

for (const arch of mongoshArchs) expect(serverArchs).to.include(arch);
for (const target of mongoshTargets)
Expand Down

0 comments on commit 404445c

Please sign in to comment.