Skip to content

Add FreeBSD CI (verification run, do not merge) - #1

Closed
neilpang wants to merge 2 commits into
mainfrom
ci/freebsd-vmactions
Closed

Add FreeBSD CI (verification run, do not merge)#1
neilpang wants to merge 2 commits into
mainfrom
ci/freebsd-vmactions

Conversation

@neilpang

@neilpang neilpang commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Fork-internal run to verify before proposing upstream to trifectatechfoundation#1543.

Cirrus CI shut down on 2026-06-01, which removed the FreeBSD unit test
coverage. Run the same test command in a FreeBSD VM booted under QEMU/KVM
on a regular ubuntu-latest runner, keeping the skips .cirrus.yml carried.

The suite runs as an unprivileged user: src/su/context.rs notes that
invalid_shell is allowed to fail under root, and the VM logs in as root.
get_process_start_time compared a ProcessCreateTime against a value built
by destructuring SystemTime, which bypasses the newtype that keeps the two
clock bases apart. That is a no-op on Linux and fails deterministically on
FreeBSD, where kinfo_proc.ki_start is absolute wall clock while
CLOCK_BOOTTIME is an alias for the uptime clock.

Restore the cfg-aware ProcessCreateTime::now() helper removed in 62d1d30
and document why it cannot be folded into SystemTime::now(), which must
keep reading the monotonic clock (see trifectatechfoundation#1022).
@neilpang
neilpang force-pushed the ci/freebsd-vmactions branch from 126ab1d to 6079f0c Compare August 2, 2026 03:16
@neilpang

neilpang commented Aug 2, 2026

Copy link
Copy Markdown
Owner Author

Verification run only -- this existed to prove the workflow green on real GitHub Actions before proposing it upstream. The upstream PR is trifectatechfoundation#1663.

@neilpang neilpang closed this Aug 2, 2026
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