feat/nix-android-auto-shell #1056

Merged
SakulFlee merged 3 commits from feat/nix-android-auto-shell into main 2026-11-06 16:54:14 +00:00
Owner

Automatically detects Nix-based environments and enables them for Android builds as required, outside of devshells/devenvs.

Automatically detects Nix-based environments and enables them for Android builds as required, outside of devshells/devenvs.
Expose ORBITAL_ANDROID_SHELL so the CLI can distinguish the build-only and emulator shells, and honor ORBITAL_SKIP_CLI_INSTALL when an automatic re-exec already runs the current CLI.
When an Android build or run starts in a project with a flake and nix on PATH, re-exec the current command through 'nix develop .#android'. Explicit ANDROID_HOME/ORBITAL_ANDROID_SHELL values and ORBITAL_NO_NIX_ANDROID_SHELL opt-outs are respected.
feat(cli): retry Android runs in the emulator shell
All checks were successful
Lint / lint (pull_request) Successful in 49s
Templates / templates (pull_request) Successful in 5m17s
PR / test (pull_request) Successful in 18m11s
2df4e565f8
When 'orbital run android' is in the build-only Nix Android shell and the Nix-managed SDK lacks the emulator or system image, offer to re-exec the same command inside 'nix develop .#android-emulator'. A shell marker and retry guard prevent loops.
SakulFlee deleted branch feat/nix-android-auto-shell 2026-11-06 16:54:14 +00:00

Smart test results

Result: PASS

Scope: full workspace

Reason: workspace-level change: flake.nix

Elapsed: 17m 51s

Workflow run

Overall: 515 tests, 505 passed, 0 failed, 10 skipped

Nextest: 504 tests, 504 passed, 0 failed, 0 skipped
Doctests: 11 tests, 1 passed, 0 failed, 10 skipped

Outcome charts are split between nextest and doctests. The timing chart covers nextest only.

Crate Nextest Passed Failed Skipped Doctests Time
orbital 1 1 0 0 - 0.84s
orbital-cli 3 3 0 0 - 0.07s
orbital_2d 29 29 0 0 0/1 0.37s
orbital_app 19 19 0 0 0/1 0.23s
orbital_billboard 9 9 0 0 - 0.58s
orbital_camera 8 8 0 0 - 0.11s
orbital_core 2 2 0 0 - 0.03s
orbital_debug_render 2 2 0 0 0/1 0.03s
orbital_debug_ui 50 50 0 0 0/1 0.72s
orbital_ecs 114 114 0 0 0/2 1.60s
orbital_ecs_bridge 45 45 0 0 - 0.63s
orbital_file_manager 5 5 0 0 - 0.19s
orbital_iced 25 25 0 0 - 0.32s
orbital_importer_gltf 16 16 0 0 - 0.30s
orbital_input 11 11 0 0 - 0.12s
orbital_light 6 6 0 0 - 0.07s
orbital_macros 0 0 0 0 0/1 0.00s
orbital_material_shader 2 2 0 0 - 0.02s
orbital_math 4 4 0 0 - 0.04s
orbital_mesh 2 2 0 0 - 0.02s
orbital_procgeo 3 3 0 0 - 0.05s
orbital_render_graph 6 6 0 0 - 0.07s
orbital_renderer 21 21 0 0 - 0.42s
orbital_resources 29 29 0 0 - 0.47s
orbital_shader_core 0 0 0 0 1/1 0.00s
orbital_shader_pbr 4 4 0 0 - 0.05s
orbital_shader_preprocessor 12 12 0 0 - 0.16s
orbital_shadow 3 3 0 0 - 0.04s
orbital_text 14 14 0 0 0/1 0.75s
orbital_texture 11 11 0 0 - 0.15s
orbital_touch_ui 1 1 0 0 0/1 0.01s
orbital_ui 32 32 0 0 0/1 0.45s
orbital_world_environment 13 13 0 0 - 0.20s
template_all_in_one 2 2 0 0 - 0.03s
pie showData
    title Nextest outcomes
    "Passed" : 504
pie showData
    title Doctest outcomes
    "Passed" : 1
    "Skipped" : 10
xychart-beta
    title "Slowest crates (nextest seconds)"
    x-axis ["orbital_ecs", "orbital", "orbital_text", "orbital_debug_ui", "orbital_ecs_bridge", "orbital_billboard", "orbital_resources", "orbital_ui"]
    y-axis "Seconds" 0 --> 1.7
    bar [1.60, 0.84, 0.75, 0.72, 0.63, 0.58, 0.47, 0.45]
