Repository navigation
Conversation
TestSporedUnit_NoPrivateTmp scanned a hand-written list of two files and missed the two units cmd/app.go writes. Discover every spored.service file and every heredoc writing /etc/systemd/system/spored.service, fail on an empty or unparseable discovery, reject any truthy PrivateTmp=, and add TestSporedUnit_AfterNetworkOnline for the ordering #928 relies on. (#946)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #946.
TestSporedUnit_NoPrivateTmpchecked a fixed list (pkg/launcher/bootstrap.go,scripts/spored.service) and never saw the two unitscmd/app.gowrites (web-app and DCV paths). Per CLAUDE.md gate rule 4 it now discovers the set:spored.serviceand every heredoc that writes/etc/systemd/system/spored.serviceis a unit (4 found today: app.go x2, bootstrap.go, scripts/spored.service)PrivateTmp=(yes/1/on/true), not only the literalPrivateTmp=true; comment lines ignoredTestSporedUnit_AfterNetworkOnline: every unit must haveAfter=andWants=network-online.target(the Stopped instances: 'spawn status' SSHes to ::1 (localhost) and fails; compute from earlier runs is dropped after restart; stop message says TTL pauses but it doesn't #928 shutdown flush relies on it)TestDiscoverSporedUnits_FindsKnownEmittersis a floor on discovery so a regex that silently stops matching can't turn the gates into no-opsNo unit violated either rule, so no unit changed.
Watched it fail (reverts that compile)
PrivateTmp=trueadded to the DCV unit in cmd/app.go: new gate FAILS (spored unit at cmd/app.go:862: line 877 sets "PrivateTmp=true"); the old test against the same revert PASSES, which is the bug.After=network-online.targetremoved from the web-app unit:TestSporedUnit_AfterNetworkOnlineFAILS.cat <<'EOFSPORED' > /etc/systemd/system/spored.service: FAILS (unparseable emitter + discovery floor).found no spored systemd unit ... discovery is broken.Checks
make check: only failure is the known Docker-onlyTestGenerateWrapper_ChownFixesCrossUIDStickyUnlink_Docker(pkg/taskproto).make check-nested: all 9 nested modules clean.