Commit Graph
1096 Commits
Author SHA1 Message Date
Thomas Durieux a4f65e7d30 Merge pull request #981 from tdurieux/fix/ci-tests-lint
fix(ci): stop the test job hanging, fix lint, stale tests and a reconnect UI bug
2026-11-29 00:42:46 -08:00
Thomas DurieuxandClaude Opus 5.5 14eb4a5df8 fix(ui): show a failed reconnection instead of the old source's preview
Reconnecting cleared the source but left the previous source's debounced
preview pending, so previewStatus stayed "loading" and the preview pane
showed "Updating the anonymized preview…" over the reconnection error
until that timer fired. Whether the error was visible depended on timer
order, which is why the Vue test failed in CI but passed locally.

Cancel pending previews and reset the preview file on reconnect, as
urlSelected already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 08:05:14 +00:00
Thomas DurieuxandClaude Opus 5.5 c659bf81a7 test: detect structured streamer startup and stop children on timeout
The streamer now logs {"event":"streamer_started"} instead of the text
"streamer started", so readiness never resolved, every lifecycle test
timed out, and the forked streamers were never killed. Their IPC
channels kept mocha alive until GitHub cancelled the job after hours.

Parse the JSON log lines for the event, and reject readiness before the
mocha timeout so each test's finally block always stops its child.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 07:54:00 +00:00
Thomas DurieuxandClaude Opus 5.5 7bc4475b02 test: update tests left stale by logging and metadata changes
- large-repository-tree: queued jobs now carry a logJobId trace id
  (structured logging); assert it instead of an exact job payload.
- repository-activity: FileModel.exists() is chained with .hint() since
  #951; stub it with a query-like object.
- performance-integration: staged markers are cleared through
  File.collection.updateMany since #951, so the old Model.updateMany stub
  never injected the interruption.
- performance-worker: workers report fixed codes only, so a regex
  timeout surfaces as anonymization_deadline_exceeded; the elapsed bound
  still proves the 1s regex deadline applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 07:54:00 +00:00
