Skip to content

Build, test and package in the amiga-toolchain image - #83

Closed
pulchart wants to merge 13 commits into
masterfrom
wip/jpu/next-image
Closed

pulchart wants to merge 13 commits into
masterfrom
wip/jpu/next-image

Conversation

@pulchart

@pulchart pulchart commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Trial of wip/jpu/next on the amiga-toolchain image:

  • every make target runs in the image; outside it make starts the container itself
  • built binaries and guides in dist/ are no longer tracked
  • CI: image, lint, build, test, package, and the FS-UAE integration suite on AROS and ApolloOS; summaries and downloadable artifacts
  • the integration suite runs in the amiga-fsuae images
  • ptable components compared with the ptable commit the previous release pinned

ruff format with line length 100 and double quotes; no code changes.
make lint runs ruff check (rules E, F, B, SIM, RUF) and the format check over the tracked Python files, yamllint over the YAML files. Loop variables are bound as default arguments in the traps that close over them, unused imports and variables go, ambiguous names are renamed.

md2guide.py: the curly quote keys of the AmigaGuide replacement table had become plain quotes, one pair a duplicate key and the other a string across two lines; they map curly to straight quotes again. The unused first definition of format_simple_table goes.

ruff targets Python 3.14 and tests/deps.py asks for it. deps.py keeps a Python 3.10 target, so an older Python can still run it and report the version. .pre-commit-config.yaml runs ruff check, ruff format and yamllint with the rules in .yamllint before each commit.
_bootDebug and _DebugStr kept the string pointer in a0 across
RawPutChar, and _DebugHexDigit, documented to preserve d0-d1/a0-a1,
called RawPutChar without saving them; _DebugHexWord and the
IDENTIFY dump rely on that. Kickstart RawPutChar leaves them alone,
AROS RawPutChar does not. The string loops now use a2, and
_DebugHexDigit saves the scratch registers around the call.
make test-integration boots each OS profile of tests/integration/config.yaml in FS-UAE (A1200, PCMCIA IDE card) with compactflash.device, ptable.library and fat95, and runs the scenarios of scenarios.yaml. They cover automount on and off, static mounts with and without MOUNT_USED, handler parameters from cfd.prefs, a card swap, a card swap with a file held open (tools/holdfile.c), an RDB with FFS and PFS3, and MBR and GPT cards with FAT12, FAT16, FAT32, NTFS and exFAT partitions. exFAT is expected to mount when the fat95 binary has it. tests/INVENTORY.md lists the scenarios, with the planned ones that need a card that stays out of the slot.

Relative config paths start at the repository root, and the OS media and pfs3aio come from /opt/AmigaOS. A profile whose files are missing is skipped, and the run prints its plan first.
The guide takes its version and date from the Makefile, so a new date
without an edit of docs/changes.md left the old one in the guide.
ruff checked deps.py against Python 3.10, so that it could still report a too old Python. The suite requires 3.14, so the exception goes and ruff format drops the parentheses around the except tuple.
Outside the image the Makefile hands its goals to one podman run of
TOOLCHAIN_IMAGE and mounts the checkout, PTABLE and their git dirs at
their paths. Inside the image, as in CI, make runs the goals directly. The
rules call vasmm68k_mot, vc, md2guide and python3 from the image's PATH
and take NDK from its environment, so the tool path variables, check-vasm
and tools/md2guide.py are gone.

Every build runs the ptable make, which decides what to rebuild, so a
checkout without ptable binaries builds them. extern/ptable moves to the
ptable commit that builds in the image the same way.
The drivers, automount modules, ptable.library copies, tools and guides
in dist/ are make output, so git ignores them. CI uploads them as an
artifact and releases ship them in the archive. dist/ENVARC, dist/Storage
and dist/images stay tracked.
The image job pins TOOLCHAIN_IMAGE from the Makefile to its digest for
every job. lint, build and test run in parallel. package packs the build
job's output with make release, compares the archive's drivers,
ptable.library copies and tools with a copy of that output and uploads
the archive and readme as cfd-release. Each job adds its part of the run
summary: image versions, built files, test suites, archive and its
download link.
run.py runs in an amiga-fsuae OS image and boots a copy of its system
directory; the image names the OS through AMIGA_SYSTEM and AMIGA_KICKSTART.
The driver set comes from dist/, fat95, lsfsres and PFS3 from their
releases, checked by SHA-256, unless config.yaml names builds. cardout,
cardin and noreq are tools/*.asm built by make, and the NTFS volume of the
mixed cards is a boot sector, so the images need no vasm and no mkntfs.

make test-integration builds the guest tools in the toolchain image and
runs run.py in the image of each OS in IT_OS, AROS and ApolloOS by default.
CI runs the suite on both with the build job's output.
The previous tag's Makefile holds no ptable.library or lsptres version,
only the commands that read them, so both were always marked new. Their
previous values are now the dist/*.version stamps of the ptable commit
that tag pinned.
Release date, compactflash.device 2.3-dev, compactflash.automount 2.1-dev and the release notes.
@pulchart

Copy link
Copy Markdown
Owner Author

Moved to wip/jpu/next.

@pulchart pulchart closed this Nov 21, 2026
@pulchart
pulchart deleted the wip/jpu/next-image branch November 21, 2026 18:44
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.

1 participant