Skip to content

osquery/runtime: fix osqueryinstance's WithStartFunc - #2806

Open
brhoades wants to merge 1 commit into
kolide:mainfrom
brhoades:billy/fix-osquery-instance-flake-startfunc
Open

osquery/runtime: fix osqueryinstance's WithStartFunc#2806
brhoades wants to merge 1 commit into
kolide:mainfrom
brhoades:billy/fix-osquery-instance-flake-startfunc

Conversation

@brhoades

@brhoades brhoades commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

WithStartFunc doesn't work. We always clobber it with a default. It's only used by tests.

I have stared at this file, neck deep in a refactor, for over a day. I don't know if this had a negative effect on the sole test that used it, TestOsquerySlowStart, since it passed. It clearly couldn't do what it was trying to.

It upset me when I finally saw it, so it's worth fixing 👍.

I stared at this for over a full work day and only just now caught it. This is one of the reasons
TestRestart flakes often... we discard the startFunc that should delay starting.
@brhoades
brhoades marked this pull request as ready for review August 28, 2026 21:28
@brhoades
brhoades enabled auto-merge August 28, 2026 21:28
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