test: select campaign runner generation explicitly
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
ceb0b21719
commit
d48ff3368e
|
|
@ -798,12 +798,11 @@ for (const execution of executions) {
|
|||
});
|
||||
|
||||
try {
|
||||
const initialExperimental = await api.get<{
|
||||
enableNativeRunner: boolean;
|
||||
}>("/api/instance/settings/experimental");
|
||||
expect(initialExperimental.enableNativeRunner).toBe(false);
|
||||
// Each isolated campaign selects its generation explicitly; the app's
|
||||
// default can change without changing which runtime this cell exercises.
|
||||
const enableNativeRunner = execution.profile.generation === "native";
|
||||
await api.patch("/api/instance/settings/experimental", {
|
||||
enableNativeRunner: true,
|
||||
enableNativeRunner,
|
||||
...(execution.task.flow === "warm_three_turn"
|
||||
? { enableIsolatedWorkspaces: true }
|
||||
: {}),
|
||||
|
|
@ -813,6 +812,11 @@ for (const execution of executions) {
|
|||
: {}),
|
||||
});
|
||||
|
||||
const configuredExperimental = await api.get<{
|
||||
enableNativeRunner: boolean;
|
||||
}>("/api/instance/settings/experimental");
|
||||
expect(configuredExperimental.enableNativeRunner).toBe(enableNativeRunner);
|
||||
|
||||
fixtures = await setupLiveFixtures({
|
||||
api,
|
||||
execution,
|
||||
|
|
|
|||
Loading…
Reference in New Issue