Skip to content

Test cases for different use cases of generated files#1193

Merged
henryiii merged 20 commits intoscikit-build:mainfrom
eirrgang:eirrgang-editable-test-cases
Feb 2, 2026
Merged

Test cases for different use cases of generated files#1193
henryiii merged 20 commits intoscikit-build:mainfrom
eirrgang:eirrgang-editable-test-cases

Conversation

@eirrgang
Copy link
Copy Markdown
Contributor

@eirrgang eirrgang commented Dec 11, 2025

Per conference calls, these are some test cases relevant to #808 and #1160.

Use cases for which support is targeted are marked xfail for now.

We illustrate that, since inplace mode uses the build tree, we do not expect inplace editable mode to work with CMake projects whose build tree layout does not match the source tree layout. In conference calls, we decided that the only first class support would probably be for cases where the CMake install phase actually happens. This support decision warrants clarification, but is deferred to issues like #808. For now (for clarity), the unsupported cases are still in the parameterization matrix, but are annotated with pytest.mark.skip.

@eirrgang
Copy link
Copy Markdown
Contributor Author

eirrgang commented Dec 11, 2025

I'm personally most interested in the use case of being able to open a compiled library with ctypes (7bdec1e), but I figured it was worth trying to explore the edge cases of whatever machinery is in place.

@eirrgang
Copy link
Copy Markdown
Contributor Author

Should we mark.xfail the cases that don't work (to make automation happy) or should we discuss and poke at them a bit first?

@LecrisUT
Copy link
Copy Markdown
Collaborator

Awesome, will try to chevk them out saturday or late today.

Should we mark.xfail the cases that don't work (to make automation happy) or should we discuss and poke at them a bit first?

Let's first look at the mechanism of how it fails and then we should mark them xfail and revert it in #808.

Copy link
Copy Markdown
Collaborator

@LecrisUT LecrisUT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, just needs a few iterations to clean this up. I did not go through all the test failing cases, but at the first glance, it looks to fail as we are expecting it to fail currently.

@eirrgang
Copy link
Copy Markdown
Contributor Author

I'm away for a couple of weeks and didn't manage to connect with anyone on the last two Google meet calls. I'm not sure what the next steps are. Should we get the fixture change merged and then update this branch? We can chat by email if you like. Hope to chat in January. Cheers!

@LecrisUT
Copy link
Copy Markdown
Collaborator

I have beenbin UTC+7 for the last 2 meetings so couldn't join them, but yeah still waiting on a review for the fixture PR. Feel free to rebase on top of those changes though.

As for the next steps, best would be is to start looking into #808 designs. There is a reference to meson implementation in there, we justneed to do something similar. Basically construct the file tree of all known modules to sources and then make either a MultiplexedPath or Path objects.

But for now, hope you can enjoy your holidays and see you in the next year at the latest.

henryiii added a commit that referenced this pull request Dec 22, 2025
A bit of cleanup in preparation for #1193

---------

Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
Co-authored-by: Henry Schreiner <[email protected]>
Copy link
Copy Markdown
Collaborator

@LecrisUT LecrisUT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the xfailing and skipping the inplace editable mode

@henryiii henryiii force-pushed the eirrgang-editable-test-cases branch from ad04320 to a0a0ce7 Compare January 22, 2026 05:19
@eirrgang
Copy link
Copy Markdown
Contributor Author

I can't see anything other than "This job failed" for the two failing windows-latest jobs. Help?

@henryiii
Copy link
Copy Markdown
Collaborator

Github Actions was broken on Windows for a bit, with random failures. Probably just that, I'll retrigger.

@henryiii henryiii force-pushed the eirrgang-editable-test-cases branch from 9252ab8 to b881e46 Compare January 27, 2026 22:21
@henryiii henryiii merged commit cabd073 into scikit-build:main Feb 2, 2026
64 checks passed
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.

3 participants