<!-- orbital-ci-test-results --> ## Smart test results **Result:** PASS **Scope:** full workspace **Reason:** workspace-level change: flake.nix **Elapsed:** 17m 51s [Workflow run](https://forgejo.sakul-flee.de/SakulFlee/Orbital/actions/runs/1165) **Overall:** 515 tests, 505 passed, 0 failed, 10 skipped **Nextest:** 504 tests, 504 passed, 0 failed, 0 skipped **Doctests:** 11 tests, 1 passed, 0 failed, 10 skipped _Outcome charts are split between nextest and doctests. The timing chart covers nextest only._ | Crate | Nextest | Passed | Failed | Skipped | Doctests | Time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | orbital | 1 | 1 | 0 | 0 | - | 0.84s | | orbital-cli | 3 | 3 | 0 | 0 | - | 0.07s | | orbital_2d | 29 | 29 | 0 | 0 | 0/1 | 0.37s | | orbital_app | 19 | 19 | 0 | 0 | 0/1 | 0.23s | | orbital_billboard | 9 | 9 | 0 | 0 | - | 0.58s | | orbital_camera | 8 | 8 | 0 | 0 | - | 0.11s | | orbital_core | 2 | 2 | 0 | 0 | - | 0.03s | | orbital_debug_render | 2 | 2 | 0 | 0 | 0/1 | 0.03s | | orbital_debug_ui | 50 | 50 | 0 | 0 | 0/1 | 0.72s | | orbital_ecs | 114 | 114 | 0 | 0 | 0/2 | 1.60s | | orbital_ecs_bridge | 45 | 45 | 0 | 0 | - | 0.63s | | orbital_file_manager | 5 | 5 | 0 | 0 | - | 0.19s | | orbital_iced | 25 | 25 | 0 | 0 | - | 0.32s | | orbital_importer_gltf | 16 | 16 | 0 | 0 | - | 0.30s | | orbital_input | 11 | 11 | 0 | 0 | - | 0.12s | | orbital_light | 6 | 6 | 0 | 0 | - | 0.07s | | orbital_macros | 0 | 0 | 0 | 0 | 0/1 | 0.00s | | orbital_material_shader | 2 | 2 | 0 | 0 | - | 0.02s | | orbital_math | 4 | 4 | 0 | 0 | - | 0.04s | | orbital_mesh | 2 | 2 | 0 | 0 | - | 0.02s | | orbital_procgeo | 3 | 3 | 0 | 0 | - | 0.05s | | orbital_render_graph | 6 | 6 | 0 | 0 | - | 0.07s | | orbital_renderer | 21 | 21 | 0 | 0 | - | 0.42s | | orbital_resources | 29 | 29 | 0 | 0 | - | 0.47s | | orbital_shader_core | 0 | 0 | 0 | 0 | 1/1 | 0.00s | | orbital_shader_pbr | 4 | 4 | 0 | 0 | - | 0.05s | | orbital_shader_preprocessor | 12 | 12 | 0 | 0 | - | 0.16s | | orbital_shadow | 3 | 3 | 0 | 0 | - | 0.04s | | orbital_text | 14 | 14 | 0 | 0 | 0/1 | 0.75s | | orbital_texture | 11 | 11 | 0 | 0 | - | 0.15s | | orbital_touch_ui | 1 | 1 | 0 | 0 | 0/1 | 0.01s | | orbital_ui | 32 | 32 | 0 | 0 | 0/1 | 0.45s | | orbital_world_environment | 13 | 13 | 0 | 0 | - | 0.20s | | template_all_in_one | 2 | 2 | 0 | 0 | - | 0.03s | ```mermaid pie showData title Nextest outcomes "Passed" : 504 ``` ```mermaid pie showData title Doctest outcomes "Passed" : 1 "Skipped" : 10 ``` ```mermaid xychart-beta title "Slowest crates (nextest seconds)" x-axis ["orbital_ecs", "orbital", "orbital_text", "orbital_debug_ui", "orbital_ecs_bridge", "orbital_billboard", "orbital_resources", "orbital_ui"] y-axis "Seconds" 0 --> 1.7 bar [1.60, 0.84, 0.75, 0.72, 0.63, 0.58, 0.47, 0.45] ```
Sign in to join this conversation.
No description provided.