Skip to content

test: embed generated source in the archived transmute guard - #548

Closed
thanosapollo wants to merge 1 commit into
eval-exec:mainfrom
thanosapollo:upstream/archive-transmute-guard-r021
Closed

thanosapollo wants to merge 1 commit into
eval-exec:mainfrom
thanosapollo:upstream/archive-transmute-guard-r021

Conversation

@thanosapollo

Copy link
Copy Markdown
Contributor

Found while investigating the archived core-test failure in main CI run 38017735406: production_transmute_count_can_only_decrease tries to reopen x11_colors.rs in the producer's OUT_DIR, which is absent on the shard runner.

Embed that generated source at compile time and parse it through the existing walker. The ceiling remains six; generated code is still counted, ordinary includes are still read, and unsupported include forms still fail closed. No production or Lisp semantics change.

Tests against upstream base baba54d9ae9b:

  • Base: 4/4 focused controls pass; archived execution with producer build directories hidden passes 3/4 and reproduces the missing-file failure.
  • Regression-first generated-source check fails before the walker correction (zero sites instead of two).
  • Candidate: 6/6 focused controls and 6/6 archived controls pass, including generated-source scanning and unsupported-include rejection.

Used nextest archive extraction and workspace remapping as in the shard workflow, with an unprivileged mount namespace hiding producer build directories. No generated assets borrowed from another worktree. This verifies the focused guard, not the full suite.

This PR is agent-assisted.

Archived nextest shards do not retain the producer OUT_DIR. Embed x11_colors.rs at compile time and scan that source instead of reopening its build path. Keep the ceiling at six and reject unsupported includes.

The pure upstream base passes four focused tests but its archived run fails on missing x11_colors.rs. The regression-first generated-source check fails before the walker correction; all six candidate controls pass directly and from the archive with producer build directories hidden. This changes test infrastructure only, not Lisp/GNU semantics.
@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2640cad7-8eaf-460d-a8ce-dac3b71af355

📥 Commits

Reviewing files that changed from the base of the PR and between 454d584 and 7aa2a67.


📒 Files selected for processing (1)
  • crates/neovm-core/src/emacs_core/tests/architecture/transmute_guard_test.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.



📝 Walkthrough

Walkthrough

The transmute guard now scans embedded x11_colors.rs source for matching includes. The walker separates file reading from source parsing, and tests cover generated-source scanning and unresolved include paths.

Changes

Generated Source Scanning

Layer / File(s) Summary
Walker and generated include
crates/neovm-core/src/emacs_core/tests/architecture/transmute_guard_test.rs
The walker accepts source text separately from file reading. It scans embedded x11_colors.rs for matching includes and adds tests for generated-source scanning and unresolved include paths.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: eval-exec


Merge Risk: ⚪ Minimal · up to 7aa2a

No actionable merge risk is identified for this test-only change; it is ready for normal checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check Passed The description clearly explains the archived test failure and the compile-time embedding fix. It also states the validation performed and the unchanged transmute ceiling.
Title check Passed The title concisely identifies the test change and the main implementation: embedding generated source in the archived transmute guard.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

@coderabbitai
coderabbitai Bot requested a review from eval-exec October 10, 2026 10:17
@eval-exec eval-exec added the status: needs-verification Reported results not yet independently reproduced label Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs-verification Reported results not yet independently reproduced

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants