Skip to content

[test][platform:android] #653 function-redirect-stdin tests fail on Android #655

Closed

Description

@caomengxuan666

PR #653 (fix(function): preserve call-site file stdin across child spawn, 54ec533) merged green on CI but two of its areas fail deterministically on Android (Termux, 3/3 and 2/2 runs, also failing on clean 96488f4 without any local changes — not caused by in-flight work):

  • issue647_function_redirect_stdin_regressions::function_call_file_redirect_survives_external_spawn (the PR's own new test)
  • executor_tests::command_chaining::part_054::test_function_definition_stdin_redirect_overrides_call_stdin

Both are fd-redirection + external-spawn shapes, the same family as the other Android environment failures (external process / fd-table behavior differs on this host). The sibling test function_call_file_redirect_keeps_next_read_at_shared_offset passes, so it is not a wholesale stdin failure.

Suggested disposition: confirm on a second Android host; if host-specific, gate these two behind the usual environment guard or record in the Android ledger (cf. #615). Not bundled with any in-flight PR.

Activity

  1. caomengxuan666 commented on Oct 16, 2026

    @caomengxuan666
    MemberAuthor

    Real regression found and fixed as PR #684 (branch fix/issue655-android-stdin): definition stdin now wins (GNU execute_cmd.c:5205 ordering). Pinned by the existing part_054 test (that's what caught it) — 14/14. The /usr/bin/true half is host limitation, guard PR to follow. Gate running.

  2. caomengxuan666 commented on Oct 16, 2026

    @caomengxuan666
    MemberAuthor

    Landed as #684 (squash-merged 0ccfcfc). Definition stdin wins (GNU execute_cmd.c:5205); part_054 14/14; gates identical (niu 50/49 = known load flake). The /usr/bin/true half is host limitation — guard PR to follow.

  3. caomengxuan666 commented on Oct 16, 2026

    @caomengxuan666
    MemberAuthor

    Guard landed as #687 (squash-merged 7a9a06b): both fd-offset tests resolve external true via PATH, green on Android. Issue stays closed (#684 fixed the real regression, #687 the host half).

  4. added
    tests
    on Oct 17, 2026
  5. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions