Skip to content

chore: normalize test labels to the topic: behavior convention#365

Merged
octalide merged 1 commit into
devfrom
chore/364-test-labels
Jul 4, 2026
Merged

chore: normalize test labels to the topic: behavior convention#365
octalide merged 1 commit into
devfrom
chore/364-test-labels

Conversation

@octalide

@octalide octalide commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Normalizes the handful of tests still using the compiler's fully-qualified module.path.symbol:behavior label style to the shorter "topic: behavior" convention used throughout mach-std.

Topics chosen to match each module's existing labels:

Before After
std.process.exec.spawn_redirected:pipes_child_stdout exec: spawn_redirected pipes child stdout
std.process.exec.wait_any:reaps_each_child_once exec: wait_any reaps each child once
std.process.exec.wait_any:errs_with_no_children exec: wait_any errs with no children
std.system.os.cpu_count:at_least_one os: cpu_count at least one
log functions: nil message does not crash log: nil message does not crash

The exec: and os: topics mirror how neighboring tests abbreviate their module to its leaf name; log: tightens the two-word log functions topic to match the single-token set_level: topic used by the other log tests.

Only label strings change. Test bodies and all other code are untouched, and labels are not referenced by code, so renaming is safe. mach build . and mach test . pass identically before and after (620 passed, 0 failed, 620 total).

Closes #364

Convert the few tests using the compiler's fully-qualified
module.path.symbol:behavior label style to the shorter topic: behavior
form used throughout mach-std. Only label strings change; test bodies
and other code are untouched.

Closes #364
@octalide octalide marked this pull request as ready for review July 4, 2026 01:11
@octalide octalide merged commit 14a464c into dev Jul 4, 2026
3 checks passed
@octalide octalide deleted the chore/364-test-labels branch July 4, 2026 01:11
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.

chore: normalize test labels to the library topic: behavior convention

1 participant