-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip dockerized tests in CI on M1 mac
- Loading branch information
1 parent
53211d7
commit 839b908
Showing
13 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import { specTest } from "../spec/index.js"; | ||
import { initializer } from "./mongoInitializer.js"; | ||
import { isCI, isMSeriesMac } from "./utils.js"; | ||
|
||
specTest(initializer); | ||
// skipped on M1 macOS in CI because there's no container runtime available due to the reliance on nested | ||
// virtualization, which isn't yet supported on Apple Silicon. | ||
// For more details, see https://github.com/actions/runner-images/issues/9460#issuecomment-1981203045 | ||
if (isMSeriesMac() && isCI()) { | ||
it.skip(`${initializer.saverName} skipped on M1 macOS in CI because no container runtime is available`, () => {}); | ||
} else { | ||
specTest(initializer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import { specTest } from "../spec/index.js"; | ||
import { initializer } from "./postgresInitializer.js"; | ||
import { isCI, isMSeriesMac } from "./utils.js"; | ||
|
||
specTest(initializer); | ||
// skipped on M1 macOS in CI because there's no container runtime available due to the reliance on nested | ||
// virtualization, which isn't yet supported on Apple Silicon. | ||
// For more details, see https://github.com/actions/runner-images/issues/9460#issuecomment-1981203045 | ||
if (isMSeriesMac() && isCI()) { | ||
it.skip(`${initializer.saverName} skipped on M1 macOS in CI because no container runtime is available`, () => {}); | ||
} else { | ||
specTest(initializer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { platform, arch } from "node:os"; | ||
|
||
export function isMSeriesMac() { | ||
return platform() === "darwin" && arch() === "arm64"; | ||
} | ||
|
||
export function isCI() { | ||
// eslint-disable-next-line no-process-env | ||
return (process.env.CI ?? "").toLowerCase() === "true"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters