Repository navigation
release: 20261127 - #84
Merged
Merged
Conversation
pulchart
force-pushed
the
wip/jpu/next
branch
11 times, most recently
from
November 23, 2026 20:55
851509a to
594bc8d
Compare
pulchart
force-pushed
the
wip/jpu/next
branch
8 times, most recently
from
November 27, 2026 13:30
09efd75 to
3311a00
Compare
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, deps.py included, and tests/deps.py asks for it. .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.
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 fat95 v20261115 release hangs AROS after the card mounts; fat95 on next does not. An OS profile names the oldest fat95 it runs with fat95_min, which AROS and ApolloOS set to 4.3. run.py reads the version from the fat95 binary and skips the scenarios that mount FAT with an older one, so the RDB scenarios still run there. The CI summary lists the skipped ones. Both profiles give fat95 a 64 KB stack as its own suite does on AROS, and a profile key a scenario also sets no longer stops run.py.
WaitReady also returns on the timer signal and then leaves CFU_IDEStatus as it was, so _GetIDEID and _ReadIdentify could test a stale status and see no DRQ. Resending IDENTIFY with a Wait40 between the tries, added for SD-to-CF adapters in 1.33, covered that by giving the card more time, and _IDECmd waited for BSY before each resend. _IDWait reads the alternate status itself and ends on DRQ, ERR or DF, with a Wait40 between the reads and 2 s for the whole identification. A refused IDENTIFY DEVICE goes to IDENTIFY PACKET DEVICE at once instead of after the resends. The README identification diagram shows the new flow.
After a reset a card can report READY before its CIS is valid, so CopyTuple finds no tuple or tuples read only partly, and the gate released the card at once. A rejected gate is now read again after a Wait40 until 1 s has passed, timed by CFU_TimeReq. This also covers the null device tuple, which had a retry of its own. A card that is still rejected is released after that second instead of at once, and debug builds log every new read.
Wait1 asked for 0.1 ms on the VBLANK timer unit, which waits for the next frame anyway. The CISTPL_CONFIG retry uses Wait40 like the other short waits, and Wait1 is gone.
compactflash.device reads IDENTIFY in read mode 0 only and no longer falls back to the other modes. The -identify verdict and the timing sweep took the first mode that delivered a block; they now judge the card by mode 0 and still measure the other modes for comparison.
make runs the suites in the amiga-toolchain image, which installs upstream amitools and machine68k at the versions in its requirements.txt. tests/deps.py reads those versions from the image instead of a requirements file of its own, and reports an amifuse fork installed instead of the upstream packages or next to them. Upstream amitools 0.9.1 provides Machine.from_name, which the forks were needed for.
CI sets CI_SUFFIX to -pr<n>.<hash> in a pull request, -master.<hash> on a master push and -ci.<hash> in a manual run, with the short hash of the built commit. It replaces the version suffix of the archive and of every component, ptable.library and lsptres from the submodule included, so no CI build carries the name of a release. The jobs build the head commit of a pull request instead of the merge commit GitHub makes for it, so the hash is one that git log shows. The dist and release artifacts are named by the archive's version. .version-stamp holds every version, not only the driver's, and the automount include, the tools and the guides depend on it, so a build with another CI_SUFFIX rebuilds whatever carries a version. components.sh ignores CI_SUFFIX when it compares with the previous release.
LhA on the Amiga sets the protection bits from the file modes stored in the archive, which came from whatever the toolchain wrote. The stage rule sets every file to 0644 and the tools, devices and libraries to 0755. The CI package job checks the unpacked archive for it instead of setting the modes itself.
P_TOOL from ptable's common.inc sets e on the copy in C:, which copyfiles would take over from the source.
AROS OpenDevice marks the request NT_REPLYMSG, and AROS WaitIO Remove()s an NT_REPLYMSG request even when IOF_QUICK is set. When the device was opened with no card in the slot, the WaitIO at card insertion ran on a request that had never been sent: its node links were zero, so the Remove() wrote zero over ExecBase at address 4 and the system froze. The request now points its node links at itself after OpenDevice, as a finished request whose Remove() only writes into the request. It keeps the type NT_REPLYMSG because AROS timer AbortIO removes every request of another type from its timer list.
An SD-to-CF adapter that is not ready yet drops IDENTIFY: it shows BSY for a moment and then stays ready without DRQ, ERR or DF. On an IceDrake under ApolloOS the command came soon enough after the reset to be dropped, and the identification ran into its 2 s deadline. _IDSend sends the command and waits through _IDWait, which now also returns when it reads the card ready without an answer twice in a row, 40 ms apart. _IDSend then sends the same command again, within the same deadline. _GetIDEID and _ReadIdentify both use it. The full build logs each resend.
The sizes had grown past the listed ones. Whole KB stay right through small changes.
_IDWait took any read without BSY as the card ready without an answer. A card that drops DRDY while it works was sent IDENTIFY again, which _IDECmd then refused, and the identification failed at once instead of waiting for the deadline. The first read also came straight after the command and could still show the status from before it. Only reads with DRDY set now count, and the first read after the command does not.
cardout and cardin now take the card out of the slot and put it back through uaelib function 120 of the FS-UAE in the amiga-fsuae images, so the slot stays empty until cardin. On an FS-UAE without it they fail, as the Gayle disable bit they used before only drops card detect until card.resource clears it again. New scenarios that need the empty slot: - late_insert: the driver starts with no card and the RDB card arrives later. With the driver from before "cfd: leave the timer request finished after OpenDevice" it hangs on AROS and ApolloOS. - swap_keep, swap_in_use, swap_static_default, swap_static_keep and swap_partial: the UNMOUNT and UNMOUNT_STATIC policies, which were planned only. Hand mounts start their handler before the card arrives, as the automount waits only for a running one. An OS profile can now skip scenarios with a reason; AmigaOS 3.1 skips swap_partial, as FFS 40 refuses ACTION_DIE. On AROS and ApolloOS, rdb_swap and swap_partial need an afs that clears dn_Task when it accepts ACTION_DIE, which the amiga-fsuae images bring.
With GH_TOKEN set, run.py takes fat95, lsfsres and dd from the package of the newest successful fat95 CI run (fat95_ci.py) instead of the release, and make test-integration passes GH_TOKEN into the image. AROS and ApolloOS need a fat95 newer than the last release, so their FAT scenarios run again; fat95_min, which skipped them, is gone. The CI sets GH_TOKEN from the secret FAT95_ACTIONS_READ, a token that reads the Actions of pulchart/fat95, as artifacts need one even from a public repository. Without a token fat95 comes from the release.
The integration tests cover AROS, ApolloOS and AmigaOS 3.1 and 3.2.3, as the release notes say, so 3.2.3 alone in the requirements no longer tells what is tested.
make test-integration starts the image of every OS in IT_OS at once, each writing to IT_WORK/<os>.log, and prints the logs in order when all are done. run.py holds a lock on build/deps while it fetches and unpacks fat95, lsfsres, dd and PFS3, as the runs share that directory.
…d A600 profiles New scenarios: - pull_io: the card leaves while a 32 MB file is written to CF0, then the swap checks. - swap_loop: six swaps, and the free memory after the last four is within 1 KB of the free memory before them. - swap_other: while the slot is empty the host writes another card over the image; CF0 then shows that card's payload and takes a write. - sram: an SRAM card (FS-UAE controller scsram) is refused at the CIS gate and nothing mounts. - big: a 5 GB card whose FAT32 partition starts past 4 GB mounts, reads and writes. OS profiles take model and tier. 3.2.3-a600 and 3.1-a600 run the AmigaOS images as an A600 with a 68000, with the image A600 ROM and the 68000 builds of the driver, ptable.library, fat95 and PFS3. The A1200 profiles are 3.2.3-a1200 and 3.1-a1200 now.
FS-UAE writes the hard file through a stdio buffer and flushes it only on a clean exit. Stopping the whole process group at once let FS-UAE go down with its X connection under host load, so the last write never reached the image. Now FS-UAE gets SIGTERM alone first and the rest of the group follows once it has exited.
rdb_in_use holds a file open on the FFS partition of the RDB card: the first removal keeps CFF absent, the insert serves it again and the handle reads the file whole, and the removal after the file is closed unmounts CFF. rdb_release_out closes the file while the card is out. Both are skipped on AmigaOS, as FFS 40 in 3.1 refuses ACTION_DIE and FFS 47 in 3.2.3 accepts it with the file open and exits.
The line went to a buffer that is written only when holdfile exits. When the handle hangs, as on a handler that has gone, holdfile never exits and the line never reached the log, so it did not show whether the file had been opened at all.
make test-integration without IT_OS now runs the AmigaOS 3.1 and 3.2.3 profiles as A1200 and A600 too, not only AROS and ApolloOS. CI keeps its own matrix of AROS and ApolloOS.
The serial log interleaves the lines of the device and the automount worker character by character, so "[CFD] CIS gate" came out split by a line of the worker and the check failed although the card was refused. The reject line alone is printed only on that path.
pulchart
force-pushed
the
wip/jpu/next
branch
from
November 27, 2026 13:39
3311a00 to
a08539c
Compare
pulchart
marked this pull request as ready for review
November 27, 2026 13:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.