Skip to content

ci: speed up macOS job - #396

Open
hja-oss wants to merge 2 commits into
lsof-org:masterfrom
hja-oss:ci/macos-speedup
Open

hja-oss wants to merge 2 commits into
lsof-org:masterfrom
hja-oss:ci/macos-speedup

Conversation

@hja-oss

@hja-oss hja-oss commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Reduce the macOS CI runtime from 7+ minutes to 3+ minutes by avoiding unnecessary dependency installation, duplicate tests and slow hostname resolution.

@hja-oss hja-oss changed the title ci: speed up macOS job [WIP] ci: speed up macOS job Nov 15, 2026
@hja-oss

hja-oss commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

The changes seems to work, from 7 minutes to 3, but some changes need to be inspected with more detail.

On the workflows/build.yml:

  • removed pkg-config and groff from brew install, since pkgconf is preinstalled and groff was only needed for the man page
  • added --disable-manpages to both autotools ./configure calls so the build no longer needs groff
  • removed make check from the in-tree autotools step, because the dist step already runs the same test suite

At tests/case-23-multi-address-hostname.bash

  • limited the hostname lookup to 5 seconds (TBC) so a slow .local resolution skips instead of blocking for ~70 seconds

Skip on hostname lookup timeout without using partial results.
Bound lsof execution to 15 seconds and fail if it times out.
@hja-oss

hja-oss commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

I have updated the timeout handling and the test now explicitly skips if hostname resolution exceeds 5 seconds, without using partial results.
The actual lsof invocation also has a 15-second timeout and exceeding it kills and reaps the process and fails the test.

@jiegec up to you to consider this change valuable or not.

@hja-oss hja-oss changed the title [WIP] ci: speed up macOS job ci: speed up macOS job Nov 16, 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