Skip to content

0.26.0: a second name for a file, and the requests to end counted (openkal 0.25) - #52

Merged
Sunrisepeak merged 6 commits into
mainfrom
feat/0.25.0
Nov 9, 2026
Merged

Sunrisepeak merged 6 commits into
mainfrom
feat/0.25.0

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Test plan

  • Old suite: CI run 42675266835 green at a5a9a86 (this package's tests and the specification branch's conformance suite, as they were).

  • New suite: CI run 42679067452 green at 4f3ae2e — the conformance suite through the pinned mtest engine (one case per interface, its observations within it), mcpp test 2026.11.9.1 keeping this package's runs in the mtest store, each job's report in its summary, one report over every job.

  • Tests ported to the mtest library: CI run 42690329548 green at 3333b8f. Every file under tests/ declares its cases as UTest objects with the assertions it had; a test that starts a copy of itself declares the copy as a child and starts it with child_command (openkal_0_22, openkal_0_23, conformance_spawn, sigpipe_not_passed_on, stop_word_take_over); the generated conformance_declarations test is a UTest. mcpplibs.mtest 0.5.2 is a dev-dependency; it reaches mcpplibs.os 0.4.3, whose ranges admit this package (0.26.0, standing for itself) and openkal 0.25.

  • After the switch to openkal = "0.25.0": CI run 42693750294 green at 586799e (each job substitutes the .spec checkout of the released specification for openkal). Also in this run: R1 wording (a directory refused before the call; two volumes from the kernel's EXDEV) and the stop handler's compare-and-exchange.

  • One grant added: openkal_0_23 grants /dev read-only to its confined copy, because mtest's entry runs in the copy before its errand and libc++'s std::random_device reads /dev/urandom (llvm job). /tmp stays read-only and /etc ungranted, so the assertions are unchanged.

…enkal 0.25)

- kal_fs_hard_link: linkat with no flags; KAL_FS_PROP_HARD_LINKS on the formats
  that store several names for one node; a directory is kal_err_is_directory and
  two volumes kal_err_not_supported, answered before the kernel is asked
- the stop word counts each request and skips zero on wrap
- openkal follows the specification's branch feat/0.25.0 until 0.25.0 is released
- the conformance suite runs through the pinned mtest engine (MTEST, set by
  .github/actions/mtest): one case per interface, its observations within it
- mcpp 2026.11.9.1: `mcpp test` keeps this package's runs in the mtest store
  (target/mtest), one case per test program
- each job's runs in its summary and as an artifact; one report over every job

The test programs stay programs of their own (protocol level 0): the mtest
library reaches mcpplibs.os, which depends on openkal and on this
implementation, so a dev-dependency on it would close a cycle through the
package under test.
Every test under tests/ declares its cases as mtest UTest objects, with
the same assertions as before. A test that starts a copy of itself
declares what the copy does as a child and starts it with child_command.
The generated declarations test is a UTest too. mcpplibs.mtest 0.5.2 is
a dev-dependency.
The copy begins in mtest's entry, which takes a seed from
std::random_device before the copy's errand runs; libc++ reads it from
/dev/urandom, and under Landlock with no grant for /dev the copy ended
before its errand (llvm job). The assertions are unchanged: /tmp stays
read-only and /etc ungranted.
…hange

The README and the comment said two volumes were answered before the
call; the kernel answers them with EXDEV, which is reported as
kal_err_not_supported, and only a directory is refused before the call.

The stop handler counts and skips zero in one compare-and-exchange. An
add followed by a fix-up at the wrap could lose a count when a second
handler ran between the two.
@Sunrisepeak
Sunrisepeak merged commit 0ff49ef into main Nov 9, 2026
3 checks passed
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