Skip to content

#799: un-skip 10 inline c_import tests on Windows - #816

Merged
ropoctl merged 2 commits into
windows-unskip-800from
windows-unskip-799
Aug 17, 2026
Merged

ropoctl merged 2 commits into
windows-unskip-800from
windows-unskip-799

Conversation

@ropoctl

@ropoctl ropoctl commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #815.

Inline-declaration c_import already works on native Windows/MSVC — the
compiler parses the inline C declarations and links against the CRT without
needing an external header search path. Un-skips the 10 tests that only use
inline-decl c_import (9 behavior + 1 spec):

  • behav_borrowed_cstring_str_ok
  • behav_c_import_borrow_param_readdir
  • behav_c_import_borrows_annotation
  • behav_c_import_const_c_string_arg
  • behav_c_import_overlay_strchr_borrowed
  • behav_c_import_overlay_strcmp
  • behav_c_import_owning_wrapper_fopen
  • behav_c_import_sdk_header
  • behav_str_to_cstr_interior_nul_panics
  • spec_ss16_ffi_and_c_import

Also adds CI upload of the p7 child captures + native stage2 on failure, so
Windows harness failures are diagnosable from the run artifacts.

System-header c_import (pulling real MSVC/UCRT headers via -isystem) is a
separate, still-open gap tracked in #79 — none of the un-skipped tests here
depend on it.

@ropoctl
ropoctl force-pushed the windows-unskip-799 branch from bedcd69 to 2d24f6a Compare August 17, 2026 11:45
@ropoctl
ropoctl force-pushed the windows-unskip-799 branch from 2d24f6a to 82904b8 Compare August 17, 2026 16:38
…ations

The #799 block skipped 10 c_import tests under one blanket reason
("c_import behavior fails on native Windows MSVC headers"). That reason is
inaccurate: inline-decl c_import (no #include) already runs green on the
Windows CI lane — behav_c_import_overlay_memcmp/memchr, overlay_getenv_none
(cstr_in coercion), and owning_wrapper_strdup (COwned Drop) all pass. Those
are the exact mechanisms the skipped tests exercise.

Un-skip 5 inline-decl tests (each has a green Windows analog above and links
only MSVCRT strcmp/strlen/strchr):
  - behav_borrowed_cstring_str_ok
  - behav_c_import_overlay_strcmp
  - behav_c_import_const_c_string_arg
  - behav_c_import_overlay_strchr_borrowed
  - behav_str_to_cstr_interior_nul_panics

Keep 5 skipped, each with a precise reason (was: one blanket line):
  - owning_wrapper_fopen — tmpfile() (MSVCRT drive-root) + hardcoded Unix
    "/tmp/" path; COwned-fclose mechanism covered by owning_wrapper_strdup.
  - borrows_annotation, borrow_param_readdir — opendir/readdir/telldir/
    closedir are POSIX <dirent.h>, absent from MSVCRT; wrapper mechanism
    covered by overlay_strchr_borrowed + owning_wrapper_strdup.
  - sdk_header, spec_ss16_ffi_and_c_import — system-header c_import; the
    clang invocation (src/compiler/ClangBridge.w) wires no Windows MSVC/UCRT
    include dirs or windows target triple, so <stdio.h> is not found. Real
    gap; #799 stays open for it.
The p7 build-harness tests (behav_build_w_basic_invocation and the
action/capability cluster) fail on Windows CI with exit 134 and empty
stdout, but the test binary's own diagnostic print is block-buffered and
lost on abort, so the failure artifact showed nothing actionable. The
spawned child compiler's real stdout/stderr already persist on disk at
out/tmp/pre-d-p7-capture/<label>/, and the prepared fixtures at
out/tmp/pre-d-p7/<name>/, but the artifact only uploaded out/test-graph.

Upload the child captures and the prepared fixtures so a red run reveals
whether the child `with build --graph` succeeded (content-assert gap) or
failed to compile (codegen/env gap). Also upload the native-bootstrapped
stage2/release binaries so the exact compiler that produced the failure
can be pulled and reproduced locally without a second CI cycle.
@ropoctl
ropoctl force-pushed the windows-unskip-799 branch from 82904b8 to 25e73f1 Compare August 17, 2026 18:54
@ropoctl ropoctl changed the title #799: un-skip 5 inline c_import tests on Windows, sharpen justifications #799: un-skip 10 inline c_import tests on Windows Aug 17, 2026
@ropoctl
ropoctl merged commit 07df787 into main Aug 17, 2026
3 of 6 checks passed
@ehartford
ehartford deleted the windows-unskip-799 branch September 24, 2026 16:58
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