mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 06:45:32 +00:00
Fix flaky tests with temp directories and update documentation
This commit eliminates test flakiness by building to unique temporary directories and updates the README to reflect all changes in this branch. Code changes: - Modified RustBuilder to use tempfile::tempdir() for each build - Added BuildResult struct to keep temp directory alive during image build - Each build now gets its own isolated target directory - Removed clean_example_dir() and all cleanup logic - no longer needed - Tests can now run concurrently without interfering with each other Documentation updates: - Added "Isolated builds" and "Concurrent builds" to key features - Added comprehensive "Build Process" section explaining the temp directory approach - Updated multi-arch documentation to reflect default behavior (builds both platforms) - Added "Multi-Architecture Images" section explaining how multi-arch works - Documented that manifest list support is planned for future release Benefits: - No more "Built binary not found" errors - Tests run reliably every time - Concurrent test execution is now safe - Simpler test code without cleanup logic - Clear documentation of build isolation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
068ad65477
commit
d4b7b216df
5 changed files with 68 additions and 16 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -25,16 +25,10 @@ jobs:
|
|||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl
|
||||
- name: Install cross-compilation tools (Ubuntu x64)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
- name: Install cross-compilation tools for both architectures
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu
|
||||
- name: Install cross-compilation tools (Ubuntu ARM)
|
||||
if: matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y musl-tools gcc-x86-64-linux-gnu
|
||||
sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu
|
||||
- name: Cache cargo registry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue