Skip to content

Build test output to test_out#309

Closed
ada-x64 wants to merge 1 commit into
fix/304/release-to-standard-locationfrom
fix/308/normalize-build-output
Closed

Build test output to test_out#309
ada-x64 wants to merge 1 commit into
fix/304/release-to-standard-locationfrom
fix/308/normalize-build-output

Conversation

@ada-x64

@ada-x64 ada-x64 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Builds ramfs test image to test_out. Updates windows CI job to match.

Closes #308.

@ada-x64 ada-x64 requested a review from Copilot June 26, 2026 17:50
@ada-x64 ada-x64 changed the base branch from fix/304/release-to-standard-location to main June 26, 2026 17:51
@ada-x64 ada-x64 force-pushed the fix/308/normalize-build-output branch from d642bb8 to f9426af Compare June 26, 2026 17:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR moves the standalone ramfs test image output from nanvix_root() into test_out() and updates the Windows CI job to place/expose the extracted Linux-built ramfs in the new normalized output directory, aligning with issue #308’s goal of consolidating test build outputs.

Changes:

  • Write the generated nanvix_rootfs.img and its .ramfs-built sentinel into test_out().
  • Ensure test_out() exists during ramfs builds (mkdir(parents=True, exist_ok=True)).
  • Update Windows CI to copy the extracted ramfs to .nanvix/out/test/nanvix_rootfs.img and export NANVIX_PREBUILT_RAMFS accordingly.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
.nanvix/src/clean.py Cleans ramfs artifacts from the new test_out() location (but currently doesn’t clean legacy locations).
.nanvix/src/build.py Builds/validates ramfs from test_out() (but still writes some ramfs build byproducts outside test_out()).
.github/workflows/ci.yml Updates Windows CI to place the extracted ramfs in the new normalized output path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .nanvix/src/build.py
return img

stripped = work_dir / "stripped-sysroot"
stripped = nanvix_root() / "stripped-sysroot"
Comment thread .nanvix/src/build.py

# Generate build manifests for post-build inspection
self._write_build_manifests(sysroot, stripped, work_dir)
self._write_build_manifests(sysroot, stripped, nanvix_root())
Comment thread .nanvix/src/clean.py
Comment on lines +32 to 35
ramfs_img = test_out() / "nanvix_rootfs.img"
ramfs_img.unlink(missing_ok=True)
ramfs_sentinel = nanvix_root() / ".ramfs-built"
ramfs_sentinel = test_out() / ".ramfs-built"
ramfs_sentinel.unlink(missing_ok=True)
Copilot AI review requested due to automatic review settings June 26, 2026 17:54
@ada-x64 ada-x64 force-pushed the fix/308/normalize-build-output branch from f9426af to 86eb9c5 Compare June 26, 2026 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread .nanvix/src/build.py
return img

stripped = work_dir / "stripped-sysroot"
stripped = nanvix_root() / "stripped-sysroot"
Comment thread .nanvix/src/build.py
Comment on lines +121 to +125
work_dir = test_out()
img = work_dir / "nanvix_rootfs.img"
sentinel = work_dir / ".ramfs-built"
current_hash = self._ramfs_input_hash(sysroot)
work_dir.mkdir(parents=True, exist_ok=True)
Comment thread .nanvix/src/clean.py
Comment on lines 31 to 35
self._cleanup_ramfs()
ramfs_img = nanvix_root() / "nanvix_rootfs.img"
ramfs_img = test_out() / "nanvix_rootfs.img"
ramfs_img.unlink(missing_ok=True)
ramfs_sentinel = nanvix_root() / ".ramfs-built"
ramfs_sentinel = test_out() / ".ramfs-built"
ramfs_sentinel.unlink(missing_ok=True)
Copilot AI review requested due to automatic review settings June 26, 2026 17:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread .nanvix/src/build.py
Comment on lines 151 to +152
# Generate build manifests for post-build inspection
self._write_build_manifests(sysroot, stripped, work_dir)
self._write_build_manifests(sysroot, stripped, nanvix_root())
Comment thread .nanvix/src/build.py
Comment on lines +808 to +811
elf_out = repo_root() / "elf-binaries"
if elf_out.exists():
shutil.rmtree(elf_out)
elf_out.mkdir()
Builds ramfs test image to test_out. Updates windows CI job to match.

Closes #308.
@ada-x64 ada-x64 force-pushed the fix/308/normalize-build-output branch from 86eb9c5 to df3f698 Compare June 26, 2026 18:15
@ada-x64 ada-x64 changed the base branch from main to fix/304/release-to-standard-location June 26, 2026 18:15
@ada-x64

ada-x64 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Closing to recreate with linear stack ordering.

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.

2 participants