Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ jobs:
runs-on: macos-15
env:
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: line-tables-only
CARGO_PROFILE_TEST_DEBUG: line-tables-only
steps:
- uses: actions/checkout@v7
with:
Expand Down Expand Up @@ -260,6 +262,7 @@ jobs:
path: |
.temp/gate-run/
.temp/**/failed/**/ocd.log
.temp/single-binary-run/failed/**/*.log
target/llvm-cov/summary.json
target/llvm-cov/lcov.info

Expand Down
2 changes: 2 additions & 0 deletions docs/references/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ APFS 使用 clone,Linux 使用可用的 filesystem reflink 保存独立 object
缓存替换不能改变留存 object,现有留存目录不能被覆盖。
coverage 只运行一轮;调度器拒绝把已知 coverage 插桩环境用于最终未插桩 Gate。
coverage 使用 cargo-llvm-cov `show-env --sh` 的外部运行器接口和相同 workspace 调度器,
release CI 禁用增量编译,并使用 `line-tables-only` 调试信息减少构建占用;LLVM coverage
插桩、优化级别、生产停写阈值和 90% 门槛保持不变。Gate 在构建后输出文件系统余量。
构建缓存继续放在 `target/llvm-cov-target/`。每轮在 `.temp/coverage/run-*/` 保留独立
profile 池、merged profdata 和精确 object 副本,拒绝覆写已存在 object 目录;缓存重建不会
修改证据副本,也不把先前轮次计数混入本轮。报告先写入本轮目录;90% 门槛通过后,
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/baseline.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"sourceDigest": "8a1f41ba31595329dbfac52424dcbcdfba1b0715ebd44f27ac0c81a97acdedb0",
"sourceDigest": "b60a8367724dfaa40f4d567fa998a99eb4939de830c5d66f4a08c715c5165f67",
"sourceDigestScope": "git-visible production, test, toolchain, manifest, and maintained reference inputs; excludes generated Python caches, test/conformance/baseline.json, and non-reference docs",
"workerdLockSha256": "d685331dc96e294b10a1b2365065ab6934d920c037d071b020552c7fc4f0d37f",
"workerd": {
Expand Down
4 changes: 4 additions & 0 deletions test/gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ def build_targets(targets, directory, workspace):
except (OSError, subprocess.CalledProcessError):
pass # Other filesystems still require independent copies.
shutil.copy2(executable, destination)
filesystem = os.statvfs(ROOT)
print('Coverage filesystem (blocks, free, available, block bytes): '
f'{filesystem.f_blocks}, {filesystem.f_bfree}, '
f'{filesystem.f_bavail}, {filesystem.f_frsize}', flush=True)
return artifacts, {'invocations': 1, 'seconds': time.monotonic() - start,
'executables': {name: digest(Path(artifacts[name])) for name in cargo_targets},
'typed_targets': typed_inputs}
Expand Down
Loading