Skip to main content

update-workerd-upstream

Update open-compute's workerd fork onto current Cloudflare upstream, minimize fork-owned code, regroup fork commits by capability, and coordinate the submodule, pin, tests, and docs. Invoke only when the user explicitly requests `$update-workerd-upstream`.

소스 정보

저장소
elliothux/open-compute
최근 소스 활동
2026년 9월 18일 14:03
감지된 SKILL.md 언어
영어
스타
1,293
포크
44

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
update-workerd-upstream
description
Update open-compute's workerd fork onto current Cloudflare upstream, minimize fork-owned code, regroup fork commits by capability, and coordinate the submodule, pin, tests, and docs. Invoke only when the user explicitly requests `$update-workerd-upstream`.
# Update workerd upstream Update `third_party/workerd` without preserving obsolete fork implementations. Keep upstream behavior wherever it now satisfies open-compute, and keep every remaining fork seam narrow and reviewable. ## Establish the exact state Read the root and applicable workerd `AGENTS.md` files, `docs/workerd/README.md`, the active workerd design, and `packages/runtime/workerd.lock.json`. Confirm the parent and submodule worktrees are safe before rewriting history. Fetch Cloudflare `main` into a dedicated local upstream ref and refresh the fork remote. Record the old fork head, upstream head, merge base, divergence, fork-only commits, changed paths, and parent gitlink. Do not treat commit subjects or `git cherry` alone as proof that upstream covers a fork feature: trace the upstream source and tests for the same behavior. ## Minimize and regroup the fork Rebase the current Day1 implementation onto the fetched upstream head. For each fork capability: 1. Drop code fully covered by upstream and use the upstream API directly. 2. Adapt the smallest remaining open-compute seam to current upstream ownership and conventions. 3. Keep fork-specific files separate where doing so avoids recurring merge conflicts; touch upstream files only for the narrow registration or call site that must connect them. 4. Remove superseded helpers, flags, tests, and compatibility branches in the same rewrite. 5. Preserve security, capability, lifecycle, and resource-limit behavior; never resolve conflicts by weakening validation or silently ignoring configuration. Produce one compileable commit per coherent open-compute capability. Fold tests into the capability they prove. Avoid merge, fixup, formatting-only, and historical compatibility commits. Rewrite the fork branch only when the user explicitly authorized it, and publish with `--force-with-lease`, never unguarded `--force`. ## Validate and coordinate Run focused formatting/build/tests while resolving each capability. Do not download runtimes implicitly. Before final acceptance, update the parent gitlink and the workerd source identity in docs. Change the formal multi-platform binary pin only as a coordinated pin update with verified archives, digests, version output, runtime config, and required product evidence. Open Compute's formal workerd builds and FD-passing tests use `--//:io_backend=cxx`. Keep `--@rules_rust//:extra_exec_rustc_flag=-Cstrip=none` on macOS release builds: stripping the exec-configuration Rust proc-macro dylibs can produce a malformed Mach-O before C++ compilation begins. Treat these as recorded build inputs, not as generic upstream defaults, and do not use them to mask an unrelated compiler or linker failure. Before the product Gate, explicitly build `//src/workerd/server:host-extension-test-provider` with the same C++ I/O backend and set `OPEN_COMPUTE_TEST_HOST_EXTENSION_PROVIDER` to its absolute executable path. The fixture is test-only and must not be added to the release pin or production artifact. Run the repository's required static checks, coverage, and final Gate once after source freeze. Use `$cf-compatibility-check` after implementation and fix its actionable findings before the final Gate. Report any platform build or formal-pin evidence that remains unavailable rather than substituting a development binary or a stock runtime.
GitHub에서 보기