Skip to content

Restore Helios library test compilation after checkpoint hints - #64

Closed
mark-yong wants to merge 1 commit into
NVIDIA:mainfrom
mark-yong:fix/prompt-test-checkpoint-hints
Closed

mark-yong wants to merge 1 commit into
NVIDIA:mainfrom
mark-yong:fix/prompt-test-checkpoint-hints

Conversation

@mark-yong

Copy link
Copy Markdown
Contributor

Problem

cargo test --lib for Helios doesn't compile on main:

error[E0063]: missing field `image_checkpoint_hints` in initializer of `frontend::RenderedPrompt`
   --> src/model/prompt.rs:701:28

#28 added image_checkpoint_hints to RenderedPrompt. #62 added a model::prompt test that builds RenderedPrompt without it. Each PR built on its own, but together they break the library test build. Production code is unaffected.

Change

The test sets image_checkpoint_hints: vec![], matching the other prompt tests in the file. It checks Gemma output-start detection and involves no image hints.

Validation

  • On main with this change, the Helios library tests compile: 945 passed, including the affected prompt test.
  • 4 engram::reader tests fail because the test host can't register staging memory (ENOMEM). They fail the same way in every build there and are unrelated.
  • rustfmt reports no new differences in the file.

Messages cache checkpoint hints (NVIDIA#28) added image_checkpoint_hints to
RenderedPrompt, and the Gemma 4 parser change (NVIDIA#62) added a model::prompt
test that builds RenderedPrompt without it. Each change built alone, but
together `cargo test --lib` for Helios no longer compiles on main. The test
now sets the field to empty, matching the other prompt tests; no image
hints are involved in what it checks.

Validation: on main with this change, the Helios library tests compile and
945 pass, including the affected prompt test. The four engram::reader tests
fail on the test host registering staging memory (ENOMEM), as on every
build there. Production code is unchanged.

Design-Signed-Off-By: Cursor Agent (Auto); design-review=6aeb
@mark-yong

Copy link
Copy Markdown
Contributor Author

Closed: upstream main already carries this fix. e952c8a7 ("Keep frontend and CLI checks aligned with recipe contracts") added image_checkpoint_hints: vec![] to the same Gemma output-start test in helios/src/model/prompt.rs, so the library test build compiles on main without this change. Rebasing this branch onto current main drops the commit as empty ("patch contents already upstream"), so there is nothing left to merge and no replacement PR is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant