helloadhavan/github_issues huggingface dataset:
Repository: facebook/react
Pull request: Recover from SSR error in Flight fixture

If an error happens before the shell, we need to handle it. In this case we choose the strategy of rendering a blank document and client rendering the app. Which will intentionally have a hydration mismatch.

Changed files:
filename: fixtures/flight/server/global.js
patch: @@ -174,8 +174,19 @@ app.all('/', async function (req, res, next) {
       const {pipe} = renderToPipeableStream(React.createElement(Root), {
         bootstrapScripts: mainJSChunks,
         formState: formState,
+        onShellReady() {
+          pipe(res);
+        },
+        onShellError(error) {
+          const {pipe: pipeError} = renderToPipeableStream(
+            React.createElement('html', null, React.createElement('body')),
+            {
+              bootstrapScripts: mainJSChunks,
+            }
+          );
+          pipeError(res);
+        },
       });
-      pipe(res);
     } catch (e) {
       console.error(`Failed to SSR: ${e.stack}`);
       res.statusCode = 500;

filename: fixtures/flight/server/region.js
patch: @@ -103,13 +103,8 @@ app.get('/', async function (req, res) {
 });
 
 app.post('/', bodyParser.text(), async function (req, res) {
-  const {
-    renderToPipeableStream,
-    decodeReply,
-    decodeReplyFromBusboy,
-    decodeAction,
-    decodeFormState,
-  } = await import('react-server-dom-webpack/server');
+  const {decodeReply, decodeReplyFromBusboy, decodeAction, decodeFormState} =
+    await import('react-server-dom-webpack/server');
   const serverReference = req.get('rsc-action');
   if (serverReference) {
     // This is the client-side case
Repository: ollama/ollama
Pull request: remove add cmd

🧹 

Changed files:
filename: README.md
patch: @@ -55,22 +55,6 @@ List available local models
 models = ollama.models()
 ```
 
-### `ollama.serve()`
-
-Serve the ollama http server
-
-```
-ollama.serve()
-```
-
-### `ollama.add(filepath)`
-
-Add a model by importing from a file
-
-```python
-ollama.add("./path/to/model")
-```
-
 ### `ollama.load(model)`
 
 Manually a model for generation

filename: ollama/cmd/cli.py
patch: @@ -29,10 +29,6 @@ def main():
     generate_parser.add_argument("prompt", nargs="?")
     generate_parser.set_defaults(fn=generate)
 
-    add_parser = subparsers.add_parser("add")
-    add_parser.add_argument("model")
-    add_parser.set_defaults(fn=add)
-
     pull_parser = subparsers.add_parser("pull")
     pull_parser.add_argument("model")
     pull_parser.set_defaults(fn=pull)
@@ -115,10 +111,6 @@ def generate_batch(*args, **kwargs):
         generate_oneshot(*args, **kwargs)
 
 
-def add(model, models_home):
-    os.rename(model, Path(models_home) / Path(model).name)
-
-
 def pull(*args, **kwargs):
     model.pull(*args, **kwargs)
Repository: vercel/next.js
Pull request: Strip internals from `NextRequest` types

`next/server#NextRequest` used to be shipped with an internal field that was only accessible with a unique symbol. This means that `NextRequest`s from two different Next.js versions are not assignable in TypeScript even though all other fields match.

This is problematic for monorepos where dependencies have a peer on Next.js but also install their own version for development. 

```
app
| (direct) next@15.1
| (direct) package@workspace
package
| (dev-direct) next@15.0
| (peer) next@15.x
```

If `package` has a method that accepts a `NextRequest`, you would now have to pass a `NextRequest` from `15.0` even though `package` claims it's compatible with 15.x. TypeScript should check that compatibility claim structurally. But we effectively made `NextRequest` nominally type-checked which isn't supported by TypeScript. The branding hacks you'll find in the wild are hacks for a reason. They work in small scopes but not when applied to the NPM ecosystem.

Changed files:
filename: packages/next/src/server/web/spec-extension/request.ts
patch: @@ -12,6 +12,7 @@ export const INTERNALS = Symbol('internal request')
  * Read more: [Next.js Docs: `NextRequest`](https://nextjs.org/docs/app/api-reference/functions/next-request)
  */
 export class NextRequest extends Request {
+  /** @internal */
   [INTERNALS]: {
     cookies: RequestCookies
     url: string
Repository: ollama/ollama
Pull request: fix imports

import os as os to avoid ambiguity between local symbols and imported symbols

Changed files:
filename: ollama/engine.py
patch: @@ -1,5 +1,6 @@
-from os import path, dup, dup2, devnull
+import os
 import sys
+from os import path
 from contextlib import contextmanager
 from llama_cpp import Llama as LLM
 
@@ -9,12 +10,12 @@
 
 @contextmanager
 def suppress_stderr():
-    stderr = dup(sys.stderr.fileno())
-    with open(devnull, "w") as devnull:
-        dup2(devnull.fileno(), sys.stderr.fileno())
+    stderr = os.dup(sys.stderr.fileno())
+    with open(os.devnull, "w") as devnull:
+        os.dup2(devnull.fileno(), sys.stderr.fileno())
         yield
 
-    dup2(stderr, sys.stderr.fileno())
+    os.dup2(stderr, sys.stderr.fileno())
 
 
 def generate(model, prompt, models_home=".", llms={}, *args, **kwargs):
Repository: ggml-org/llama.cpp
Pull request: HIP: add myself as codeowner

Theoretically id like to see every pr that touches ggml-cuda to inspect how/if it impacts the hip backend.
If you believe it appropriate i would also take `/ggml/src/ggml-cuda/` with the understanding that i review only hip/amd specifics in this path.


Changed files:
filename: CODEOWNERS
patch: @@ -59,6 +59,9 @@
 /ggml/src/ggml-cuda/mmq.*               @JohannesGaessler
 /ggml/src/ggml-cuda/mmvf.*              @JohannesGaessler
 /ggml/src/ggml-cuda/mmvq.*              @JohannesGaessler
+/ggml/src/ggml-cuda/fattn-wmma*         @IMbackK
+/ggml/src/ggml-hip/                     @IMbackK
+/ggml/src/ggml-cuda/vendors/hip.h       @IMbackK
 /ggml/src/ggml-impl.h                   @ggerganov @slaren
 /ggml/src/ggml-metal/                   @ggerganov
 /ggml/src/ggml-opencl/                  @lhez @max-krasnyansky
Repository: ollama/ollama
Pull request: update generate to yield object


Changed files:
filename: ollama/cmd/cli.py
patch: @@ -1,6 +1,5 @@
 import os
 import sys
-import json
 from pathlib import Path
 from argparse import ArgumentParser
 
@@ -71,7 +70,6 @@ def generate_oneshot(*args, **kwargs):
     print(flush=True)
 
     for output in engine.generate(*args, **kwargs):
-        output = json.loads(output)
         choices = output.get("choices", [])
         if len(choices) > 0:
             print(choices[0].get("text", ""), end="", flush=True)

filename: ollama/cmd/server.py
patch: @@ -1,5 +1,6 @@
-from aiohttp import web
+import json
 import aiohttp_cors
+from aiohttp import web
 
 from ollama import engine
 
@@ -89,7 +90,8 @@ async def generate(request):
     }
 
     for output in engine.generate(model, prompt, **kwargs):
-        await response.write(output.encode("utf-8"))
+        output = json.dumps(output).encode('utf-8')
+        await response.write(output)
         await response.write(b"\n")
 
     return response

filename: ollama/engine.py
patch: @@ -33,7 +33,7 @@ def generate(model, prompt, models_home=".", llms={}, *args, **kwargs):
         kwargs.update({"stream": True})
 
     for output in llm(prompt, *args, **kwargs):
-        yield json.dumps(output)
+        yield output
 
 
 def load(model, models_home=".", llms={}):
Repository: ggml-org/llama.cpp
Pull request: CI: reenable cdna in rocm docker builds

@slaren as discussed in #16305 


Changed files:
filename: .devops/rocm.Dockerfile
patch: @@ -16,7 +16,7 @@ FROM ${BASE_ROCM_DEV_CONTAINER} AS build
 # gfx803, gfx900, gfx906, gfx1032, gfx1101, gfx1102,not officialy supported
 # check https://rocm.docs.amd.com/projects/install-on-linux/en/docs-6.4.1/reference/system-requirements.html
 
-ARG ROCM_DOCKER_ARCH='gfx803;gfx900;gfx906;gfx1010;gfx1030;gfx1032;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201;gfx1151'
+ARG ROCM_DOCKER_ARCH='gfx803;gfx900;gfx906;gfx908;gfx90a;gfx942;gfx1010;gfx1030;gfx1032;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201;gfx1151'
 #ARG ROCM_DOCKER_ARCH='gfx1151'
 
 # Set ROCm architectures
Repository: ollama/ollama
Pull request: batch model

add a batch model which is distinct in the way the prompts are displayed to the user. this produces a cleaner output without a trailing `>>>`

Changed files:
filename: ollama/cmd/cli.py
patch: @@ -54,36 +54,45 @@ def list_models(*args, **kwargs):
 def generate(*args, **kwargs):
     if prompt := kwargs.get('prompt'):
         print('>>>', prompt, flush=True)
-        print(flush=True)
         generate_oneshot(*args, **kwargs)
-        print(flush=True)
         return
 
-    return generate_interactive(*args, **kwargs)
+    if sys.stdin.isatty():
+        return generate_interactive(*args, **kwargs)
+
+    return generate_batch(*args, **kwargs)
 
 
 def generate_oneshot(*args, **kwargs):
+    print(flush=True)
+
     for output in engine.generate(*args, **kwargs):
         output = json.loads(output)
         choices = output.get("choices", [])
         if len(choices) > 0:
             print(choices[0].get("text", ""), end="", flush=True)
 
     # end with a new line
-    print()
+    print(flush=True)
+    print(flush=True)
 
 
 def generate_interactive(*args, **kwargs):
-    print('>>> ', end='', flush=True)
-    for line in sys.stdin:
-        if not sys.stdin.isatty():
-            print(line, end='')
+    while True:
+        print('>>> ', end='', flush=True)
+        line = next(sys.stdin)
+        if not line:
+            return
 
-        print(flush=True)
-        kwargs.update({'prompt': line})
+        kwargs.update({"prompt": line})
+        generate_oneshot(*args, **kwargs)
+
+
+def generate_batch(*args, **kwargs):
+    for line in sys.stdin:
+        print('>>> ', line, end='', flush=True)
+        kwargs.update({"prompt": line})
         generate_oneshot(*args, **kwargs)
-        print(flush=True)
-        print('>>> ', end='', flush=True)
 
 
 def add(model, models_home):

filename: ollama/engine.py
patch: @@ -45,7 +45,7 @@ def load(model, models_home=".", llms={}):
 
         if not model_path:
             # try loading this as a path to a model, rather than a model name
-            model_path = model
+            model_path = os.path.abspath(model)
 
         # suppress LLM's output
         with suppress_stderr():
Repository: ollama/ollama
Pull request: update development.md


Changed files:
filename: README.md
patch: @@ -20,6 +20,15 @@ Run ai models locally.
 pip install ollama
 ```
 
+## Install From Source
+
+```
+git clone git@github.com:jmorganca/ollama ollama
+cd ollama
+pip install -r requirements.txt
+pip install -e .
+```
+
 ## Quickstart
 
 ```

filename: docs/development.md
patch: @@ -1,48 +1,33 @@
 # Development
 
-ollama is built and run using [Poetry](https://python-poetry.org/).
-
-## Running
-
-**Start backend service:**
-
-Install dependencies:
+ollama is built using Python 3 and uses [Poetry](https://python-poetry.org/) to manage dependencies and build packages.
 
 ```
-poetry install --extras server
+pip install poetry
 ```
 
-Run a server:
+Install ollama and its dependencies:
 
 ```
-poetry run ollama serve
+poetry install --extras server --with dev
 ```
 
-## Building
+Run ollama server:
 
-If using Apple silicon, you need a Python version that supports arm64:
-
-```bash
-wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh
-bash Miniforge3-MacOSX-arm64.sh
 ```
-
-Get the dependencies:
-
-```bash
-poetry install --extras server
+poetry run ollama server
 ```
 
-Then build a binary for your current platform:
+Update dependencies:
 
-```bash
-poetry build
+```
+poetry update --extras server --with dev
+poetry lock
+poetry export >requirements.txt
 ```
 
-## Update requirements.txt
-
-In the root directory, run:
+Build binary package:
 
 ```
-pipreqs . --force
+poetry build
 ```

filename: pyproject.toml
patch: @@ -2,7 +2,7 @@
 name = "ollama"
 version = "0.0.2"
 description = "Run ai models locally"
-authors = ["Ollama team"]
+authors = ["ollama team"]
 readme = "README.md"
 packages = [{include = "ollama"}]
 scripts = {ollama = "ollama.cmd.cli:main"}
Repository: denoland/deno
Pull request: feat: allow base64 ca cert in args

This allows loading a base64 encoded cert directly from arg/env by prefixing it with `base64:`

Changed files:
filename: Cargo.lock
patch: @@ -2190,6 +2190,7 @@ name = "deno_lib"
 version = "0.25.0"
 dependencies = [
  "aws-lc-rs",
+ "base64 0.22.1",
  "capacity_builder",
  "deno_error",
  "deno_fs",

filename: cli/args/flags.rs
patch: @@ -6174,7 +6174,7 @@ fn reload_arg_parse(
 }
 
 fn ca_file_arg_parse(flags: &mut Flags, matches: &mut ArgMatches) {
-  flags.ca_data = matches.remove_one::<String>("cert").map(CaData::File);
+  flags.ca_data = matches.remove_one::<String>("cert").and_then(CaData::parse);
 }
 
 fn enable_testing_features_arg_parse(
@@ -9809,6 +9809,28 @@ mod tests {
     );
   }
 
+  #[test]
+  fn run_with_base64_cafile() {
+    let r = flags_from_vec(svec![
+      "deno",
+      "run",
+      "--cert",
+      "base64:bWVvdw==",
+      "script.ts"
+    ]);
+    assert_eq!(
+      r.unwrap(),
+      Flags {
+        subcommand: DenoSubcommand::Run(RunFlags::new_default(
+          "script.ts".to_string(),
+        )),
+        ca_data: Some(CaData::Bytes(b"meow".into())),
+        code_cache_enabled: true,
+        ..Flags::default()
+      }
+    );
+  }
+
   #[test]
   fn run_with_enable_testing_features() {
     let r = flags_from_vec(svec![

filename: cli/lib/Cargo.toml
patch: @@ -15,6 +15,7 @@ path = "lib.rs"
 
 [dependencies]
 aws-lc-rs.workspace = true
+base64.workspace = true
 capacity_builder.workspace = true
 deno_error.workspace = true
 deno_fs = { workspace = true, features = ["sync_fs"] }

filename: cli/lib/args.rs
patch: @@ -4,6 +4,8 @@ use std::io::BufReader;
 use std::io::Cursor;
 use std::path::PathBuf;
 
+use base64::prelude::Engine;
+use base64::prelude::BASE64_STANDARD;
 use deno_npm::resolution::PackageIdNotFoundError;
 use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot;
 use deno_npm_installer::process_state::NpmProcessState;
@@ -42,11 +44,20 @@ pub fn has_flag_env_var(name: &str) -> bool {
 pub enum CaData {
   /// The string is a file path
   File(String),
-  /// This variant is not exposed as an option in the CLI, it is used internally
-  /// for standalone binaries.
+  /// The string holds the actual certificate
   Bytes(Vec<u8>),
 }
 
+impl CaData {
+  pub fn parse(input: String) -> Option<Self> {
+    if let Some(x) = input.strip_prefix("base64:") {
+      Some(CaData::Bytes(BASE64_STANDARD.decode(x).ok()?))
+    } else {
+      Some(CaData::File(input))
+    }
+  }
+}
+
 #[derive(Error, Debug, Clone, deno_error::JsError)]
 #[class(generic)]
 pub enum RootCertStoreLoadError {
@@ -114,8 +125,8 @@ pub fn get_root_cert_store(
     }
   }
 
-  let ca_data =
-    maybe_ca_data.or_else(|| std::env::var("DENO_CERT").ok().map(CaData::File));
+  let ca_data = maybe_ca_data
+    .or_else(|| std::env::var("DENO_CERT").ok().and_then(CaData::parse));
   if let Some(ca_data) = ca_data {
     let result = match ca_data {
       CaData::File(ca_file) => {
Repository: vercel/next.js
Pull request: Grammar fix on forms.mdx

grammar nit: "an API" is singular



Changed files:
filename: docs/02-pages/02-guides/forms.mdx
patch: @@ -8,7 +8,7 @@ Forms enable you to create and update data in web applications. Next.js provides
 
 ## Server Forms
 
-To handle form submissions on the server, create an API endpoint securely mutate data.
+To handle form submissions on the server, create an API endpoint that securely mutates data.
 
 ```ts filename="pages/api/submit.ts" switcher
 import type { NextApiRequest, NextApiResponse } from 'next'
Repository: denoland/deno
Pull request: test(ext/node): enable parallel/test-crypto-keygen-missing-oid.js

This test case seems just working without change, and can be updated to the latest.

Changed files:
filename: tests/node_compat/config.jsonc
patch: @@ -44,7 +44,6 @@
       "test-console-instance.js",
       "test-console-tty-colors.js",
       "test-crypto-hmac.js",
-      "test-crypto-keygen-missing-oid.js",
       "test-crypto-no-algorithm.js",
       "test-crypto-prime.js",
       "test-crypto-publicDecrypt-fails-first-time.js",

filename: tests/node_compat/test/parallel/test-crypto-keygen-missing-oid.js
patch: @@ -2,7 +2,7 @@
 // deno-lint-ignore-file
 
 // Copyright Joyent and Node contributors. All rights reserved. MIT license.
-// Taken from Node 20.11.1
+// Taken from Node 23.9.0
 // This file is automatically generated by `tests/node_compat/runner/setup.ts`. Do not modify this file manually.
 
 'use strict';
@@ -18,6 +18,8 @@ const {
   getCurves,
 } = require('crypto');
 
+const { hasOpenSSL3 } = require('../common/crypto');
+
 // This test creates EC key pairs on curves without associated OIDs.
 // Specifying a key encoding should not crash.
 {
@@ -27,7 +29,7 @@ const {
         continue;
 
       const expectedErrorCode =
-        common.hasOpenSSL3 ? 'ERR_OSSL_MISSING_OID' : 'ERR_OSSL_EC_MISSING_OID';
+        hasOpenSSL3 ? 'ERR_OSSL_MISSING_OID' : 'ERR_OSSL_EC_MISSING_OID';
       const params = {
         namedCurve,
         publicKeyEncoding: {
Repository: denoland/deno
Pull request: fix(ext/node): support KeyObject in publicEncrypt/privateDecrypt

This PR adds support of `KeyObject` input for `private(Encrypt|Decrypt)` and `publicEncrypt`.

related #29637 

Changed files:
filename: ext/node/polyfills/internal/crypto/cipher.ts
patch: @@ -35,6 +35,7 @@ import {
   getArrayBufferOrView,
   KeyObject,
 } from "ext:deno_node/internal/crypto/keys.ts";
+import { isKeyObject } from "ext:deno_node/internal/crypto/_keys.ts";
 import type { BufferEncoding } from "ext:deno_node/_global.d.ts";
 import type {
   BinaryLike,
@@ -521,10 +522,15 @@ export function publicEncrypt(
 
 export function prepareKey(key) {
   // TODO(@littledivy): handle these cases
-  // - node KeyObject
   // - web CryptoKey
   if (isStringOrBuffer(key)) {
     return { data: getArrayBufferOrView(key, "key") };
+  } else if (isKeyObject(key) && key.type === "public") {
+    const data = key.export({ type: "spki", format: "pem" });
+    return { data: getArrayBufferOrView(data, "key") };
+  } else if (isKeyObject(key) && key.type === "private") {
+    const data = key.export({ type: "pkcs8", format: "pem" });
+    return { data: getArrayBufferOrView(data, "key") };
   } else if (typeof key == "object") {
     const { key: data, encoding } = key;
     if (!isStringOrBuffer(data)) {

filename: tests/unit_node/crypto/crypto_cipher_test.ts
patch: @@ -61,6 +61,19 @@ Deno.test({
   },
 });
 
+Deno.test({
+  name: "encrypt decrypt with KeyObject",
+  fn() {
+    const pair = crypto.generateKeyPairSync("rsa", { modulusLength: 512 });
+    const secret = Buffer.from("secret");
+    const encrypted = crypto.publicEncrypt(pair.publicKey, secret);
+    assert(Buffer.isBuffer(encrypted));
+    const decrypted = crypto.privateDecrypt(pair.privateKey, encrypted);
+    assert(Buffer.isBuffer(decrypted));
+    assertEquals(decrypted, secret);
+  },
+});
+
 Deno.test({
   name: "rsa public decrypt fail",
   fn() {
Repository: electron/electron
Pull request: perf: don't wait for thumbnails if they were not requested on macOS

Backport of #46138

See that PR for details.


Notes: Improved performance of desktopCapturer.getSources when not requesting thumbnails on macOS.


Changed files:
filename: shell/browser/api/electron_api_desktop_capturer.cc
patch: @@ -326,8 +326,9 @@ void DesktopCapturer::StartHandling(bool capture_window,
         window_capturer_->SetThumbnailSize(thumbnail_size);
 #if BUILDFLAG(IS_MAC)
         window_capturer_->skip_next_refresh_ =
-            ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kWindow) ? 2
-                                                                           : 0;
+            ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kWindow)
+                ? thumbnail_size.IsEmpty() ? 1 : 2
+                : 0;
 #endif
 
         OnceCallback update_callback = base::BindOnce(
@@ -356,8 +357,9 @@ void DesktopCapturer::StartHandling(bool capture_window,
         screen_capturer_->SetThumbnailSize(thumbnail_size);
 #if BUILDFLAG(IS_MAC)
         screen_capturer_->skip_next_refresh_ =
-            ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kScreen) ? 2
-                                                                           : 0;
+            ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kScreen)
+                ? thumbnail_size.IsEmpty() ? 1 : 2
+                : 0;
 #endif
 
         OnceCallback update_callback = base::BindOnce(

filename: spec/api-desktop-capturer-spec.ts
patch: @@ -67,6 +67,22 @@ ifdescribe(!process.arch.includes('arm') && process.platform !== 'win32')('deskt
     }
   });
 
+  it('enabling thumbnail should return non-empty images', async () => {
+    const w2 = new BrowserWindow({ show: false, width: 200, height: 200, webPreferences: { contextIsolation: false } });
+    const wShown = once(w2, 'show');
+    w2.show();
+    await wShown;
+
+    const isNonEmpties: boolean[] = (await desktopCapturer.getSources({
+      types: ['window', 'screen'],
+      thumbnailSize: { width: 100, height: 100 }
+    })).map(s => s.thumbnail.constructor.name === 'NativeImage' && !s.thumbnail.isEmpty());
+
+    w2.destroy();
+    expect(isNonEmpties).to.be.an('array').that.is.not.empty();
+    expect(isNonEmpties.every(e => e === true)).to.be.true();
+  });
+
   it('disabling thumbnail should return empty images', async () => {
     const w2 = new BrowserWindow({ show: false, width: 200, height: 200, webPreferences: { contextIsolation: false } });
     const wShown = once(w2, 'show');
Repository: vercel/next.js
Pull request: [next-dev] Set `TURBOPACK` env before loading config

### Why?

In `next dev`, `process.env.TURBOPACK` was set after `loadConfig`, which caused the `process.env.TURBOPACK` conditions within the initial `loadConfig` calls to be skipped unexpectedly.

Changed files:
filename: packages/next/src/cli/next-dev.ts
patch: @@ -161,6 +161,15 @@ const nextDev = async (
   portSource: PortSource,
   directory?: string
 ) => {
+  const isTurbopack = Boolean(
+    options.turbo || options.turbopack || process.env.IS_TURBOPACK_TEST
+  )
+  if (isTurbopack) {
+    process.env.TURBOPACK = '1'
+  }
+
+  isTurboSession = isTurbopack
+
   dir = getProjectDir(process.env.NEXT_PRIVATE_DEV_DIR || directory)
 
   // Check if pages dir exists and warn if not
@@ -238,15 +247,6 @@ const nextDev = async (
     hostname: host,
   }
 
-  const isTurbopack = Boolean(
-    options.turbo || options.turbopack || process.env.IS_TURBOPACK_TEST
-  )
-  if (isTurbopack) {
-    process.env.TURBOPACK = '1'
-  }
-
-  isTurboSession = isTurbopack
-
   const distDir = path.join(dir, config.distDir ?? '.next')
   setGlobal('phase', PHASE_DEVELOPMENT_SERVER)
   setGlobal('distDir', distDir)
Repository: denoland/deno
Pull request: test(lib): fix SIGSEGV on x86_64-unknown-linux-gnu targets

Fixes #29793.

This PR reapplies https://github.com/denoland/deno/pull/22152 (see issue for further details).

Changes `deno_core` in tests to be built with the `unsafe_use_unprotected_platform` feature.

The issue is caused by two or more threads (in Deno's test suite, tests are spread out across worker threads) in the same process accessing v8's isolates (see https://github.com/denoland/deno_core/pull/471 for further details).






Changed files:
filename: Cargo.lock
patch: @@ -892,6 +892,7 @@ dependencies = [
  "chrono",
  "deno_bench_util",
  "deno_cache_dir",
+ "deno_core",
  "deno_lockfile 0.30.1",
  "deno_semver",
  "deno_terminal 0.2.2",

filename: tests/Cargo.toml
patch: @@ -35,6 +35,7 @@ bytes.workspace = true
 chrono = { workspace = true, features = ["now"] }
 deno_bench_util.workspace = true
 deno_cache_dir.workspace = true
+deno_core = { workspace = true, features = ["unsafe_use_unprotected_platform"] }
 deno_lockfile.workspace = true
 deno_semver.workspace = true
 deno_terminal.workspace = true