~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/hydraulophone

An unofficial YouTube Music app for iPhone, iPad, and Mac.

0
0
main
93 lines · 5.9 KB Raw History
# Lyrics validation

The offline fixture supplies original, synthetic lyrics. `fixture-song-1` has
18 timed lines at ten-second intervals, including original word timings on
the first line. `fixture-song-2` has 24 untimed lines
to exercise the static reading and scroll layout. Neither fixture uses an
InnerTube request or copyrighted song text.

The UI test suite opens the fixture songs through the catalog and mini-player,
then checks the artwork/lyrics switch, the first timed line, manual scrolling
and Follow Along, the last static line, and accessibility text sizing. It does
not check timed highlighting while fixture playback is disabled by default.
The static fixture also checks that Follow Along is absent when there are no
timestamps. Two bounded tests add `-HydraulophoneLyricsPlaybackFixture`, which
creates a reusable 180-second silent PCM WAV in the app's temporary directory.
It uses the real player clock to seek into later timed lines and checks that the
next cue is highlighted and scrolled into view as playback advances. The flag
is available only in Debug builds and makes no network or account requests.
The artwork-switch test seeks to the first line and pauses for a screenshot
of word highlighting. Word interval boundaries and malformed timing fallbacks
are tested independently in Core.

Run the `LyricsUITests` class on an available iPhone Simulator after regenerating
the Xcode project. Also inspect the lyrics screen with VoiceOver and reduced
motion enabled. On a physical iPhone, verify lyrics continue to update during
background audio playback and after interruption, route change, and return to
foreground. Device behavior is outside the offline UI test's scope.

An opt-in authenticated protocol smoke check is available in Debug builds with
the `-HydraulophoneLyricsSmoke` launch argument. It waits for session restoration,
checks the restored current song when available, or searches once for
`Daft Punk Get Lucky` and checks at most the first two song results. It reports only outcome, request and line counts,
whether the result is synchronized, and a local synthetic cue-boundary check
as `lyrics_smoke` lines on the debug console. It neither plays media nor logs lyrics,
song metadata, account details, or raw responses. A missing authenticated
session or Offline Only mode skips the check. This live probe is opt-in and
must not be added to the default test suite.

Adding `-HydraulophoneLyricsReferenceSmoke` selects the single public
`E85` / `Don Toliver` / `OCTANE` / 154-second example from Better Lyrics'
official documentation and calls that provider directly. This verifies the
real Swift TTML parser without depending on the user's current song. It still
requires the restored app session and logs only status and structural counts.

## Recorded validation — 2026-09-24

- iOS 27 iPhone 18 Pro Simulator: 33 Core lyrics tests and seven view-model
  tests passed in `.build/lyrics-metrolist-core.xcresult`. Network tests use
  synthetic responses and make no external requests.
- The signed iPhone build passed in `.build/lyrics-metrolist-device.log`;
  strict Swift formatting and `git diff --check` passed. The final Better
  Lyrics uncached-response handling was separately verified by eight passing
  Swift package tests and included in the subsequent simulator/device builds.
- Artwork switching, manual Follow Along, static reading, track replacement,
  largest accessibility text size, and sheet swipe dismissal passed in the
  simulator. The artwork and largest-text screenshots were inspected.
- Final automatic-follow and largest-text checks passed in
  `.build/lyrics-metrolist-ui.xcresult`. The artwork test needed its pause
  query scoped to the visible control, then passed in
  `.build/lyrics-word-visual-final.xcresult`. Screenshots confirm a highlighted
  word, centered active line, readable wrapping, and no close button.
  The playback test observes the accepted seek position, then waits for the
  next cue to become current and centered without any manual scrolling.
- Authenticated InnerTube probes returned HTTP 400 for the mobile timed-lyrics
  request. Production follows the reviewed Metrolist source strategy:
  Better Lyrics, LRCLIB, then YouTube's web static lyrics. An initial exact
  LRCLIB lookup found no matching sampled track; the bounded search fallback
  is covered by offline tests. The Better Lyrics documentation example returned
  HTTP 200; the real Swift adapter parsed 36 synchronized lines, all 36 with
  word timings, in `.build/lyrics-better-reference-live.log`. This confirms
  the public cached path, not availability for every recording.
- The final signed iPhone build was installed successfully in
  `.build/lyrics-metrolist-device-install.log`. The diagnostic launch was
  blocked by the phone being locked. On-device timed lyrics, interruption,
  background/foreground behavior, and manual VoiceOver use remain unverified.

## Motion refinement — 2026-09-24

- Eight provider/parser tests and four focused UI tests passed in
  `.build/lyrics-motion.xcresult`, including automatic following, manual
  scrolling/resume, artwork switching, and largest accessibility text size.
- The final persistent-cover container passed the artwork round-trip check in
  `.build/lyrics-cover-motion.xcresult`. Frame-by-frame inspection of the
  offline recording `.build/lyrics-cover-motion.mp4` confirmed the same cover
  translates and shrinks into the header, then grows and returns on exit.
- Natural cue scrolling is 0.28 seconds; far seeks and resumed following
  move directly. Inactive rows skip playback-tick rendering, row scaling and
  word animations are removed, and edge overlays replace the full scroll mask.
  This is a code and visual check, not an Instruments frame-rate measurement.
- Cached Better Lyrics is tried first, then LRCLIB synchronized lyrics, then
  YouTube's static lyrics. Earlier external plain text is used only when
  YouTube has no usable text; missing Better Lyrics cache entries need no key
  prompt and automatically fall through.