Skip to content

Commit a128358

Browse files
authored
ninja 1.12.1-mcpp.1, mcpp.buildopt (BMI and object cutoff on every host, the private module fragment as a unit, the register), BSD rows off Linux hosts, workspace publishing (#949)
* Design record: patched ninja for #945, the module cascade (#946), workspace publishing (#947), and part 2's remaining items (for review) * Revise the ninja, cascade and publish supplement after review (v2) * Supplement design v3: the engine-side choice for ninja#2662, one pull request per repository with checkpoint commits * The BMI cutoff holds outside UTC: a stamp is masked to its terminator, with any zone abbreviation (#946 O1) * Pin ninja 1.12.1-mcpp.1 and state how a ninja that names no step ended (#945); a runner is taken on the hosts it states; a platform selected by a layer is warned of; the engine's default openkal-platform is 0.29.1; --strict names the key itself * mcpp.bmi: the cutoff by BMI content as a package, with GCC's file format in a module of its own; a GCC BMI whose line maps alone moved is kept (bmi_cutoff, #946 O2) and a run states what changed (O6) * e2e 1110: an importer follows a GCC interface, not its clock or its line maps; 1109: a runner is taken on the hosts it states * publish: a sibling's own version, archives and descriptors by identity, --tag, the index's descriptor shape, --workspace and -p with SHA256SUMS (#947) * The exit note names no host: an NTSTATUS and a signal are told by the status's value * 2026.11.17.2: SPEC-018 (the rebuild of modules), SPEC-013 v1.12, chapters 04, 11 and 50 in both languages, CHANGELOG * Design record v4: what the implementation measured * Design record: the BSD rows' hosts, each failure read from its record * The upgrade lane admits the pinned ninja once; e2e 846 names the stand-in by its dotted number * The executor keeps the previous BMI and the previous object on every host (O7, O5); a target that parses is ELF unless it says otherwise; the scan writes a file of its own * Tests follow what they state: archives by identity, the rows openkal-platform 0.29 serves, the canary cell that passes * mcpp.buildopt: the register, keep, schedule and source in one package; a private module fragment is built as a unit of its own * buildopt: the advice of a one-file module, the fragment's e2e cases, ninja's update in one line * SPEC-019, chapters 13 and 26, the package's README, the design record v5 * A package has one command line under every workspace member: usage is carried dependencies first, feature defines by name (mcpp#945); an install says what it repaired * e2e 1116: a system's own ELF row builds on a host of any format * A unit built for a source names the source: the compile database has the file as written, and a change of it selects the tests of its units * Design record: what an upgraded home is told * xlings 2026.11.17.1: directory links on Windows (openxlings/xlings#719) * e2e 330 changes the test it expects linked again * Tests change the source they expect linked again; the record of the three passes on the real workspace * A unit built for a source answers as the source where a manifest names a file: the lib root, a feature's sources, the published interface (e2e 1117) * e2e 1112 reads the compile database's file as JSON writes it on Windows * A failed Linux shard prints the home's runtime links and what xlings did in it * xlings 2026.11.17.2: a home reached through a link is the home it was created as; e2e 237 keeps what it writes in its own home * The design record states the cold-cache failure and its two causes
1 parent 008c667 commit a128358

104 files changed

Lines changed: 4573 additions & 640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/docs/2026-11-17-ninja-cascade-publish-supplement-design.md‎

Lines changed: 460 additions & 0 deletions
Large diffs are not rendered by default.

‎.agents/docs/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ superseded_by: 2026-09-07-....md # when status is superseded
1818
---
1919
```
2020

21-
364 records.
21+
365 records.
2222

2323
## By subject
2424

@@ -30,6 +30,7 @@ Records that declare one. Everything else is listed by date below.
3030

3131
### build
3232

33+
- [第二部分之后的补充方案:带修正的 ninja、模块重编译的级联、工作区发布与本轮遗留项](2026-11-17-ninja-cascade-publish-supplement-design.md) — active
3334
- [大型工作区的构建空间与复用(mcpp#874)](2026-10-31-workspace-space-and-reuse-design.md) — active
3435
- [依赖 image 的资源归属、模块扫描边界与锁文件稳定写入](2026-10-21-resource-ownership-module-scan-and-lock-write-design.md) — active
3536

@@ -203,6 +204,7 @@ Records that declare one. Everything else is listed by date below.
203204

204205
### 2026-11
205206

207+
- [第二部分之后的补充方案:带修正的 ninja、模块重编译的级联、工作区发布与本轮遗留项](2026-11-17-ninja-cascade-publish-supplement-design.md) — active
206208
- [生态缺口补充方案(第二部分):文件的角色、运行文件、清单书写与第一部分的遗留项](2026-11-16-ecosystem-gap-supplement-part2-design.md) — active
207209
- [生态缺口补充方案:一个 C 程序走遍全部目标所暴露的通用问题](2026-11-15-ecosystem-gap-supplement-design.md) — active
208210
- [发布的发布面与 macOS 链接的 SDK 契约(2026-11-14 补充)](2026-11-14-release-publication-and-macos-sdk-design.md) — active

‎.github/actions/bootstrap-mcpp/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ inputs:
3333
# `package.name`, so one of the two was simply unreachable — and which one
3434
# depended on the machine, which is why CI failed on `compat:lua` on
3535
# Windows and `mcpplibs.capi:lua` on Linux. Never pin below that.
36-
default: '2026.11.16.1'
36+
default: '2026.11.17.2'
3737

3838
outputs:
3939
sandbox-key:

‎.github/actions/setup-macos-llvm/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
# Floor imposed by the index, not a routine bump — see
1616
# .github/actions/bootstrap-mcpp/action.yml for why 0.4.69 is required
1717
# (two packages named `lua` in one repo need openxlings/xlings#381).
18-
default: '2026.11.16.1'
18+
default: '2026.11.17.2'
1919
image:
2020
description: >
2121
The runner label the job runs on (macos-15, xcode-27). It is part of the

‎.github/tools/system-names.baseline‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# One number per word: its occurrences in the engine's sources
22
# (.github/tools/check_system_names.py). The numbers only fall.
3-
linux 64
3+
linux 63
44
macos 51
55
windows 72
66
freebsd 1

‎.github/tools/upgrade_lane.sh‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
# mismatch").
2727
#
2828
# Asserted, every variant: the first `mcpp new && mcpp run` of the new mcpp
29-
# succeeds and downloads nothing; a second run likewise; `mcpp self doctor`
29+
# succeeds and downloads nothing but the ninja this commit pins; a second run
30+
# downloads nothing at all; `mcpp self doctor`
3031
# in the project installs nothing and names the toolchain the build uses.
3132
# snapshot: `mcpp index update` names the newer packagings, the run after it
3233
# still downloads nothing, and `mcpp toolchain list` offers the new one.
@@ -116,7 +117,14 @@ run() {
116117
echo "::endgroup::"
117118
return $rc
118119
}
119-
downloads() { grep -o "Downloading [^ ]*" "$W/$1.log" | sort -u | tr '\n' ' '; }
120+
# The one download an upgraded home makes: the ninja this commit pins, when the
121+
# previous release pinned another (mcpp#945: the pin carries a correction, so a
122+
# home takes it with the upgrade, beside the ninja it has). It is taken once --
123+
# `any_download` holds the runs after the first to nothing at all.
124+
PIN=$(sed -n 's/.*kNinjaVersion *= *"\([^"]*\)".*/\1/p' "$(dirname "$0")/../../src/provider/xlings/xlings.cppm" | head -1)
125+
[ -n "$PIN" ] || { echo "::error::upgrade lane: the pinned ninja is not read from xlings.cppm"; exit 1; }
126+
any_download() { grep -o "Downloading [^ ]*" "$W/$1.log" | sort -u | tr '\n' ' '; }
127+
downloads() { grep -o "Downloading [^ ]*" "$W/$1.log" | grep -vxF "Downloading xim:ninja@$PIN" | sort -u | tr '\n' ' '; }
120128
new_project() { # <dir> <bin>
121129
(cd "$W" && "$2" new "$1" > /dev/null 2>&1) || mkdir -p "$W/$1"
122130
printf '\n[toolchain]\ndefault = "%s"\n' "$TC" >> "$W/$1/mcpp.toml"
@@ -232,7 +240,7 @@ run new-run1 "$W/p-new" "$NEW" run || fail "the first run of the new mcpp failed
232240
# revision 0 → 1`); the vendored xlings update is not one.
233241
grep -Eq "^\s*(Updating|Reinstalling) [^ ]+@" "$W/new-run1.log" && fail "the first run replaced a payload"
234242
run new-run2 "$W/p-new" "$NEW" run || fail "the second run failed"
235-
[ -z "$(downloads new-run2)" ] || fail "the second run downloaded: $(downloads new-run2)"
243+
[ -z "$(any_download new-run2)" ] || fail "the second run downloaded: $(any_download new-run2)"
236244
run new-run-old-project "$W/p-old" "$NEW" run || fail "the project the previous release made does not run"
237245
[ -z "$(downloads new-run-old-project)" ] || fail "the old project's run downloaded: $(downloads new-run-old-project)"
238246

