Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/nanvix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
uses: nanvix/workflows/.github/workflows/nanvix-ci.yml@v2.4.0
with:
platforms: '["microvm"]'
process-modes: '["multi-process","single-process","standalone"]'
process-modes: '["standalone"]'
memory-sizes: '["256mb"]'
windows-matrix-exclude: '[]'
skip-full-test-modes: '["multi-process","single-process","standalone"]'
skip-full-test-modes: '["standalone"]'
standalone-test-args: "test-functional"
caller-event-name: ${{ github.event_name }}
windows-test: true
docker-image: "ghcr.io/nanvix/toolchain-gcc:sha-34a3641" # yamllint disable-line rule:line-length

Check warning on line 39 in .github/workflows/nanvix-ci.yml

View workflow job for this annotation

GitHub Actions / ci / Format & Lint

39:64 [comments] too few spaces before comment
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}
Expand All @@ -46,14 +46,14 @@
uses: nanvix/workflows/.github/workflows/nanvix-ci.yml@v2.4.0
with:
platforms: '["microvm"]'
process-modes: '["multi-process","single-process","standalone"]'
process-modes: '["standalone"]'
memory-sizes: '["256mb"]'
windows-matrix-exclude: '[]'
skip-full-test-modes: '["multi-process","single-process","standalone"]'
skip-full-test-modes: '["standalone"]'
standalone-test-args: "test-functional"
caller-event-name: 'schedule'
windows-test: true
docker-image: "ghcr.io/nanvix/toolchain-gcc:sha-34a3641" # yamllint disable-line rule:line-length

Check warning on line 56 in .github/workflows/nanvix-ci.yml

View workflow job for this annotation

GitHub Actions / ci / Format & Lint

56:64 [comments] too few spaces before comment
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
DISPATCH_TOKEN: ${{ secrets.DISPATCH_TOKEN }}
2 changes: 1 addition & 1 deletion .nanvix/nanvix.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nanvix-version = "0.17.84"
[builds]
[builds.matrix]
platforms = ["hyperlight", "microvm"]
modes = ["multi-process", "single-process", "standalone"]
modes = ["standalone"]
memory = ["256mb"]

[dependencies]
Expand Down
21 changes: 3 additions & 18 deletions .nanvix/z.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,8 @@ def test(self) -> None:
self._run_tests_windows()
return

if self.config.deployment_mode == "standalone":
self._validate_test_targets()
self._run_functional_standalone()
else:
targets = self.targets if self.targets else ["test"]
run(
*self._make_args(*targets),
cwd=repo_root(),
)
self._validate_test_targets()
self._run_functional_standalone()
Comment on lines +174 to +175

def _get_sysroot(self) -> str:
"""Return the sysroot path or fatal if unset."""
Expand Down Expand Up @@ -254,17 +247,9 @@ def _run_functional_standalone(self) -> None:
def _run_tests_windows(self) -> None:
"""Run tests natively on Windows.

Only standalone mode is tested on Windows; multi-process and
single-process require linuxd, which is Linux-only. Uses
make_initrd to bundle each test binary with system daemons,
Uses make_initrd to bundle each test binary with system daemons,
and a ramfs providing /tmp for any test I/O.
"""
if self.config.deployment_mode != "standalone":
print(
f"Skipping tests on Windows for mode '{self.config.deployment_mode}' (requires linuxd)."
)
return

sysroot_path = Path(self._get_sysroot())
nanvixd = sysroot_path / "bin" / "nanvixd.exe"
mkramfs = sysroot_path / "bin" / "mkramfs.exe"
Expand Down