Skip to content

[IMPROVEMENT] Easier failure triage in the web console - #1283

Merged
canihavesomecoffee merged 4 commits into
CCExtractor:masterfrom
pulk17:diff-highlighting
Nov 25, 2026
Merged

canihavesomecoffee merged 4 commits into
CCExtractor:masterfrom
pulk17:diff-highlighting

Conversation

@pulk17

@pulk17 pulk17 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Please prefix your pull request with one of the following: [FEATURE] [FIX] [IMPROVEMENT].

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

My familiarity with the project is as follows (check one):

  • I have never used the project.
  • I have used the project briefly.
  • I have used the project extensively, but have not contributed previously.
  • I am an active contributor to the project.

Three changes that make it easier to go through failing tests in the console.

1. See what actually changed in a diff

Most caption failures differ by a single space or one frame of timing. The diff showed every old line in red, then every new line in green, so those were hard to spot. Long lines also spilled out of the box.

  • Each old line now sits directly above its new line, and only the part that changed is highlighted.
  • Long lines wrap inside the box.
  • The Playback tab marks captions whose text or timing differs, and shows exact milliseconds where the timing is off.

2. Promote to baseline from any run

The Promote to baseline button was only on Home, which shows the 3 latest failing runs and 5 tests per category. Older runs had no button.

  • It now sits in the diff drawer, next to Diff and Playback. The drawer opens from Home, from any run's test results, and from a run's Artifacts.
  • It is still admin-only and still asks for confirmation. The dialog also points to "Add variant" for failures on a single platform.
  • The separate menu on Home is removed, since Home's diff button opens the same drawer.

3. Show the GitHub username on the Account page

The page said "Connected as @" with no name. The username was saved only once, when GitHub sends the user back after they connect, so if that lookup failed it stayed empty.

  • If the username is missing, the platform now asks GitHub again and saves it. The same lookup is used when checking who may run tests on a fork.
  • If GitHub still doesn't answer, the page says the name couldn't be read instead of showing "@".

Testing

  • Web: npm test (36 passing), npx tsc -b, npm run lint.
  • Python: new API tests for the username lookup, plus pycodestyle, isort and mypy. I couldn't run the backend test suite locally (it hangs on this machine), so please rely on CI for those.

Caption failures usually differ by one space or a single frame of timing,
which a block of red lines over a block of green lines hides. Pair each
removed line with the line that replaced it and mark only the tokens that
differ. Long lines now wrap inside the box instead of running past it.
The console diff gets the same treatment, labelled previous run / this run.

Playback flags cues whose text or timing differs from the same cue on the
other side, showing exact millisecond timings where they disagree.
Rows carry the position diffRows assigns them and segments their offset in
the line, so neither list is keyed by its render index. Replace the nested
ternary for the gutter sign with a lookup, and use an optional chain when
merging segments.
Promotion was only reachable from the overflow menu on Home's triage
cards, which list the three most recent failing runs and at most five
tests per category, so an older run or a longer list had no way in.

Move it into the diff drawer, where a failure is judged and which opens
from every run: Home, the run page's results and its artifacts. Same
admin-only button and the same confirm dialog; the dialog now points at
variants for single-platform differences. Home's rows reach it through
their diff button, so the separate menu there goes.
The account page printed "Connected as @" with nothing after it. The login
is stored once, by the OAuth callback, and if that lookup failed (or the
account was connected before the column existed) nothing filled it in
again; GET /auth/me/github returned the null as it was.

Add github_login_of(), which returns the stored login or asks GitHub for
it and keeps the answer, and use it in that endpoint and in the fork-run
permission check, which had its own copy of the same lookup. The page
says the account name could not be read instead of a bare "@" when GitHub
does not answer either.
@pulk17 pulk17 changed the title [IMPROVEMENT] Highlight what changed in the diff drawer [IMPROVEMENT] Easier failure triage in the web console Nov 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

@canihavesomecoffee
canihavesomecoffee merged commit 1908049 into CCExtractor:master Nov 25, 2026
6 checks passed
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.

2 participants