mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
Run benchmark report tests in workspace CI and record migration review
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
This commit is contained in:
1 parent
5366b93986
commit
a0d9b85dbf
6 files changed
+112
-2
No files matched your search
@@ -33,6 +33,7 @@ remains unsupported.
|
||||
- Extended the read-only RDNA2 planning CLI (`python3 -m qa rdna2`) with family/status filters, compact summaries, Codex-ready manifests under `artifacts/`, active-claim exclusion (family claims exclude those families; path-only claims block overlapping permitted files), coverage reconcile against `semantic_coverage` without inflating counts, and inventory diffs. Covered by `tests/qa/test_rdna2_plan.py`; planning only, no GPU production edits.
|
||||
|
||||
### Fixed
|
||||
- Restored the DBT benchmark report-test fixture after the cache-invalidation counter was added. Its existing percentile, JSON and comparison tests now run in ordinary workspace CI instead of requiring a separate benchmark test-harness command.
|
||||
- DBT cache hits now compare an executable-generation token instead of rereading every instruction byte. Address-space or executable-memory changes trigger byte and execute-permission revalidation before a translation can be reused; changed code is retranslated. Ordinary data writes retain the fast path. Tests cover cloned spaces, loader bypass writes, split writes, remapping and bounded cache exhaustion. Same-dispatch self-modification and discarded-code reclamation remain unsupported.
|
||||
- Gate A2 checks the cross-compiler driver before invoking it, then checks its helpers before fixture compilation. CI also verifies the driver architecture before requesting its version.
|
||||
- Non-canonical 64-bit guest data addresses now raise `#GP` instead of a memory fault in both the interpreter and native DBT, including accesses that cross the canonical-address boundary. The synthetic architectural test is enabled again.
|
||||
@@ -41,6 +42,7 @@ remains unsupported.
|
||||
- Added a Python 3 fallback for `timeout` in `scripts/test-gpu.sh`, so the native Metal suite runs on stock macOS without GNU coreutils while preserving bounded execution and the usual timeout exit status.
|
||||
|
||||
### Added
|
||||
- Recorded the migrated PR integration decisions, native verification and scope exclusions in the testing documentation.
|
||||
- Added `xenora-bench startup` (#178), which measures Metal startup in fresh processes and in repeated
|
||||
submissions within one process, phase by phase (launch, device and queue, translation, library, pipeline,
|
||||
submission, GPU, readback), with median, p90, p99 and maximum. Every sample must produce the fixture's
|
||||
|
||||
@@ -14,8 +14,9 @@
|
||||
//! refused, with exit status 1, unless both runs used the same host, workload,
|
||||
//! build settings and sample counts.
|
||||
//!
|
||||
//! The benchmark target disables Cargo's test harness. To run the percentile
|
||||
//! unit tests, build with
|
||||
//! Report, comparison and percentile tests run in ordinary workspace tests
|
||||
//! through `tests/dbt_benchmark_report.rs`. The benchmark target itself disables
|
||||
//! Cargo's test harness. To run its tests directly, build with
|
||||
//! `cargo rustc --locked -p xenora-loader --bench dbt_bench --message-format=json -- --test`
|
||||
//! and run the executable named by the benchmark's compiler-artifact message.
|
||||
|
||||
@@ -982,6 +983,7 @@ mod tests {
|
||||
blocks_compiled: 626,
|
||||
cache_hits: 0,
|
||||
cache_misses: 626,
|
||||
blocks_invalidated: 0,
|
||||
native_bytes_emitted: 245_168,
|
||||
dbt_dispatches: 626,
|
||||
instructions_executed: 10_002,
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
//! Run the benchmark's report, comparison and percentile tests in normal CI.
|
||||
//! Timing runs remain confined to the standalone benchmark entry point.
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[path = "../benches/dbt_bench.rs"]
|
||||
mod benchmark;
|
||||
@@ -45,6 +45,7 @@ Historical phase checkpoints retain their original evidence scope.
|
||||
|
||||
## Testing, validation, and benchmarks
|
||||
|
||||
- [Migrated pull-request integration review](testing/migration-pr-review.md) — Merge decisions, integration fixes, native verification and excluded concurrent work.
|
||||
- [Testing and acceptance index](testing/README.md) — Entry point for test procedures, evidence and review records.
|
||||
- [AMD RDNA2 desktop GPU (gfx1030) form acceptance](testing/shader-form-acceptance.md) — Independence, command, log and promotion rules for fixture-verified instruction forms.
|
||||
- [Engineering progress](progress.md) — Verification commands, metric definitions, and open release gates.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# Testing and acceptance
|
||||
|
||||
- [Migrated pull-request integration review](migration-pr-review.md) — Merge decisions, fixes, native verification and remaining scope limits.
|
||||
- [AMD RDNA2 desktop GPU (gfx1030) form acceptance](shader-form-acceptance.md) — Rule and evidence required to promote a form from local results to `fixture verified`.
|
||||
- [Test inventory comparison](test-inventory.md) — Detect missing or newly ignored Cargo tests across commits.
|
||||
- [Persistent resource and translated rendering acceptance](x9-acceptance.md) — Native ARM64 results and unsupported cases.
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
# Migrated pull-request integration review
|
||||
|
||||
Reviewed on November 24, 2026 (America/Chicago). The initial inventory contained
|
||||
23 open pull requests under `Arths17`, including the development-plan PR.
|
||||
Twenty-two were merged after their updated heads passed the applicable GitHub
|
||||
checks. Imported records retain their original author attribution and commits.
|
||||
|
||||
The maintainer authorized per-merge admin overrides for the review restriction.
|
||||
The ARM64 build/test requirement, one-approval rule, code-owner review requirement
|
||||
and enforcement for admins remain configured. Failed or pending checks were
|
||||
resolved before merging. The conditional `verify` comment job is normally skipped;
|
||||
that skip is not independent semantic verification.
|
||||
|
||||
## Results
|
||||
|
||||
All links below refer to the BetterXen repository.
|
||||
|
||||
| PR | Result | Integration work |
|
||||
| --- | --- | --- |
|
||||
| [#263](https://github.com/MacosPorters/betterxen/pull/263) | Pending | Pending: overlaps the contributor's live PR #290, excluded by the maintainer. |
|
||||
| [#264](https://github.com/MacosPorters/betterxen/pull/264) | Merged; checks passed | Identification fixture runs in ordinary tests; benchmark-harness lint fixed. |
|
||||
| [#265](https://github.com/MacosPorters/betterxen/pull/265) | Merged; checks passed | Bounded native texture staging; planner and Metal readback tests. |
|
||||
| [#266](https://github.com/MacosPorters/betterxen/pull/266) | Merged; checks passed | Startup measurement harness; unit tests and correctness smoke run. |
|
||||
| [#267](https://github.com/MacosPorters/betterxen/pull/267) | Merged; checks passed | Bounded flat draws and repeated-frame regressions. |
|
||||
| [#268](https://github.com/MacosPorters/betterxen/pull/268) | Merged; checks passed | Windows x64 calling conventions; writable-home-slot regression and nonvolatile vector-register negative controls. |
|
||||
| [#269](https://github.com/MacosPorters/betterxen/pull/269) | Merged; checks passed | Executable generations with source revalidation; original cache assertions preserved. |
|
||||
| [#270](https://github.com/MacosPorters/betterxen/pull/270) | Merged; checks passed | ARM64 shift encoding and operand checks; draft marked ready. |
|
||||
| [#271](https://github.com/MacosPorters/betterxen/pull/271) | Merged; checks passed | Floating-point unit initialization, combined decoder generation and preserved tests. |
|
||||
| [#272](https://github.com/MacosPorters/betterxen/pull/272) | Merged; checks passed | Dynamic binary translation (DBT) report comparison and input validation. |
|
||||
| [#273](https://github.com/MacosPorters/betterxen/pull/273) | Merged; checks passed | C startup service integration and registry regeneration. |
|
||||
| [#274](https://github.com/MacosPorters/betterxen/pull/274) | Merged; checks passed | Instruction-length faults and precise retirement. |
|
||||
| [#275](https://github.com/MacosPorters/betterxen/pull/275) | Merged; checks passed | Flag-transfer instructions; combined fixtures and supported-case expectations retained. |
|
||||
| [#276](https://github.com/MacosPorters/betterxen/pull/276) | Merged; checks passed | Explicitly unsupported service stubs and combined registry. |
|
||||
| [#277](https://github.com/MacosPorters/betterxen/pull/277) | Merged; checks passed | Guest arguments and environment with combined services. |
|
||||
| [#278](https://github.com/MacosPorters/betterxen/pull/278) | Merged; checks passed | Packed texture footprints; CPU and native GPU checks. |
|
||||
| [#279](https://github.com/MacosPorters/betterxen/pull/279) | Merged; checks passed | Loop instructions; regenerated tables and corrected description to 3,600 comparisons. |
|
||||
| [#280](https://github.com/MacosPorters/betterxen/pull/280) | Merged; checks passed | Process termination and exit callbacks. |
|
||||
| [#281](https://github.com/MacosPorters/betterxen/pull/281) | Merged; checks passed | Formatted output integrated with startup and arguments. |
|
||||
| [#282](https://github.com/MacosPorters/betterxen/pull/282) | Merged; checks passed | File streams; combined registry and dependency readiness. |
|
||||
| [#283](https://github.com/MacosPorters/betterxen/pull/283) | Merged; checks passed | Hosted C fixture; driver architecture checked before execution. |
|
||||
| [#284](https://github.com/MacosPorters/betterxen/pull/284) | Merged; checks passed | Thread-local storage (TLS) template-copy integration and preserved changelog entries. |
|
||||
| [#288](https://github.com/MacosPorters/betterxen/pull/288) | Merged; checks passed | Development phases, README and migration-check record. |
|
||||
|
||||
PR #263 remains open to avoid competing with the contributor's live PR #290.
|
||||
PR #290 was excluded from branch edits, reviews and merge operations as requested.
|
||||
Its filesystem security and integration acceptance are left to that workstream.
|
||||
|
||||
## Verification and evidence scope
|
||||
|
||||
The integrated runtime candidate was
|
||||
`5366b9398668128fdbb0b0879840dfa072bfa352`. Its GitHub native Rust workflow passed,
|
||||
including workspace formatting, strict Clippy, tests and the hosted C fixture.
|
||||
Local native results below concern the reported Apple M4 host running macOS 27.0
|
||||
(class A host observations); they establish no Xbox-hardware or commercial-game
|
||||
execution result.
|
||||
|
||||
| Check | Observed result |
|
||||
| --- | --- |
|
||||
| `scripts/test-gpu.sh` | 124 passed, 0 failed; 2 manual timing tests ignored. Metal API and GPU validation enabled. |
|
||||
| Packed block-compressed texture GPU target | 1 passed, 0 failed, 0 ignored, with both validation layers enabled. |
|
||||
| `scripts/demo.sh` | All three original fixtures matched Metal, reference and known-answer outputs. |
|
||||
| `scripts/audit/native.sh` | 110 executables/loadable dependencies checked with `file`, `lipo` and `otool`; ARM64 architecture and permitted linkage checks passed. |
|
||||
| Status, claims and dependency audits | Passed. |
|
||||
|
||||
The cache fix also passed an isolated local workspace run at `44ac976`: 917
|
||||
passed, 0 failed, 35 ignored, plus strict Clippy. Its three alternating CPU
|
||||
benchmark pairs used native release executables and identical original inputs:
|
||||
per-run warm medians were 87.334–88.333 microseconds with per-byte validation and
|
||||
15.625–18.791 microseconds with generation validation. Machine idleness was not
|
||||
controlled. These measurements do not close the formal performance gate; their
|
||||
candidate scope and cold results are recorded in PR #269.
|
||||
|
||||
A supplemental benchmark test-harness command exposed a missing initialization
|
||||
for the newly added cache-invalidation counter. The follow-up initializes that
|
||||
fixture and runs the existing report, JSON, comparison and percentile tests via
|
||||
an ordinary integration-test target, preserving their assertions. This lets
|
||||
workspace CI detect future benchmark-test compilation failures. All 14 existing
|
||||
tests passed through both the ordinary integration target and the documented
|
||||
manual harness command; strict workspace Clippy passed as well.
|
||||
|
||||
Raw final native logs, cache benchmark JSON and the PR-state inventory are kept
|
||||
under ignored `artifacts/pr-integration/` in the lead checkout. PR checks and merge
|
||||
records remain linked from each GitHub record.
|
||||
|
||||
## Remaining acceptance
|
||||
|
||||
This is an integration and execution record. Independent semantic and security
|
||||
acceptance remains separate from implementer-run checks and administrative merge
|
||||
permission. No release gates were redefined or releases created. Commercial Xbox
|
||||
game execution remains unsupported.
|
||||
|
||||
Active-block self-modifying code is tracked separately in
|
||||
[issue #291](https://github.com/MacosPorters/betterxen/issues/291); native-code cache
|
||||
reclamation remains [issue #95](https://github.com/MacosPorters/betterxen/issues/95).
|
||||
The source fixture programs, desktop instruction evidence and native Mac results
|
||||
retain their existing boundaries.
|
||||
Reference in new issue
Block a user