Skip to content

fix: 修复 CI 高失败率:fmt/audit/tests/docker - #92

Merged
zh30 merged 16 commits into
mainfrom
cursor/fix-ci-fmt-audit-5bfa
Sep 18, 2026
Merged

zh30 merged 16 commits into
mainfrom
cursor/fix-ci-fmt-audit-5bfa

Conversation

@zh30

@zh30 zh30 commented Sep 18, 2026

Copy link
Copy Markdown
Owner

变更范围

修复 Amberjs GitHub Actions 高失败率,覆盖 Format / cargo-audit / clippy / cargo test / macOS lib tests / Docker。

  1. Format / audit / clippy — rustfmt;rustls 0.23.45 修 RUSTSEC-2026-0285(未 allowlist);clippy -D warnings
  2. Tests — matcher / bundler oxc span / Headers X-Amber-Trace / package.json deny / release-assets / URLSearchParams / WASM mmap / Streams _readIndex+pipeTo / worker HELLO AMBERJS
  3. Docker — 纳入 workspace crates/+extensions/。PR 上只 build+smoke;GHCR push 仅 main/tag/workflow_dispatch
  4. Feature matrixjavascript_core.rs 对齐 v8 152 Context::new
  5. macOSprewarm_one 串行化并发 Isolate::new,消除 test_concurrent_multi_thread_checkout SIGSEGV。
  6. Ubuntu latencytest_prewarmed_execution_latency_benchmark 先 thread-local prewarm + warmup 再测;debug 上限 150ms。

运行过的测试/检查

本机:

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo audit(无 RUSTSEC-2026-0285)
  • cargo testcargo test --lib --tests -- --test-threads=1
  • cargo check --features benchmarks / observability

CI(ffc5cc8b)6/6 绿:

  • Format, Lint, Test, Package
  • cargo-audit
  • Release Build ubuntu + macos
  • Windows Smoke
  • Docker Build and Publish Image(PR 路径,未 push GHCR)

未验证项

相关链接

Open in Web Open in Cursor 

@changeset-bot

changeset-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ffc5cc8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

cursoragent and others added 3 commits September 18, 2026 06:29
Co-authored-by: Henry Zhang <hello@zhanghe.dev>
Co-authored-by: Henry Zhang <hello@zhanghe.dev>
CI run 35316789035 的 9 个 bundler_integration_tests 失败源于按行改写
无法处理多行 import/export、export { } from 和写盘前缺失导出校验。
Docker run 35302823643 在 cargo fetch 时缺少 workspace crates/。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
@cursor cursor Bot changed the title fix: 修复 main CI 的 rustfmt 与 rustls RUSTSEC-2026-0285 fix: 修复 CI 高失败率:fmt/audit/tests/docker Sep 18, 2026
cursoragent and others added 12 commits September 18, 2026 08:40
http_fetch_tests 写入 X-Amber-Trace,却仍 get/期望 x-amberjs-trace。
response.type 在 keepalive 路径为 Fetch 的 basic,一并接受。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
祖先探测仍把沙箱拒绝当作无 package.json,避免夹具启动失败;
require 目标包必须把 broker deny 暴露给 JS,不能伪装成找不到模块。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
x86_64-apple-darwin 已在 macos-latest 交叉编译;GetCurrentProcess 在 process.rs。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
JS 实现先于 Rust setup 安装后会短路完整实现。补上 getAll/entries/sort、
application/x-www-form-urlencoded 编解码,以及 URL.search 联动。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
WebAssembly.compile 返回的 Promise 在 execute_code 的微任务循环里不会 settle,
导致 wasm mmap 零拷贝测试失败。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
streams_fast.js 覆盖 Rust Streams 后,队列用 shift 丢掉 _readIndex,
pipeThrough 只返回 readable,pipeTo 忽略 preventClose/signal。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
输入已是 hello amberjs,toUpperCase 得到 HELLO AMBERJS,
期望仍停留在重命名前的 HELLO AMBER。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
cargo check --features benchmarks 仍用旧的 Context::new(&mut scope)。
macOS Library tests 在 test_concurrent_multi_thread_checkout 对同一
CoW snapshot 并发 Isolate::new 时 SIGSEGV。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
Co-authored-by: Henry Zhang <hello@zhanghe.dev>
CI cargo test --verbose 并行下该用例实测 39ms,原 25ms debug
预算过紧。先 thread-local prewarm + warmup execute,再测。

Co-authored-by: Henry Zhang <hello@zhanghe.dev>
Co-authored-by: Henry Zhang <hello@zhanghe.dev>
@zh30
zh30 marked this pull request as ready for review September 18, 2026 15:34
@zh30
zh30 merged commit 7c8e1f7 into main Sep 18, 2026
6 checks passed
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