Skip to content

feat(buck2): build otel-scrape natively - #1081

Draft
schickling wants to merge 3 commits into
schickling/2026-08-13-buck2-megarepo-productfrom
schickling/2026-08-13-buck2-otel-product
Draft

feat(buck2): build otel-scrape natively#1081
schickling wants to merge 3 commits into
schickling/2026-08-13-buck2-megarepo-productfrom
schickling/2026-08-13-buck2-otel-product

Conversation

@schickling

@schickling schickling commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Problem

otel-scrape still needs a real fine-grained native Rust build that reuses the shared Cargo authority and crosses the strict Buck-to-Nix admission seam.

Goal

Build, test, package, and admit the otel-scrape CLI through native Buck2 targets on the final shared foundation and TypeScript vertical slice.

Decisions

  • Keep the root Cargo workspace and lockfile as dependency-resolution authority.
  • Generate the Reindeer graph with Cargo-derived normal/dev dependency scopes.
  • Expose independently cacheable library, binary, unit-test, and product targets.
  • Use Nix-authored conventional Prelude Rust/C++ toolchains with semantic identity in action keys.
  • Produce a deterministic Python-free static product and admit it through static-ELF inspection.

Verification

The restack commit 44a0895617eebbce871a534d59a5591f7e179f37 has tree c71807cec820c6a9af422a22abd4538992ed06df, byte-identical to the prior #1081 tip. Focused generator freshness, benchmark RED/unit controls, JavaScript and shell syntax, Nix parsing, and diff hygiene were green before the ancestry-only restack. Fresh exact-head CI owns the native build/test, import/runtime E2E, and invalidation benchmark.

Complexity

Most additional surface is the generated Reindeer dependency graph. Handwritten complexity stays in the reusable Rust product rule, toolchain binding, and admission E2E.

Concerns

Execution remains local x86_64 Linux; remote cache and execution are intentionally disabled.

Friction & bottlenecks

The heavy exact build and benchmark were delegated to self-hosted CI because local disk was below the repository admission floor during implementation.

Follow-ups

Configured cross-host platforms, remote trust/execution, and production activation remain outside this PR.

References

Part of #1050 and #1063. Native stack #1083, position 3 of 3. Base: #1080. Supersedes stale prototype #1059.

@schickling
schickling force-pushed the schickling/2026-08-13-buck2-otel-product branch 2 times, most recently from 71db2fe to 33a605b Compare August 13, 2026 02:32
@schickling
schickling force-pushed the schickling/2026-08-13-buck2-otel-product branch from e93e4cd to d34a6d9 Compare August 13, 2026 02:41
@schickling
schickling force-pushed the schickling/2026-08-13-buck2-otel-product branch 2 times, most recently from 197adf2 to c52738d Compare August 13, 2026 02:48
@schickling
schickling force-pushed the schickling/2026-08-13-buck2-otel-product branch 2 times, most recently from 059be69 to 1ad22ed Compare August 13, 2026 03:34
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

Storybook Previews

Subject Status Report Details Updated
react-inspector success react-inspector preview deployed Preview is ready 2026-08-13 08:37 UTC
effect-schema-form-aria success effect-schema-form-aria preview deployed Preview is ready 2026-08-13 08:37 UTC
effect-react success effect-react preview deployed Preview is ready 2026-08-13 08:37 UTC
notion-md success notion-md preview deployed Preview is ready 2026-08-13 08:37 UTC
notion-cli success notion-cli preview deployed Preview is ready 2026-08-13 08:37 UTC
genie success genie preview deployed Preview is ready 2026-08-13 08:37 UTC
notion-react success notion-react preview deployed Preview is ready 2026-08-13 08:37 UTC
tui-react success tui-react preview deployed Preview is ready 2026-08-13 08:37 UTC
megarepo success megarepo preview deployed Preview is ready 2026-08-13 08:37 UTC
Report history

PR 1081 · 2026-08-13 08:38 UTC

