Skip to content

Commit 0b0629d

Browse files
genednaclaude
andcommitted
v0.41.2: BB-06 install libra from libra.tools in interop-smoke
Add the final stage of Dockerfile.interop-smoke (plan-20261001 BB-06): the official libra.tools installer with LIBRA_REQUIRE_CHECKSUM=1 (signed stable manifest + sha256), latest stable by default with optional LIBRA_VERSION pin and LIBRA_CACHE_BUST, and the installed version recorded in /etc/interop-smoke/libra-version. Also marks BB-01 done/complete after its docker job succeeded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018bJDjze83ToyPysYzmxxWS Signed-off-by: Eli Ma <eli@patch.sh>
1 parent 573d322 commit 0b0629d

4 files changed

Lines changed: 26 additions & 4 deletions

File tree

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mega2"
3-
version = "0.41.1"
3+
version = "0.41.2"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"
66
description = "Monorepo engine and Git hosting server for AI agents: trunk-based storage, Git Smart HTTP, Git LFS, OCI registry, and Agent Session Capture"

‎Dockerfile.interop-smoke‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,25 @@ RUN chmod 0755 /usr/local/bin/interop-smoke-selfcheck \
8787
# Default: stay up for `docker compose exec`. A plain `docker run IMAGE CMD`
8888
# overrides this (used by the verification commands).
8989
CMD ["sleep", "infinity"]
90+
91+
# Final stage (BB-06): the official libra client from libra.tools. The
92+
# installer verifies its Ed25519-signed stable manifest and the binary's
93+
# sha256 (LIBRA_REQUIRE_CHECKSUM=1); fallback installs are never enabled.
94+
# LIBRA_VERSION empty = latest stable; LIBRA_CACHE_BUST forces a fresh layer
95+
# so a rebuild picks up a newer stable release.
96+
FROM base AS final
97+
98+
ARG LIBRA_VERSION=""
99+
ARG LIBRA_CACHE_BUST=""
100+
101+
RUN set -eu; \
102+
echo "libra cache bust: ${LIBRA_CACHE_BUST:-none}"; \
103+
curl --proto '=https' --tlsv1.2 -sSf https://download.libra.tools/install.sh -o /tmp/libra-install.sh; \
104+
sha256sum /tmp/libra-install.sh; \
105+
LIBRA_REQUIRE_CHECKSUM=1 LIBRA_NO_TUI=1 LIBRA_HOME=/tmp/libra-home \
106+
sh /tmp/libra-install.sh -d /usr/local/bin --no-modify-path --no-alias ${LIBRA_VERSION:+-v "$LIBRA_VERSION"}; \
107+
rm -rf /tmp/libra-install.sh /tmp/libra-home; \
108+
mkdir -p /etc/interop-smoke; \
109+
libra --version > /etc/interop-smoke/libra-version; \
110+
test -s /etc/interop-smoke/libra-version; \
111+
cat /etc/interop-smoke/libra-version

‎docs/plan/plan-20261001.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
### Task BB-01: interop-smoke 基础镜像
515515

516516
**Task type:** `implementation`
517-
**Lifecycle / Acceptance:** `in-progress` / `remote-pending`(v0.41.1;Codex R3 PASS;C 组:2023 测试通过;待 D 组 `docker` job)
517+
**Lifecycle / Acceptance:** `done` / `complete`(v0.41.1 / `573d322`;Codex R3 PASS;C 组 2023 测试通过;D 组 docker run 36889926666 success)
518518
**Description:** 新建 `Dockerfile.interop-smoke` 的基础部分(ADR-BB-02):digest 固定的 `debian:trixie-slim` + `bash ca-certificates curl git jq openssh-client openssl ripgrep shellcheck socat` + git-lfs 3.8.0 与 oras(版本与 sha256 均以 `ARG` 固定,`sha256sum -c` 校验,不符即构建失败)+ 镜像内自检脚本 `/usr/local/bin/interop-smoke-selfcheck`(逐个检查上述工具可执行,任一缺失非 0 退出)。唯一行为轴:runner 基础工具链。
519519
**Out of scope:** libra 安装(BB-06);compose 服务与环回中继(BB-04);改 `Dockerfile.git-smoke`(GC-BB-06,永久非目标)。
520520
**Current evidence:**
@@ -567,7 +567,7 @@
567567
### Task BB-06: interop-smoke 安装 libra 最新 stable
568568

569569
**Task type:** `implementation`
570-
**Lifecycle / Acceptance:** `pending` / (空)
570+
**Lifecycle / Acceptance:** `in-progress` / `remote-pending`(v0.41.2;Codex R1 PASS;C 组 2023 测试通过(ER-10 两次重试:端口 / 连接抖动,停 trunk 栈后全绿);待 D 组 `docker` job)
571571
**Description:** 在 `Dockerfile.interop-smoke` 的最终阶段(基于 BB-01 的 `base`)按 ADR-BB-02 §3 用 libra.tools 官方安装器安装最新 stable libra(`LIBRA_REQUIRE_CHECKSUM=1`,禁用 fallback),并把 `libra --version` 写入 `/etc/interop-smoke/libra-version`。唯一行为轴:runner 中的 libra 客户端。
572572
**Out of scope:** 基础工具链(BB-01);libra 版本下限检查(BB-50 前置检查)。
573573
**Current evidence:**

0 commit comments

Comments
 (0)