test: DELIBERATE BREAK, expected red, reverted next (#8296)
release / web (push) Successful in 1m59s
release / go (push) Failing after 2m20s
release / govulncheck (push) Successful in 22s
release / integration (push) Failing after 3m59s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m54s
release / android (push) Canceled after 3m37s
release / web (push) Successful in 1m59s
release / go (push) Failing after 2m20s
release / govulncheck (push) Successful in 22s
release / integration (push) Failing after 3m59s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m54s
release / android (push) Canceled after 3m37s
Seven behaviours broken, each aimed at one rewritten library test that must fail: - moved.go: an ambiguous match adopts the first candidate -> TestAdoptMovedTrack - reconcile.go: an empty root passes the mount check -> TestReconcileMissing_RefusesWhenAVolumeLooksAbsent - id3v2genre.go: whole-tag unsynchronisation is not undone -> TestReadID3v2GenreValues - mbids.go: no Vorbis MUSICBRAINZ_TRACKID fallback for the recording -> TestReadTagMBIDs - duplicate_resolve.go: rip and clean notes swapped -> TestResolveDuplicates_LinksCopiesAcrossReleasesAndRemovesNothing_Integration - stage_publisher.go: Flush keeps the tick count -> TestStagePublisher_FlushesEveryNTicksAndOnFlush - trigger.go: a stale run is never reaped -> TestTryStartScan_StartsUnlessAFreshScanIsRunning Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -192,7 +192,7 @@ func (s *Scanner) verifyRootsPresent() error {
|
||||
// An empty root is the signature of a mount point with nothing mounted
|
||||
// on it. `os.Stat` succeeds on the bare directory, so this is the only
|
||||
// cheap way to tell the two apart.
|
||||
if len(entries) == 0 {
|
||||
if len(entries) == 0 && root == "" { // DELIBERATE BREAK
|
||||
return fmt.Errorf("scan root %q is empty; refusing to reconcile", root)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user