Subject Status Report Details Updated
react-inspector success react-inspector preview deployed Preview is ready 2026-08-13 08:37 UTC
effect-schema-form-aria success effect-schema-form-aria preview deployed Preview is ready 2026-08-13 08:37 UTC
effect-react success effect-react preview deployed Preview is ready 2026-08-13 08:37 UTC
notion-md success notion-md preview deployed Preview is ready 2026-08-13 08:37 UTC
notion-cli success notion-cli preview deployed Preview is ready 2026-08-13 08:37 UTC
genie success genie preview deployed Preview is ready 2026-08-13 08:37 UTC
notion-react success notion-react preview deployed Preview is ready 2026-08-13 08:37 UTC
tui-react success tui-react preview deployed Preview is ready 2026-08-13 08:37 UTC
megarepo success megarepo preview deployed Preview is ready 2026-08-13 08:37 UTC

PR 1081 · 2026-08-13 08:31 UTC

Subject Status Report Details Updated
effect-schema-form-aria success effect-schema-form-aria preview deployed Preview is ready 2026-08-13 08:29 UTC
effect-react success effect-react preview deployed Preview is ready 2026-08-13 08:29 UTC
react-inspector success react-inspector preview deployed Preview is ready 2026-08-13 08:29 UTC
genie success genie preview deployed Preview is ready 2026-08-13 08:29 UTC
notion-cli success notion-cli preview deployed Preview is ready 2026-08-13 08:29 UTC
notion-md success notion-md preview deployed Preview is ready 2026-08-13 08:29 UTC
notion-react success notion-react preview deployed Preview is ready 2026-08-13 08:29 UTC
tui-react success tui-react preview deployed Preview is ready 2026-08-13 08:29 UTC
megarepo success megarepo preview deployed Preview is ready 2026-08-13 08:29 UTC

PR 1081 · 2026-08-13 04:13 UTC

Subject Status Report Details Updated
effect-schema-form-aria success effect-schema-form-aria preview deployed Preview is ready 2026-08-13 04:12 UTC
react-inspector success react-inspector preview deployed Preview is ready 2026-08-13 04:12 UTC
effect-react success effect-react preview deployed Preview is ready 2026-08-13 04:12 UTC
notion-md success notion-md preview deployed Preview is ready 2026-08-13 04:12 UTC
notion-cli success notion-cli preview deployed Preview is ready 2026-08-13 04:12 UTC
genie success genie preview deployed Preview is ready 2026-08-13 04:12 UTC
tui-react success tui-react preview deployed Preview is ready 2026-08-13 04:12 UTC
notion-react success notion-react preview deployed Preview is ready 2026-08-13 04:12 UTC
megarepo success megarepo preview deployed Preview is ready 2026-08-13 04:12 UTC

PR 1081 · 2026-08-13 03:50 UTC

Subject Status Report Details Updated
effect-schema-form-aria success effect-schema-form-aria preview deployed Preview is ready 2026-08-13 03:49 UTC
react-inspector success react-inspector preview deployed Preview is ready 2026-08-13 03:49 UTC
effect-react success effect-react preview deployed Preview is ready 2026-08-13 03:49 UTC
notion-md success notion-md preview deployed Preview is ready 2026-08-13 03:49 UTC
notion-cli success notion-cli preview deployed Preview is ready 2026-08-13 03:49 UTC
tui-react success tui-react preview deployed Preview is ready 2026-08-13 03:49 UTC
notion-react success notion-react preview deployed Preview is ready 2026-08-13 03:49 UTC
genie success genie preview deployed Preview is ready 2026-08-13 03:49 UTC
megarepo success megarepo preview deployed Preview is ready 2026-08-13 03:49 UTC

@schickling
schickling force-pushed the schickling/2026-08-13-buck2-otel-product branch from 12acc6c to 1dea534 Compare August 13, 2026 03:58
schickling and others added 2 commits August 13, 2026 10:30
Build the real megarepo CLI through the final Buck2 foundation and strict Buck-to-Nix product admission seam.

Co-authored-by: AI assistant of @schickling <261620128+schickling-assistant@users.noreply.github.com>
Build, test, package, and admit the real otel-scrape Rust CLI through native Buck2 targets and the shared Cargo/Reindeer authority.

Co-authored-by: AI assistant of @schickling <261620128+schickling-assistant@users.noreply.github.com>
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