Commit 040fa6e
build: migrate to uv + poethepoet, replace bats with pytest
Complete overhaul of build system and test framework:
Build System:
- Replace Task CLI with uv + poethepoet
- Remove Taskfile.yml, add pyproject.toml with poe tasks:
uv run poe env:configure # setup
uv run poe test # run tests
uv run poe package # create tarball
- Require Python 3.13+ instead of 3.11
- Pin pre-commit 4.5, poethepoet 0.42, pytest 8.0
Test Framework:
- Replace 8 bats test files (lib.bash + 7 *.bats) with 7 pytest modules
- Total: 23 tests (boot, preboot, envs, perms, init, finalize, services)
- Create tests/conftest.py with podman image build/run helpers
- Image building delegated to pytest module-scoped fixtures
- Organize fixture Dockerfiles and rootfs into tests/fixtures/
Code Quality:
- Type annotations throughout (tuple[str, ...] for BASE_DOCKER_ARGS)
- Immutable structures (tuple instead of list)
- Pytest assertions instead of bats exit code checks
CI/CD:
- Update .github/workflows/ci.yml to use astral-sh/setup-uv@v8
- Remove bats system dependency from CI (now pytest + podman only)
- Update .gitignore: add .venv/, __pycache__/, *.pyc
- Update README.md with new command documentation
All 23 tests passing. Fixture data (Dockerfiles, rootfs overlays) now
properly separated from test code in tests/fixtures/ structure.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 4040b9e commit 040fa6e
File tree
48 files changed
+612
-256
lines changed- .github/workflows
- scripts
- tests
- boot
- envs
- finalize
- fixtures
- boot
- envs
- rootfs/etc/ignity/envs
- finalize
- rootfs/etc/ignity/finalize
- init
- rootfs/etc/ignity/init
- perms
- rootfs
- etc/ignity/perms
- var/www
- preboot
- services
- rootfs/etc/ignity
- init
- services
- default
- no-start-at-build-time
- no-start-at-runtime
- init
- perms
- preboot
- services
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+612
-256
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
24 | 21 | | |
25 | 22 | | |
26 | | - | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
This file was deleted.
This file was deleted.
0 commit comments