helloadhavan/github_issues huggingface dataset:
Repository: vercel/next.js
Pull request: [sourcemaps] Don't check for vendor chunks when Node.js 18 is used

`module.findSourceMap` is horribly slow in Node.js 18 (EOL) when it parses the source map. 

We still officially support it so I just disabled the check for Node.js. Lower fidelity in naming React Performance track and more bandwidth used in dev is preferable over waiting 10s+ for a page request.

I didn't add a warning because that's unactionable for people stuck on Node.js 18. With Next.js 16, we can revisit if we want to drop Node.js 18

Changed files:
filename: packages/next/src/server/lib/source-maps.ts
patch: @@ -1,7 +1,13 @@
+import type { SourceMap } from 'module'
+
+function noSourceMap(): SourceMap | undefined {
+  return undefined
+}
+
 // Edge runtime does not implement `module`
-const findSourceMap =
+const nativeFindSourceMap =
   process.env.NEXT_RUNTIME === 'edge'
-    ? () => undefined
+    ? noSourceMap
     : (require('module') as typeof import('module')).findSourceMap
 
 /**
@@ -95,6 +101,13 @@ export function findApplicableSourceMapPayload(
 
 const didWarnAboutInvalidSourceMapDEV = new Set<string>()
 
+const findSourceMap: (scriptNameOrSourceURL: string) => SourceMap | undefined =
+  process.env.NEXT_RUNTIME === 'nodejs' &&
+  process.versions.node?.startsWith('18')
+    ? // Node.js 18 has a horribly slow `findSourceMap` implementation
+      noSourceMap
+    : nativeFindSourceMap
+
 export function filterStackFrameDEV(
   sourceURL: string,
   functionName: string,
Repository: huggingface/transformers
Pull request: Torchdec RuntimeError catch 

# What does this PR do ? 

This PR fixes an issue with torchcodec in print_env.py. We forgot to deal with the case where torchcodec raises a RuntimeError error. Currently some of our training [ci](https://github.com/huggingface/transformers/actions/runs/16433389284/job/46438805785) are not running because of that. 

Changed files:
filename: utils/print_env.py
patch: @@ -81,5 +81,5 @@
     print("FFmpeg version:", versions["ffmpeg_version"])
 except ImportError:
     print("FFmpeg version:", None)
-except (AttributeError, KeyError):
+except (AttributeError, KeyError, RuntimeError):
     print("Failed to get FFmpeg version")
Repository: facebook/react
Pull request: Convert SyntheticWheelEvent-test.js to createRoot


Changed files:
filename: packages/react-dom/src/events/__tests__/SyntheticWheelEvent-test.js
patch: @@ -10,32 +10,38 @@
 'use strict';
 
 let React;
-let ReactDOM;
+let ReactDOMClient;
+let act;
 
 describe('SyntheticWheelEvent', () => {
   let container;
+  let root;
 
   beforeEach(() => {
     React = require('react');
-    ReactDOM = require('react-dom');
+    ReactDOMClient = require('react-dom/client');
+    act = require('internal-test-utils').act;
 
     // The container has to be attached for events to fire.
     container = document.createElement('div');
     document.body.appendChild(container);
+    root = ReactDOMClient.createRoot(container);
   });
 
   afterEach(() => {
     document.body.removeChild(container);
     container = null;
   });
 
-  it('should normalize properties from the MouseEvent interface', () => {
+  it('should normalize properties from the MouseEvent interface', async () => {
     const events = [];
     const onWheel = event => {
       event.persist();
       events.push(event);
     };
-    ReactDOM.render(<div onWheel={onWheel} />, container);
+    await act(async () => {
+      root.render(<div onWheel={onWheel} />);
+    });
 
     container.firstChild.dispatchEvent(
       new MouseEvent('wheel', {
@@ -48,13 +54,16 @@ describe('SyntheticWheelEvent', () => {
     expect(events[0].button).toBe(1);
   });
 
-  it('should normalize properties from the WheelEvent interface', () => {
+  it('should normalize properties from the WheelEvent interface', async () => {
     const events = [];
     const onWheel = event => {
       event.persist();
       events.push(event);
     };
-    ReactDOM.render(<div onWheel={onWheel} />, container);
+
+    await act(async () => {
+      root.render(<div onWheel={onWheel} />);
+    });
 
     let event = new MouseEvent('wheel', {
       bubbles: true,
@@ -83,7 +92,7 @@ describe('SyntheticWheelEvent', () => {
     expect(events[1].deltaY).toBe(-50);
   });
 
-  it('should be able to `preventDefault` and `stopPropagation`', () => {
+  it('should be able to `preventDefault` and `stopPropagation`', async () => {
     const events = [];
     const onWheel = event => {
       expect(event.isDefaultPrevented()).toBe(false);
@@ -92,7 +101,9 @@ describe('SyntheticWheelEvent', () => {
       event.persist();
       events.push(event);
     };
-    ReactDOM.render(<div onWheel={onWheel} />, container);
+    await act(async () => {
+      root.render(<div onWheel={onWheel} />);
+    });
 
     container.firstChild.dispatchEvent(
       new MouseEvent('wheel', {
@@ -111,5 +122,6 @@ describe('SyntheticWheelEvent', () => {
     );
 
     expect(events.length).toBe(2);
+    expect.assertions(5);
   });
 });
Repository: vercel/next.js
Pull request: [Segment Cache] Fix isHeadPartial logic

This PR fixed two typos that affected isHeadPartial logic.

Changed files:
filename: packages/next/src/client/components/segment-cache-impl/cache.ts
patch: @@ -1466,7 +1466,7 @@ function writeDynamicTreeResponseIntoCache(
     entry,
     convertRootFlightRouterStateToRouteTree(flightRouterState),
     flightData.head,
-    isResponsePartial,
+    flightData.isHeadPartial,
     now + staleTimeMs,
     couldBeIntercepted,
     canonicalUrl,

filename: packages/next/src/server/app-render/walk-tree-with-flight-router-state.tsx
patch: @@ -171,7 +171,7 @@ export async function walkTreeWithFlightRouterState({
         routerState,
         null,
         [null, null],
-        false,
+        true,
       ] satisfies FlightDataSegment,
     ]
   }
Repository: ggml-org/llama.cpp
Pull request: releases : update ROCM, add gfx1200, gfx1201, gfx1151

Fixes #15106

Changed files:
filename: .github/workflows/release.yml
patch: @@ -108,7 +108,8 @@ jobs:
             -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
             -DLLAMA_FATAL_WARNINGS=ON \
             -DGGML_METAL=OFF \
-            -DGGML_RPC=ON
+            -DGGML_RPC=ON \
+            -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3
           cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
 
       - name: Determine tag name
@@ -532,7 +533,7 @@ jobs:
       matrix:
         include:
           - name: "radeon"
-            gpu_targets: "gfx1100;gfx1101;gfx1102;gfx1030;gfx1031;gfx1032"
+            gpu_targets: "gfx1200;gfx1201;gfx1151;gfx1100;gfx1101;gfx1102;gfx1030;gfx1031;gfx1032"
 
     steps:
       - name: Clone
@@ -565,7 +566,7 @@ jobs:
         run: |
           $ErrorActionPreference = "Stop"
           write-host "Downloading AMD HIP SDK Installer"
-          Invoke-WebRequest -Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-24.Q3-WinSvr2022-For-HIP.exe" -OutFile "${env:RUNNER_TEMP}\rocm-install.exe"
+          Invoke-WebRequest -Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-25.Q3-WinSvr2022-For-HIP.exe" -OutFile "${env:RUNNER_TEMP}\rocm-install.exe"
           write-host "Installing AMD HIP SDK"
           $proc = Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -PassThru
           $completed = $proc.WaitForExit(600000)
@@ -610,9 +611,12 @@ jobs:
             -DLLAMA_CURL=OFF
           cmake --build build --target ggml-hip -j ${env:NUMBER_OF_PROCESSORS}
           md "build\bin\rocblas\library\"
+          md "build\bin\hipblaslt\library"
           cp "${env:HIP_PATH}\bin\hipblas.dll" "build\bin\"
+          cp "${env:HIP_PATH}\bin\hipblaslt.dll" "build\bin\"
           cp "${env:HIP_PATH}\bin\rocblas.dll" "build\bin\"
           cp "${env:HIP_PATH}\bin\rocblas\library\*" "build\bin\rocblas\library\"
+          cp "${env:HIP_PATH}\bin\hipblaslt\library\*" "build\bin\hipblaslt\library\"
 
       - name: Pack artifacts
         id: pack_artifacts
Repository: ggml-org/llama.cpp
Pull request: rpc : fix regression when --device is used

Fix regression introduced with commit 50f4281a6


Changed files:
filename: tools/rpc/rpc-server.cpp
patch: @@ -227,7 +227,9 @@ static ggml_backend_t create_backend(const rpc_server_params & params) {
         }
     }
 
-    backend = ggml_backend_init_best();
+    if (!backend) {
+        backend = ggml_backend_init_best();
+    }
 
     if (backend) {
         fprintf(stderr, "%s: using %s backend\n", __func__, ggml_backend_name(backend));
Repository: denoland/deno
Pull request: ci: Update release doc template

We're gonna be cutting patch release from `main` branch from now on.

Changed files:
filename: tools/release/release_doc_template.md
patch: @@ -28,44 +28,6 @@ Deno v$VERSION is now getting released.
 Release checklist: <LINK TO THIS FORKED GIST GOES HERE>
 ```
 
-## Patch release preparation
-
-⛔ **If you are cutting a patch release**: First you need to sync commits to the
-`v$MINOR_VERSION` branch in the `deno` repo.
-
-To do that, you need to cherry-pick commits from the main branch to the
-`v$MINOR_VERSION` branch. If the branch doesn't exist yet, create one from the
-latest minor tag:
-
-```
-# checkout latest minor release
-$ git checkout v$PAST_VERSION
-
-# create a branch
-$ git checkout v$MINOR_VERSION
-
-# push the branch to the `denoland/deno` repository
-$ git push upstream v$MINOR_VERSION
-```
-
-For patch releases we want to cherry-pick all commits that do not add features
-to the CLI. This generally means to filter out `feat` commits.
-
-Check what was the last commit on `v$MINOR_VERSION` branch before the previous
-release and start cherry-picking newer commits from the `main`.
-
-<!--
-      TODO: we should add sample deno program that does that for you,
-      and then provides a complete `git` command to run.
--->
-
-Once all relevant commits are cherry-picked, push the branch to the upstream and
-verify on GitHub that everything looks correct.
-
-- ⛔ DO NOT create a `v$VERSION`-like branch! You are meant to cherry pick to
-  the `v$MINOR_VERSION` branch. If you have accidentally created then
-  `v$VERSION` branch then delete it as tagging the CLI will fail otherwise.
-
 ## Updating `deno`
 
 ### Phase 1: Bumping versions
@@ -141,10 +103,6 @@ verify on GitHub that everything looks correct.
       has been updated to reflect Web API changes in this release. Usually done
       ahead of time by @lucacasonato.
 
-- [ ] **If you are cutting a patch release**: a PR should have been
-      automatically opened that forwards the release commit back to main. If so,
-      merge it. If not and it failed, please manually create one.
-
 ## Updating `deno_docker`
 
 - [ ] Run the version bump workflow:
Repository: ggml-org/llama.cpp
Pull request: doc : update documentation for --tensor-split

This is follow up from the discussion in PR #15951

Changed files:
filename: tools/main/README.md
patch: @@ -384,5 +384,5 @@ These options provide extra functionality and customization when running the LLa
 -   `--verbose-prompt`: Print the prompt before generating text.
 -   `--no-display-prompt`: Don't print prompt at generation.
 -   `-mg i, --main-gpu i`: When using multiple GPUs this option controls which GPU is used for small tensors for which the overhead of splitting the computation across all GPUs is not worthwhile. The GPU in question will use slightly more VRAM to store a scratch buffer for temporary results. By default GPU 0 is used.
--   `-ts SPLIT, --tensor-split SPLIT`: When using multiple GPUs this option controls how large tensors should be split across all GPUs. `SPLIT` is a comma-separated list of non-negative values that assigns the proportion of data that each GPU should get in order. For example, "3,2" will assign 60% of the data to GPU 0 and 40% to GPU 1. By default the data is split in proportion to VRAM but this may not be optimal for performance.
+-   `-ts SPLIT, --tensor-split SPLIT`: When using multiple devices this option controls how tensors should be split across devices. `SPLIT` is a comma-separated list of non-negative values that assigns the proportion of data that each device should get in order. For example, "3,2" will assign 60% of the data to device 0 and 40% to device 1. By default, the data is split in proportion to VRAM, but this may not be optimal for performance. The list of the devices which are being used is printed on startup and can be different from the device list given by `--list-devices` or e.g. `nvidia-smi`.
 -   `-hfr URL --hf-repo URL`: The url to the Hugging Face model repository. Used in conjunction with `--hf-file` or `-hff`. The model is downloaded and stored in the file provided by `-m` or `--model`. If `-m` is not provided, the model is auto-stored in the path specified by the `LLAMA_CACHE` environment variable  or in an OS-specific local cache.
Repository: nodejs/node
Pull request: doc: add latest security release steward

As titled

Changed files:
filename: doc/contributing/security-release-process.md
patch: @@ -36,6 +36,7 @@ The current security stewards are documented in the main Node.js
 | NodeSource   | Rafael          | 2024-Apr-10  |
 | NodeSource   | Rafael          | 2024-Jul-08  |
 | NodeSource   | Rafael          | 2025-Jan-21  |
+| NodeSource   | Rafael          | 2025-May-14  |
 | Datadog      | Bryan           |              |
 | IBM          | Joe             |              |
 | Platformatic | Matteo          |              |
Repository: vercel/next.js
Pull request: Turbopack: Fix turbopack-swc-ast-explorer with multi-line inputs

Previously this was only parsing the first line of input

```
cargo run -p swc-ast-explorer <turbopack/crates/turbopack-tests/tests/snapshot/comptime/assignment/input/index.js | less
```

Closes PACK-5067

Changed files:
filename: turbopack/crates/turbopack-swc-ast-explorer/src/main.rs
patch: @@ -1,4 +1,7 @@
-use std::{io::stdin, sync::Arc};
+use std::{
+    io::{Read, stdin},
+    sync::Arc,
+};
 
 use anyhow::Result;
 use clap::Parser;
@@ -25,7 +28,7 @@ fn main() -> Result<()> {
     let args = Args::parse();
 
     let mut contents = String::new();
-    stdin().read_line(&mut contents)?;
+    stdin().read_to_string(&mut contents)?;
 
     let sm = Arc::new(SourceMap::default());
     let file = sm.new_source_file(FileName::Anon.into(), contents);
Repository: nodejs/node
Pull request: doc: document default test-reporter change

Document the change made in https://github.com/nodejs/node/pull/54548

Fixes: https://github.com/nodejs/node/issues/58301
Refs: https://github.com/nodejs/node/pull/54548

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: doc/api/test.md
patch: @@ -1046,6 +1046,10 @@ added:
   - v19.6.0
   - v18.15.0
 changes:
+  - version: v23.0.0
+    pr-url: https://github.com/nodejs/node/pull/54548
+    description: The default reporter on non-TTY stdout is changed from `tap` to
+                 `spec`, aligning with TTY stdout.
   - version:
     - v19.9.0
     - v18.17.0
Repository: vercel/next.js
Pull request: Turbopack: Clean up some of the logic in visit_assign_expr

It should be equivalent, but it's clearer that the LHS is always visited

Closes PACK-5068

Changed files:
filename: turbopack/crates/turbopack-ecmascript/src/analyzer/graph.rs
patch: @@ -1332,32 +1332,26 @@ impl VisitAstPath for Analyzer<'_> {
                     if let Some(key) = n.left.as_ident() {
                         let value = match n.op {
                             AssignOp::AndAssign | AssignOp::OrAssign | AssignOp::NullishAssign => {
-                                let right = self.eval_context.eval(&n.right);
                                 // We can handle the right value as alternative to the existing
                                 // value
-                                Some(right)
+                                self.eval_context.eval(&n.right)
                             }
                             AssignOp::AddAssign => {
                                 let left = self.eval_context.eval(&Expr::Ident(key.clone().into()));
 
                                 let right = self.eval_context.eval(&n.right);
 
-                                Some(JsValue::add(vec![left, right]))
+                                JsValue::add(vec![left, right])
                             }
-                            _ => Some(JsValue::unknown_empty(true, "unsupported assign operation")),
+                            _ => JsValue::unknown_empty(true, "unsupported assign operation"),
                         };
-                        if let Some(value) = value {
-                            // We should visit this to handle `+=` like
-                            //
-                            // clientComponentLoadTimes += performance.now() - startTime
-
-                            self.current_value = Some(value);
-                            n.left.visit_children_with_ast_path(self, &mut ast_path);
-                            self.current_value = None;
-                        }
-                    }
-
-                    if n.left.as_ident().is_none() {
+                        // We should visit this to handle `+=` like
+                        //
+                        // clientComponentLoadTimes += performance.now() - startTime
+                        self.current_value = Some(value);
+                        n.left.visit_children_with_ast_path(self, &mut ast_path);
+                        self.current_value = None;
+                    } else {
                         n.left.visit_children_with_ast_path(self, &mut ast_path);
                     }
                 }
Repository: denoland/deno
Pull request: fix(ext/node): use primordials in `ext/node/polyfills/internal/url.ts`

Towards #24236.

<!--
Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label.
-->


Changed files:
filename: ext/node/polyfills/internal/url.ts
patch: @@ -1,17 +1,23 @@
 // Copyright 2018-2025 the Deno authors. MIT license.
 
-// TODO(petamoriken): enable prefer-primordials for node polyfills
-// deno-lint-ignore-file prefer-primordials
-
 import { fileURLToPath } from "node:url";
 import { Buffer } from "node:buffer";
+import { primordials } from "ext:core/mod.js";
+const {
+  Number,
+  ObjectPrototypeIsPrototypeOf,
+  StringPrototypeSlice,
+  StringPrototypeStartsWith,
+  Symbol,
+  decodeURIComponent,
+} = primordials;
 
 const searchParams = Symbol("query");
 
 export function toPathIfFileURL(
   fileURLOrPath: string | Buffer | URL,
 ): string | Buffer {
-  if (!(fileURLOrPath instanceof URL)) {
+  if (!(ObjectPrototypeIsPrototypeOf(URL.prototype, fileURLOrPath))) {
     return fileURLOrPath;
   }
   return fileURLToPath(fileURLOrPath);
@@ -26,8 +32,8 @@ export function urlToHttpOptions(url: any): any {
   const options: any = {
     protocol: url.protocol,
     hostname: typeof url.hostname === "string" &&
-        url.hostname.startsWith("[")
-      ? url.hostname.slice(1, -1)
+        StringPrototypeStartsWith(url.hostname, "[")
+      ? StringPrototypeSlice(url.hostname, 1, -1)
       : url.hostname,
     hash: url.hash,
     search: url.search,
Repository: denoland/deno
Pull request: v2.2.13


Changed files:
filename: Cargo.lock
patch: @@ -1449,7 +1449,7 @@ dependencies = [
 
 [[package]]
 name = "deno"
-version = "2.2.12"
+version = "2.2.13"
 dependencies = [
  "anstream",
  "async-trait",
@@ -2919,7 +2919,7 @@ dependencies = [
 
 [[package]]
 name = "denort"
-version = "2.2.12"
+version = "2.2.13"
 dependencies = [
  "async-trait",
  "bincode",

filename: Releases.md
patch: @@ -6,6 +6,11 @@ https://github.com/denoland/deno/releases
 We also have one-line install commands at:
 https://github.com/denoland/deno_install
 
+### 2.2.13 / 2025.05.13
+
+- fix: handling of contradictory global permission flags (#29213)
+- fix: make --allow-env stronger that --deny-env (#29079)
+
 ### 2.2.12 / 2025.04.24
 
 - fix: correctly style rust logs with colors (#29040)

filename: cli/Cargo.toml
patch: @@ -2,7 +2,7 @@
 
 [package]
 name = "deno"
-version = "2.2.12"
+version = "2.2.13"
 authors.workspace = true
 default-run = "deno"
 edition.workspace = true

filename: cli/lib/version.txt
patch: @@ -1 +1 @@
-2.2.12
\ No newline at end of file
+2.2.13
\ No newline at end of file

filename: cli/rt/Cargo.toml
patch: @@ -2,7 +2,7 @@
 
 [package]
 name = "denort"
-version = "2.2.12"
+version = "2.2.13"
 authors.workspace = true
 default-run = "denort"
 edition.workspace = true