Thomas DurieuxandClaude Opus 5.5 23384dad92 fix: translate streamer and cache error codes
streamer_upstream_error and streamer_unreachable reach the browser from
AnonymizedFile when the streamer fails, and had no message. cache_miss is
an internal cache-only probe result, but the error-code coverage test
requires every backend code to have a translation. Rebuild the bundle,
which embeds the locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 07:54:00 +00:00
Thomas DurieuxandClaude Opus 5.5 aeb052da36 test: import timers explicitly to satisfy no-undef
The test ESLint config does not declare timer globals. Import setTimeout
from node:timers (callbacks) or node:timers/promises (awaited delay), as
the rest of the suite does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 07:54:00 +00:00
Thomas Durieux 0640d741f1 Merge pull request #980 from tdurieux/fix/cdn-miss-classification
fix: report a deleted source repo as repo_not_found, not token_expired
2026-11-28 14:41:01 -08:00
Thomas DurieuxandClaude Opus 5.5 f02999e774 fix: report a jsDelivr 404 as repo_not_found, not token_expired
Without owner access, a jsDelivr 404 was sent to the GitHub API probe,
which cannot run for the CDN token and failed with token_expired. The
path comes from the stored tree of a pinned commit, so a CDN 404 means
the repository is no longer public.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:50:12 +00:00
Thomas Durieux 28b154b0eb Merge pull request #978 from tdurieux/fix/remove-shared-token-fallback
fix: stop using the shared GitHub token; serve public files via jsDelivr
2026-11-28 13:17:54 -08:00
Thomas DurieuxandClaude Opus 5.5 5b350aaebe fix: keep auto-update repos readable and refuse LFS pointers from jsDelivr
Without owner access, a reviewer visit to an auto-update repository tried
a GitHub API refresh and failed with token_expired; it now skips the
refresh and serves the stored tree. jsDelivr returns Git LFS pointers,
which match their blob SHA, so they are now refused like on the raw path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:17:27 +00:00
Thomas Durieux 7156e658bc Merge pull request #979 from tdurieux/fix/ui-regressions
fix(ui): regressions from the PRs merged since #949
2026-11-28 12:41:13 -08:00
Thomas DurieuxandClaude Opus 5.5 ba15d3d4e0 fix(ui): don't double the picker's rule above the pager
Rows draw their divider on top, so the row cut by the scroll box no longer
stacks its bottom rule on the pager's top rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:28:20 +00:00
Thomas DurieuxandClaude Opus 5.5 14694e9242 test(ui): click Expand preview, not the preview's Files toggle
"keeps all settings and the live preview visible in the split workspace"
clicked the first .reviewer-preview .rp-open. Since #950 the caption also
has a "Files" button with that class, which toggles the preview's file
tree, so preview-expanded never turned on. The UI behaves as intended; the
test now targets .rp-open.is-toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:17:34 +00:00
Thomas DurieuxandClaude Opus 5.5 2633fadba7 fix(admin): sit the Errors source tabs on the toolbar rule
The Central logs / Application history tabs (#957, #959) were centered in
a toolbar sized by the two-line health strip beside them, so their
underline floated ~10px above the rule. On desktop the toolbar now aligns
to the bottom and the active underline overlaps the rule, like the other
tab bars. Phones keep their stacked layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:17:34 +00:00
Thomas DurieuxandClaude Opus 5.5 48a246222e fix(admin): keep the admin tabs on one row and give Emails its own icon
#952 and #953 added Billing and Emails to the admin tabs. From 768px to
~860px the eight tabs no longer fit, so Errors wrapped onto a second row
under the others. In that range the tabs now drop their icons, as on
phones, and stay on one row (scrolling, not wrapping, if still too wide).

Emails reused the Queues list icon; it now has an envelope (ui-icon-mail).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:17:18 +00:00
Thomas DurieuxandClaude Opus 5.5 6c167a660e fix(ui): let the README fill the anonymize preview pane
#950 reuses the explorer in "What reviewers will see". The reading layout
keeps the reviewer page's 210px outline rail from 1200px up, sized on the
viewport, so in the ~500px side-by-side pane the README was squeezed into a
230-270px column next to an empty rail and code blocks were clipped.

The pane rule that should hide the file meta and Symbols was an @container
query; clean-css 4 drops @container blocks, so it never reached all.min.css
(the 1024px header overflowed). Both now key on the layout state instead:
outside the expanded preview the README is one full-width column with no
outline, and the meta and Symbols are hidden below a 1700px viewport, where
the pane stays under 700px. The reviewer page is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:16:51 +00:00
Thomas DurieuxandClaude Opus 5.5 4e10e6662d feat: serve public files through jsDelivr when the owner has no GitHub access
Instead of failing, repositories whose owners have no usable credential read
files from jsDelivr at the pinned commit, and archives from codeload. Neither
needs a token or spends GitHub API quota, and neither serves private content.
The shared cache still verifies every file against its Git blob SHA. Calls that
need the GitHub API (tree listing, refresh, metadata) still return
token_expired, and a jsDelivr read does not clear the owner's access alert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:14:07 +00:00
Thomas DurieuxandClaude Opus 5.5 341b0cc973 fix: stop falling back to the shared GitHub token
When a repository, gist or pull request owner had no usable GitHub
credential, content was fetched with the operator's GITHUB_TOKEN. That token
shares one rate limit with its account, so these fallbacks exhausted it and
made unrelated requests wait and time out. Owners now get token_expired (401),
which already asks them to renew their connection, and the server no longer
reads GITHUB_TOKEN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:35:32 +00:00
Thomas Durieux 62c3bf1daf Merge pull request #977 from tdurieux/feat/billing-route-labels
feat(logging): make the checkout funnel visible in logs
2026-11-28 18:54:38 +00:00
Thomas DurieuxandClaude Opus 5.5 4099953d8a feat(logging): label billing routes and checkout outcomes
Billing API calls and Stripe return pages were logged as route "other", so
the purchase funnel could only be read from Stripe. Give them fixed labels in
the app, Nginx and the collector allowlist, and record the ?billing= outcome
(success, cancelled, portal) on edge requests. Only fixed values are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 18:30:40 +00:00
Thomas Durieux d34df81c8c Merge pull request #976 from tdurieux/fix/zip-worker-diagnostics
fix(logging): explain ZIP and worker failures and memory pressure
2026-11-20 17:53:09 -08:00
Thomas Durieux b284bfb4f9 fix(logging): retain safe ZIP and worker failure reasons 2026-11-19 15:04:03 +00:00
Thomas Durieux 7841201ad1 Merge pull request #975 from tdurieux/fix/admin-billing-consistency
fix(admin): make billing sales consistent and show revenue per sale
2026-11-16 17:11:48 +01:00
Thomas DurieuxandClaude Opus 5.5 1e99cda5e0 fix: make the admin billing tab count sales consistently and show amounts
- The subscriptions list shows one row per sale, grouped with the same
  stages as the summary: a paper pack is one "Paper pack" row with its
  parts on a second line. Filters, state tabs, sort and pagination count
  sales. A new "Started" filter matches the summary periods.
- N days now draw N buckets ending today (12 months: 52 weeks), and the
  tiles count from the same start.
- One family vocabulary: Subscriptions, Repository add-ons, Conferences in
  the legend, the By-plan grouping and the list.
- Cancelling folds into "Renews / ends", revocation into "Status"; rows
  have one height. Names and repository ids use proportional figures,
  since Inter's tabular figures widen hyphens.
- New Amount column (cached Stripe list price, per period for
  subscriptions, once per pack). Chart tooltips show count and revenue
  per family and the total per currency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:28:19 +00:00
Thomas Durieux 982a778bdf Merge pull request #974 from tdurieux/fix/quota-storage-errors
fix: distinguish quota limits and increase author storage
2026-11-15 19:56:27 +01:00
Thomas Durieux 9a20ad1cf8 fix: distinguish quota limits and increase author storage 2026-11-15 18:47:47 +00:00
Thomas Durieux 128a7366b7 Merge pull request #972 from tdurieux/feat/operational-alerts-incidents
feat: add operational incident evidence and recovering alerts
2026-11-15 16:28:02 +01:00
Thomas Durieux 11f2bb31d8 Merge pull request #971 from tdurieux/fix/grafana-operations-clarity
fix: make Grafana operations understandable and query-correct
2026-11-15 16:27:51 +01:00
Thomas Durieux bc7afdd906 Merge pull request #970 from tdurieux/feat/operational-logging-evidence
fix: explain interrupted requests and account for overlapping latency
2026-11-15 16:27:40 +01:00
Thomas Durieux 55eb8b3e09 fix: preserve incidents when optional baseline lookup fails 2026-11-15 13:55:38 +00:00
Thomas Durieux d99a9587f7 fix: retain loss evidence and fail interrupted deployments 2026-11-15 13:52:05 +00:00
Thomas Durieux ba159878b4 feat: show latency by API endpoint and method 2026-11-15 13:50:03 +00:00
Thomas Durieux 0f9d8c657a feat: add operational incident evidence and recovering alerts 2026-11-15 13:45:38 +00:00
Thomas Durieux a4f441f097 fix: record cached reader failures before pipeline teardown 2026-11-15 13:39:17 +00:00
Thomas Durieux 42494debb9 fix: preserve local stream failure provenance 2026-11-15 13:36:34 +00:00
Thomas Durieux 87882c5a4b fix: use datasource-native regex variable interpolation 2026-11-15 13:36:09 +00:00
Thomas Durieux 7f3cf71bc3 fix: make Grafana operations understandable and query-correct 2026-11-15 13:34:03 +00:00
Thomas Durieux d2e3954d21 fix: explain interrupted requests and account for overlapping latency 2026-11-15 13:31:16 +00:00
Thomas Durieux 1e617d2df0 Merge pull request #969 from tdurieux/fix/log-actual-request-paths
fix: retain actual anonymous request paths across outcomes
2026-11-15 01:16:14 +01:00
Thomas Durieux 1723f5e927 fix: require anonymous endpoint methods for logged paths 2026-11-15 00:14:01 +00:00
Thomas Durieux 7d044525ce fix: exclude source repository lookups from captured paths 2026-11-15 00:08:12 +00:00
Thomas Durieux 953767b2cd fix: retain actual anonymous request paths across outcomes 2026-11-15 00:01:21 +00:00
Thomas Durieux b54cf72bf8 Merge pull request #968 from tdurieux/fix/source-failure-classification
fix: distinguish source outages and throttling from missing repositories
2026-11-15 00:48:22 +01:00
Thomas Durieux c2d56895ad Merge pull request #966 from tdurieux/fix/anonymize-source-errors
fix(anonymize): one message and one next step when a source fails to load
2026-11-15 00:48:10 +01:00
Thomas Durieux fab574d556 Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:45:58 +00:00
Thomas Durieux 318a1f9984 Show source reconnection failures after successful metadata loads 2026-11-14 23:44:59 +00:00
Thomas Durieux 8e1bbffbe3 Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/app.js
#	public/script/vendor.min.js
2026-11-14 23:40:39 +00:00
Thomas Durieux c591306a33 fix: offer account reconnection for expired source authorization 2026-11-14 23:39:24 +00:00
Thomas Durieux 5c2c95ed8a Merge branch 'integrate/source-errors' into fix/source-failure-classification
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-14 23:36:24 +00:00
Thomas Durieux 1dfd898aa6 fix: retain source access actions when edit repair is unavailable 2026-11-14 23:35:28 +00:00