Skip to content

Sync with upstream @hyperdx/app@2.47.0 on upstream's own toolchain - #11

Merged
mfroembgen merged 0 commit into
mainfrom
fork-sync/app-2.47.0
Nov 24, 2026
Merged

mfroembgen merged 0 commit into
mainfrom
fork-sync/app-2.47.0

Conversation

@mfroembgen

@mfroembgen mfroembgen commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

This puts the fork on upstream's latest release, @hyperdx/app@2.47.0 (041c19bc5), as four patch commits, and drops the Bun/Vinext runtime refactor. The fork now runs upstream's own Node, Next.js, Yarn and Jest toolchain. It supersedes #9, #10 and #8.

Don't merge this with the PR button. Once it's reviewed, main gets force-pushed to this branch with a lease, and that needs Marco's confirmation.

 041c19bc5  Release HyperDX (#3720)                                     @hyperdx/app@2.47.0
 af17cf122  fix: preserve JSON and Map search filter expressions        (was 116812978, now smaller)
 4f07ad999  feat: add WorkOS browser login and MCP OAuth                 (was f795119c8)
-           refactor: align fork runtime, tooling and dependencies      (a57253843, dropped)
 3ba4088b1  feat(mcp): add DISABLE_MCP_INSTRUCTIONS                      (was 086c676de, unchanged)
 79c1548a3  build: publish native fork images with one frontend build ID (replaces 47325049e)

What happened to each patch that was under review:

Patch Decision Why
JSON/Map filter fix Kept, smaller Upstream ClickHouse#3641 and ClickHouse#3642 now handle JSON filter keys and array paths, so the commit takes upstream's escaping. One problem is still open upstream: facet value queries read col.path.:String, which ClickHouse 26.10.3.7 returns as NULL for numeric and boolean JSON paths (toString() gives 42 and true). Numeric JSON facets and pinned fields still disappear without this commit. On 2.47.0 it also keeps pinned JSON facet keys in dot form so they match their pins, and it asks upstream's new getAllKeyValues for JSON paths in Map form, because that method drops the toString() form.
Runtime refactor Dropped (Marco's call) No deployment depends on it. Its rrweb memory fix only matters when browser RUM runs, and HDX_EXPORTER_ENABLED=false keeps the browser SDK from starting. Replaying it on 2.47.0 hit 97 conflicts, including upstream's switch from ESLint to oxlint and from Prettier to oxfmt.
Image packaging Kept, rewritten The consumers pull ghcr.io/mfroembgen/hyperdx, which only this workflow publishes, and upstream's image has no WorkOS. The new commit builds upstream's own Dockerfile on native runners. It no longer carries the Bun stages, the Go 1.27.3 builders or the shared-frontend Docker stage.

Upstream 2.46.0 → 2.47.0 (44 commits), notable items:

2.47.0 adaptations:

File Change
yarn.lock, packages/api/jest*.config.js Lock @workos-inc/node 12.0.0 and jose 6.2.14. Jest transpiles ESM-only jose.
packages/api/src/utils/workosSessionStore.ts getWorkosSessionCollection types connect-mongo's string session IDs. It is one deliberate type assertion, so api's oxlint ceiling goes from 302 to 303. The Mongo replica tests already imported it.
packages/api/src/routers/api/workosAuth.ts Serves the protected-resource metadata at both public discovery paths. Next's API proxy passes the original URL through, so the rewrites alone returned 404.
packages/api/src/telemetry.ts instrumentation-http 0.223 records the stable url.* attributes, not http.target. Its redactedQueryParams lists now cover the OAuth and token query keys, and the hook only scrubs setup tokens from url.path.
packages/api/src/routers/api/clickhouseProxy.ts Deletes the four credential headers by name.
WorkOS and filter tests Expect upstream's isVirtual access-key guard and use shoehorn mocks.
packages/app/next.config.mjs, docker/hyperdx/Dockerfile NEXT_BUILD_ID sets the build ID, so both architectures serve one build.
.github/workflows/main.yml, e2e-tests.yml Main also runs on ai/release-* pushes. E2E_TIMEOUT_MINUTES (set to 25 on the fork) gives the E2E shards a time budget on 4-vCPU runners, next to upstream's RUNNER_E2E and E2E_WORKERS variables.

Evidence

  • Before: on ClickHouse 26.10.3.7, SELECT j.integer.:String, toString(j.integer) over {"integer":42,"flag":true} returns NULL, '42', and the boolean path returns NULL, 'true'. Through the Next proxy, the two public MCP discovery URLs returned 404, as both reviewers reproduced.
    After: toString() rendering in metadata and filters. Express answers all three discovery paths. Supertest covers each, and the image smoke fetches both public URLs through port 8080.
  • Locally with Node 22.23.4 and Yarn 4.13: ci:lint passes for common-utils, api and app. Unit tests pass: common-utils 3440, api 1695, app 5845.
  • Before: at a25898bd3, the fork's native-json-filters E2E failed. The pinned ResourceAttributesJSON.integer field never appeared, and after that was fixed, "Load more" returned no values.
    After: all four native-json-filters cases pass. A new unit test fails while getAllKeyValues receives the toString() form.
  • CI on 79c1548a3, all green. Main passed lint, unit, integration shards 1-4, the ClickHouse bundle, the otel collector checks and E2E shards 1-4 (shard 3: 122 passed in 11.1 min). The fork image run built native AMD64 and ARM64 images, and their frontend builds are byte-identical. Each image reaches /api/ready and serves both MCP discovery URLs and a frontend chunk through port 8080, with MongoDB and a WorkOS configuration.
  • Review: two independent reviewers over six rounds (later rounds covered the fixes CI found), both approving 79c1548a3, plus a correctness review and a security review. Every blocker and should is fixed. Declined: quoted JSON segment names that contain [n] or backticks (rare and present before this rebase), Next server telemetry recording the callback's code and state (it stays off while HDX_EXPORTER_ENABLED=false, and the code only works with the server-held PKCE verifier), and the pre-existing WorkOS refresh race noted below.

Merge Danger

Door: two-way

Landing this means force-pushing main from 97ee5727d7f0a252eace6f6db9cdf239f7cfa028 to 79c1548a369deb6c0ec574452db699dac8c44458 with a lease. The old head stays on backup/main-2.45.0.

Blast Radius: runtime

No image is published until someone runs fork-image.yml with publish=true. Consumers keep 2.43.1 until their values change. The next image moves production from Bun/Vinext to Node/Next, with upstream's Express 4, Zod 3 and Mongoose. Verify WorkOS login, MCP OAuth and the reconcile Jobs in SDLC Marketing before Operations and Production Marketing. Upstream's release, nightly, downstream-push and AI-review workflows are no longer scoped away from the fork. Disable them on the fork before main moves.

Follow-up, already present in deployed images: when two requests refresh one WorkOS session at once, the losing request's invalid_grant can delete the winner's new seal, which signs the user out.

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.

1 participant