@@ -276,7 +284,9 @@ if [ "$VARIANT" = orphan ]; then
276284
run new-provision "$W" "$NEW" toolchain install "$TC" || fail "toolchain install could not replace the payload"
277285
grep -q "installed asset registration missing" "$W/new-provision.log" \
278286
&& fail "the replacement was refused by the dangling record"
279-
grep -qi "deactivated\|dangling" "$W/new-provision.log" \
287+
# Said by the install that came upon it: the first run's, when this commit
288+
# pins another ninja than the previous release, else this one.
289+
grep -qi "deactivated\|dangling" "$W/new-provision.log" "$W/new-run1.log" \
280290
|| fail "the repaired record is not reported"
281291
run new-run-after-provision "$W/p-new" "$NEW" run || fail "the run after the replacement failed"
282292
fi

‎.github/workflows/bootstrap-macos.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Dormant (workflow_dispatch only), but kept in step with the rest —
1818
# check_version_pins.sh holds it there. Floor: 0.4.69, below which the
1919
# index cannot resolve two packages that share a short name.
20-
XLINGS_VERSION: '2026.11.16.1'
20+
XLINGS_VERSION: '2026.11.17.2'
2121
steps:
2222
- uses: actions/checkout@v4
2323

‎.github/workflows/ci-bootstrap.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
os: [ubuntu-24.04, macos-15, windows-2025]
4242
env:
4343
XLINGS_NON_INTERACTIVE: '1'
44-
XLINGS_VERSION: '2026.11.16.1'
44+
XLINGS_VERSION: '2026.11.17.2'
4545
steps:
4646
- uses: actions/checkout@v4
4747

@@ -50,7 +50,7 @@ jobs:
5050
shell: bash
5151
run: |
5252
set -euo pipefail
53-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.16.1
53+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.17.2
5454
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
5555
echo "$HOME/.xlings/bin" >> "$GITHUB_PATH"
5656
@@ -124,7 +124,7 @@ jobs:
124124
shell: bash
125125
run: |
126126
set -euo pipefail
127-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.16.1
127+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.17.2
128128
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
129129
130130
- name: Install the newest release and build the tree with it (mcpp build --strict)

‎.github/workflows/ci-fresh-install.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
env:
168168
XLINGS_NON_INTERACTIVE: '1'
169169
run: |
170-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.16.1
170+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.17.2
171171
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
172172
173173
- name: Install mcpp and config mirror
@@ -330,7 +330,7 @@ jobs:
330330

331331
- name: Install xlings + mcpp
332332
run: |
333-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.16.1
333+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.17.2
334334
# Deliberately NOT writing to $GITHUB_PATH here. On container
335335
# images that declare no PATH in their config (opensuse/
336336
# tumbleweed), appending a single dir to GITHUB_PATH makes the
@@ -479,7 +479,7 @@ jobs:
479479
# (older ones carry minos=15 and refuse to start).
480480
# v0.4.51+: in-process sha256 — this image has no sha256sum
481481
# binary, so pinned fetches failed before it.
482-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.16.1
482+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.17.2
483483
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
484484
485485
- name: Install mcpp and config mirror

‎.github/workflows/ci-linux-e2e.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ jobs:
469469
470470
- name: Bootstrap xlings + released mcpp
471471
run: |
472-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.16.1
472+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.17.2
473473
export PATH="$HOME/.xlings/subos/current/bin:$PATH"
474474
xlings update
475475
xlings install mcpp -y -g

0 commit comments

Comments
 (0)