myxce/src/xceadmin/tests
lei.chen 857f987f3c resources: XCE_RESF_BUILTIN 从未被置位 — resources.yaml 加 builtin: true 声明式键
XCE_RESF_BUILTIN (0x01) 在生产链路上从未被任何一层置位:全树只有 types.h
定义、scheduler repl_info.c 显示表、一个测试 fixture 三处引用。worker
init_builtin_load_indices()(mem/io/r1m…)、controller add_hostattrs_resvals()/
set_host_slots() 硬编码生产这些资源的值,但定义的 flags 从 YAML→capnp→wire
全程没人打这个位——CLI 的 BUILTIN 列对 mem/io/slots 等恒显 false,与 extlic
等用户资源无法区分。

- resources.schema.json(+xceadmin 打包副本,构建时从 src/configs/schema
  同步):加 builtin: boolean 键
- mapping.py:RESOURCE_FLAG_BUILTIN=0x01,_build_resource 映射 builtin:true
  (与 consumable/release 同模式:缺省/false 不置位)
- build.py dump:补渲染 builtin=True;顺手补同样一直缺失的 external=True
  (此前 EXTERNAL 池 dump 只显示 shared=true)
- src/configs/resources.yaml:20 个硬编码生产者资源(slots + 11 load index
  + 8 host attributes)声明 builtin: true
- golden fixture full/expected.bin 相应再生(6696→6856B,diff 恰为 20 行
  builtin=True,非 builtin 行 0 差异)

验证:xceadmin 389 测试全绿(dev venv + meson build.dbg 各一遍);t1 实证:
树内 venv 重建 cluster.bin(与 live 逐行比对确认 delta 仅 builtin 20 行)→
config push gen=17 → apiserver 重启拾取(定义 store 只吃 join 时 config
push,激活只 re-push scheduler)→ xcecli definition list -l mem/io/slots
BUILTIN=true,extlic false、distribution/extlic 值/liccheck 作业 RUN→DONE
全链正常,5 daemon 健康。

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 01:46:21 +00:00
..
fixtures resources: XCE_RESF_BUILTIN 从未被置位 — resources.yaml 加 builtin: true 声明式键 2026-10-28 01:46:21 +00:00
_live_e2e_common.py fix(xceadmin tests): root-cause the three flaky tests (bug-1683, bug-1485, bug-1725) 2026-10-03 14:49:46 +00:00
conftest.py fix(admin-config-tool): unwrap Request reply envelope before decoding as RequestReply 2026-07-30 09:43:56 +00:00
test_cli.py feat(controller-peers-env-fallback): name the environment source in xceadmin's controller errors (task 4.3) 2026-10-03 07:57:00 +00:00
test_cli_extres.py E2 Phase 2: external-license-resources 运维面 — stale 标记、last-updated 展示、xceadmin extres status 2026-10-27 14:00:33 +00:00
test_cli_scheduler_mock.py test(scheduler-core): xceadmin scheduler CLI end-to-end mock-server tests (task 10.6) 2026-08-06 08:12:12 +00:00
test_config_build.py admin-plane breakpoint 2: YAML resourcemap wiring + queue payload deep-copy 2026-10-23 14:29:29 +00:00
test_config_dump.py resources: XCE_RESF_BUILTIN 从未被置位 — resources.yaml 加 builtin: true 声明式键 2026-10-28 01:46:21 +00:00
test_config_push_mock.py feat(xceadmin): accept a comma-separated --controller failover list (bug-1821, bug-1822) 2026-09-17 03:53:35 +00:00
test_discovery.py feat(controller-peers-env-fallback): accept name= prefixes and report malformed controller entries cleanly (task 4.1) 2026-10-03 07:31:38 +00:00
test_e2e_live_ha_push.py fix(xceadmin tests): root-cause the three flaky tests (bug-1683, bug-1485, bug-1725) 2026-10-03 14:49:46 +00:00
test_e2e_live_push.py fix(xceadmin tests): root-cause the three flaky tests (bug-1683, bug-1485, bug-1725) 2026-10-03 14:49:46 +00:00
test_errors.py feat(scheduler-core): build xceadmin scheduler recording client functions (task 10.3) 2026-08-06 04:43:40 +00:00
test_live_e2e_common.py fix(xceadmin tests): root-cause the three flaky tests (bug-1683, bug-1485, bug-1725) 2026-10-03 14:49:46 +00:00
test_mapping.py resources: XCE_RESF_BUILTIN 从未被置位 — resources.yaml 加 builtin: true 声明式键 2026-10-28 01:46:21 +00:00
test_scheduler.py feat(xceadmin): accept a comma-separated --controller failover list (bug-1821, bug-1822) 2026-09-17 03:53:35 +00:00
test_schema.py feat(admin-config-tool): task 2.2 - xcecommon.schema 2026-07-22 04:43:16 +00:00
test_schema_bundling.py feat(admin-config-tool): tasks 5.1-5.3 - mapping/wire coverage confirmed, schema bundling fix 2026-07-22 09:51:42 +00:00
test_validation.py feat(xceadmin): validate percent-based limit values are in [0.0, 1.0] (bug-1833) 2026-09-20 10:50:21 +00:00
test_wire.py fix(xceadmin tests): root-cause the three flaky tests (bug-1683, bug-1485, bug-1725) 2026-10-03 14:49:46 +00:00