Execution platform selection for test actions in multi-platform builds #23316
Replies: 7 comments 12 replies
-
This is really interesting (and absolutely intersects with my desire to figure out how to handle test platforms as they relate to both target and exec platforms). I'd like to ask @ulfjack, @pcjanzen, and @keith to weigh in (as well as anyone else who is interested), to be sure this matches everyone's needs. |
Beta Was this translation helpful? Give feedback.
-
Hoisting this from a comment on the doc:
This is an interesting condition. I worry about custom targets platforms that add novel constraints that aren't present in any exec platform, however. Would a better approach be:
I also worry about the failure mode when no exec platform matches the target platform (using any definition of "matching"). Do we fall back to the first registered execution platform? Fail with an error? |
Beta Was this translation helpful? Give feedback.
-
I updated the proposal to make it more composable and less magic: Instead of augmenting resolution, I'm now advocating for adding a new generic test toolchain type that is the default for |
Beta Was this translation helpful? Give feedback.
-
Where is this logic handled? Inside |
Beta Was this translation helpful? Give feedback.
-
@comiusm @lberki : What's the current thinking about adding new toolchain types in |
Beta Was this translation helpful? Give feedback.
-
I'm not wild about using opt-out behavior here, would it make sense to instead make this opt-in (by having rules explicitly add @lberki , any thoughts? |
Beta Was this translation helpful? Give feedback.
-
I haven't been following this thread so I'm afraid I can only offer generalities. It looks like the motivation for this design is that The design doc seems to want to add a new special toolchain type that influence the platform resolution for tests just the right way, but if that's the right approach, why not improve |
Beta Was this translation helpful? Give feedback.
-
The official discussion of the "Execution platform selection for test actions in multi-platform builds" proposal, which aims to select a reasonable execution platform for tests by default while remaining fully configurable for test rules with more complex requirements.
Beta Was this translation helpful? Give feedback.
All reactions