Skip to content

Warp toolbar test: install the headless runtime so main's CI is green again - #860

Merged
FredApps merged 1 commit into
mainfrom
fix/warp-toolbar-test-headless
Nov 26, 2026
Merged

FredApps merged 1 commit into
mainfrom
fix/warp-toolbar-test-headless

Conversation

@FredApps

@FredApps FredApps commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Main's CI has been red since #837 merged (runs 45765268827 and 45770655983): frame_gizmo::warp_toolbar::tests::place_on_surface_keeps_a_warp_on_its_own_texture_set builds its egui_kittest harness without framework::install_headless, which the framework runtime needs since #800, and panics with "the runtime plugin's hooks did not run for the previous pass". Every other harness in the crate installs it.

One line of test setup, no behaviour change. It also unblocks open PRs whose Ubuntu leg stops at this unit-test failure before the integration tests run (for example #827).

Found while reviewing #827; no linked issue.

Summary by CodeRabbit

  • Tests
    • Updated a test to initialize its framework context before running.

Main's CI has failed since #837 merged: place_on_surface_keeps_a_warp_on_its_own_texture_set
builds its harness without framework::install_headless, which the framework
runtime needs since #800, and panics with "the runtime plugin's hooks did not
run". Every other harness already installs it.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The warp toolbar test now installs the headless framework context in its Harness builder before it builds the eframe app.

Changes: Warp toolbar test setup

Layer / File(s) Summary
Install headless test context
crates/ui-egui/src/frame_gizmo/warp_toolbar/mod.rs
The test harness builder calls with_context_setup(crate::framework::install_headless) before building the eframe app.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Other

Suggested reviewers: chasse20, vangel76

Merge Risk: Minimal · up to 3695d

This change only adds headless setup to a toolbar test harness so the test stops panicking in CI. It does not alter runtime behavior, and the risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: the warp toolbar test now installs the headless runtime. The raw summary confirms the test harness for place_on_surface_keeps_a_warp_on_its_own_texture_set now calls framew…
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.
Full details: Title check

Explanation

The title names the change: the warp toolbar test now installs the headless runtime. The raw summary confirms the test harness for place_on_surface_keeps_a_warp_on_its_own_texture_set now calls framework::install_headless, which matches the objective of fixing the CI failure. The title is specific and on-topic. It also names the CI motivation, which is acceptable but slightly longer than needed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 356f01b and 3695db1.

Files selected for processing: 1

  • crates/ui-egui/src/frame_gizmo/warp_toolbar/mod.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.

@FredApps
FredApps merged commit 684f71b into main Nov 26, 2026
18 checks passed
@FredApps

Copy link
Copy Markdown
Contributor Author

Merged as 684f71b. Gate was green on Ubuntu and Windows (run 45786648832); the change is one line of test setup that gives the warp toolbar test's harness the headless framework runtime, so main's CI is green again after #837/#800. Unblocks the Ubuntu leg of open PRs such as #827.

FredApps added a commit to Rebornim/texturecraft that referenced this pull request Nov 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

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