helloadhavan/github_issues huggingface dataset:
Repository: vercel/next.js
Pull request: Update Turbopack production test manifest

This auto-generated PR updates the production integration test manifest used when testing Turbopack.

Changed files:
filename: test/turbopack-build-tests-manifest.json
patch: @@ -4572,7 +4572,9 @@
       "redirects and rewrites navigation using link should redirect from next.config.js correctly with empty query params",
       "redirects and rewrites navigation using link should redirect using catchall from next.config.js correctly",
       "redirects and rewrites navigation using link should rewrite from middleware correctly",
-      "redirects and rewrites navigation using link should rewrite from next.config.js correctly"
+      "redirects and rewrites navigation using link should rewrite from next.config.js correctly",
+      "redirects and rewrites redirects to exotic url schemes preserving slashes",
+      "redirects and rewrites redirects to exotic url schemes without adding unwanted slashes"
     ],
     "failed": [],
     "pending": [],
@@ -7746,7 +7748,9 @@
   },
   "test/e2e/persistent-caching/persistent-caching.test.ts": {
     "passed": [
-      "persistent-caching should allow to change files while stopped",
+      "persistent-caching should allow to change files while stopped (run 1)",
+      "persistent-caching should allow to change files while stopped (run 2)",
+      "persistent-caching should allow to change files while stopped (run 3)",
       "persistent-caching should persistent cache loaders"
     ],
     "failed": [],
Repository: facebook/react
Pull request: DevTools: Correctly log errors reported from the store

## Summary

#22948 added (internal-only) logging to errors caught via `componentDidCatch`, however, this wouldn't account for the case when we handle an error reported from the store, since in that case we are manually setting the error state and that doesn't trigger `componentDidCatch`

In order to fix that, we also log when an error is reported by the store.

## How did you test this change?

Manually throw an error from the store, verify it goes through our logging

Changed files:
filename: packages/react-devtools-shared/src/devtools/views/ErrorBoundary/ErrorBoundary.js
patch: @@ -74,12 +74,7 @@ export default class ErrorBoundary extends Component<Props, State> {
   }
 
   componentDidCatch(error: any, {componentStack}: any) {
-    logEvent({
-      event_name: 'error',
-      error_message: error.message ?? null,
-      error_stack: error.stack ?? null,
-      error_component_stack: componentStack ?? null,
-    });
+    this._logError(error, componentStack);
     this.setState({
       componentStack,
     });
@@ -146,6 +141,15 @@ export default class ErrorBoundary extends Component<Props, State> {
     return children;
   }
 
+  _logError = (error: any, componentStack: string | null) => {
+    logEvent({
+      event_name: 'error',
+      error_message: error.message ?? null,
+      error_stack: error.stack ?? null,
+      error_component_stack: componentStack ?? null,
+    });
+  };
+
   _dismissError = () => {
     const onBeforeDismissCallback = this.props.onBeforeDismissCallback;
     if (typeof onBeforeDismissCallback === 'function') {
@@ -157,6 +161,7 @@ export default class ErrorBoundary extends Component<Props, State> {
 
   _onStoreError = (error: Error) => {
     if (!this.state.hasError) {
+      this._logError(error, null);
       this.setState({
         ...ErrorBoundary.getDerivedStateFromError(error),
         canDismiss: true,
Repository: ggml-org/llama.cpp
Pull request: `common`: add -jf / --json-schema-file flag

Allows specifying a JSON schema by file

(currently only flag is `-j` / `--json-schema` which takes the full schema itself as argument)

Changed files:
filename: common/arg.cpp
patch: @@ -1948,6 +1948,23 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
             params.sampling.grammar = json_schema_to_grammar(json::parse(value));
         }
     ).set_sparam());
+    add_opt(common_arg(
+        {"-jf", "--json-schema-file"}, "FILE",
+        "File containing a JSON schema to constrain generations (https://json-schema.org/), e.g. `{}` for any JSON object\nFor schemas w/ external $refs, use --grammar + example/json_schema_to_grammar.py instead",
+        [](common_params & params, const std::string & value) {
+            std::ifstream file(value);
+            if (!file) {
+                throw std::runtime_error(string_format("error: failed to open file '%s'\n", value.c_str()));
+            }
+            std::string schema;
+            std::copy(
+                std::istreambuf_iterator<char>(file),
+                std::istreambuf_iterator<char>(),
+                std::back_inserter(schema)
+            );
+            params.sampling.grammar = json_schema_to_grammar(json::parse(schema));
+        }
+    ).set_sparam());
     add_opt(common_arg(
         {"--pooling"}, "{none,mean,cls,last,rank}",
         "pooling type for embeddings, use model default if unspecified",
Repository: denoland/deno
Pull request: fix(node): add missing readline/promises module

Fixes https://github.com/jsr-io/jsr-npm/issues/91

Changed files:
filename: ext/node/polyfill.rs
patch: @@ -71,6 +71,7 @@ generate_builtin_node_module_lists! {
   "querystring",
   "repl",
   "readline",
+  "readline/promises",
   "stream",
   "stream/consumers",
   "stream/promises",
Repository: nodejs/node
Pull request: deps: update zlib to 1.3.0.1-motley-82a5fec

This is an automated update of zlib to 1.3.0.1-motley-82a5fec.

Changed files:
filename: deps/zlib/google/zip_writer.cc
patch: @@ -5,6 +5,7 @@
 #include "third_party/zlib/google/zip_writer.h"
 
 #include <algorithm>
+#include <tuple>
 
 #include "base/files/file.h"
 #include "base/logging.h"
@@ -193,8 +194,8 @@ bool ZipWriter::AddMixedEntries(Paths paths) {
   while (!paths.empty()) {
     // Work with chunks of 50 paths at most.
     const size_t n = std::min<size_t>(paths.size(), 50);
-    const Paths relative_paths = paths.subspan(0, n);
-    paths = paths.subspan(n, paths.size() - n);
+    Paths relative_paths;
+    std::tie(relative_paths, paths) = paths.split_at(n);
 
     files.clear();
     if (!file_accessor_->Open(relative_paths, &files) || files.size() != n)
@@ -233,8 +234,8 @@ bool ZipWriter::AddFileEntries(Paths paths) {
   while (!paths.empty()) {
     // Work with chunks of 50 paths at most.
     const size_t n = std::min<size_t>(paths.size(), 50);
-    const Paths relative_paths = paths.subspan(0, n);
-    paths = paths.subspan(n, paths.size() - n);
+    Paths relative_paths;
+    std::tie(relative_paths, paths) = paths.split_at(n);
 
     DCHECK_EQ(relative_paths.size(), n);
 

filename: src/zlib_version.h
patch: @@ -2,5 +2,5 @@
 // Refer to tools/dep_updaters/update-zlib.sh
 #ifndef SRC_ZLIB_VERSION_H_
 #define SRC_ZLIB_VERSION_H_
-#define ZLIB_VERSION "1.3.0.1-motley-7e2e4d7"
+#define ZLIB_VERSION "1.3.0.1-motley-82a5fec"
 #endif  // SRC_ZLIB_VERSION_H_
Repository: ggml-org/llama.cpp
Pull request: convert : correct typo image_mean --> image_std

sorry @bartowski1182 , you will need to regenerated mmproj (only mmproj, no text model)

**only pixtral is affected**, other models (smolvlm, gemma 3) have mean value == std value


Changed files:
filename: convert_hf_to_gguf.py
patch: @@ -1103,7 +1103,7 @@ def set_gguf_parameters(self):
 
         # preprocessor config
         self.gguf_writer.add_vision_image_mean(self.preprocessor_config["image_mean"])
-        self.gguf_writer.add_vision_image_std(self.preprocessor_config["image_mean"])
+        self.gguf_writer.add_vision_image_std(self.preprocessor_config["image_std"])
 
     def write_vocab(self):
         raise ValueError("VisionModel does not support vocab writing")
Repository: facebook/react
Pull request: [DevTools] Log errors occurring or reported to the frontend

## Summary

Only for internal builds, logs errors that occur in the frontend, or that are reported to the frotnend and that are captured by our ErrorBoundary

## How did you test this change?

- yarn flow dom
- yarn test-build-devtools
- verified that errors are logged


Changed files:
filename: packages/react-devtools-shared/src/Logger.js
patch: @@ -13,6 +13,12 @@ export type LogEvent =
   | {|
       +event_name: 'loaded-dev-tools',
     |}
+  | {|
+      +event_name: 'error',
+      +error_message: string | null,
+      +error_stack: string | null,
+      +error_component_stack: string | null,
+    |}
   | {|
       +event_name: 'selected-components-tab',
     |}

filename: packages/react-devtools-shared/src/devtools/views/ErrorBoundary/ErrorBoundary.js
patch: @@ -15,6 +15,7 @@ import SearchingGitHubIssues from './SearchingGitHubIssues';
 import SuspendingErrorView from './SuspendingErrorView';
 import TimeoutView from './TimeoutView';
 import TimeoutError from 'react-devtools-shared/src/TimeoutError';
+import {logEvent} from 'react-devtools-shared/src/Logger';
 
 type Props = {|
   children: React$Node,
@@ -73,6 +74,12 @@ export default class ErrorBoundary extends Component<Props, State> {
   }
 
   componentDidCatch(error: any, {componentStack}: any) {
+    logEvent({
+      event_name: 'error',
+      error_message: error.message ?? null,
+      error_stack: error.stack ?? null,
+      error_component_stack: componentStack ?? null,
+    });
     this.setState({
       componentStack,
     });
Repository: vercel/next.js
Pull request: `@next/mdx`: Use stable turbopack config options

Now that Turbopack config has stabilized and moved out of `experimental`, use this field when automatically configuring it in `@next/mdx`.

This avoids the warning being shown about the config option having moved.

This requires `@next/mdx` be used with Next.js >= 15.3.0.

Test Plan: Ran `next dev --turbopack` in `examples/mdx`. Verified no warning about the deprecated experimental option was printed.

Closes PACK-4339
Resolves #78009


Changed files:
filename: packages/next-mdx/index.js
patch: @@ -23,6 +23,9 @@ module.exports =
           },
         }
 
+    /**
+     * @type {import('next').NextConfig}
+     */
     let nextConfig = Object.assign({}, inputConfig, {
       webpack(config, options) {
         config.resolve.alias['next-mdx-import-source-file'] = [
@@ -44,22 +47,16 @@ module.exports =
     })
 
     if (process.env.TURBOPACK) {
-      nextConfig.experimental = Object.assign({}, nextConfig?.experimental, {
-        turbo: Object.assign({}, nextConfig?.experimental?.turbo, {
-          rules: Object.assign({}, nextConfig?.experimental?.turbo?.rules, {
-            '*.mdx': {
-              loaders: [loader],
-              as: '*.tsx',
-            },
-          }),
-          resolveAlias: Object.assign(
-            {},
-            nextConfig?.experimental?.turbo?.resolveAlias,
-            {
-              'next-mdx-import-source-file':
-                '@vercel/turbopack-next/mdx-import-source',
-            }
-          ),
+      nextConfig.turbopack = Object.assign({}, nextConfig?.turbopack, {
+        rules: Object.assign({}, nextConfig?.turbopack?.rules, {
+          '*.mdx': {
+            loaders: [loader],
+            as: '*.tsx',
+          },
+        }),
+        resolveAlias: Object.assign({}, nextConfig?.turbopack?.resolveAlias, {
+          'next-mdx-import-source-file':
+            '@vercel/turbopack-next/mdx-import-source',
         }),
       })
     }
Repository: denoland/deno
Pull request: test(ext/node): reduce http_test flakiness

This PR tries to reduce the flakiness of the test case `[node/http] http.request() post streaming body works`.

Changed files:
filename: tests/unit_node/http_test.ts
patch: @@ -1325,9 +1325,10 @@ Deno.test("[node/http] http.request() post streaming body works", async () => {
     }
   });
 
-  const deferred = Promise.withResolvers<void>();
+  const responseEnded = Promise.withResolvers<void>();
+  const fileClosed = Promise.withResolvers<void>();
   const timeout = setTimeout(() => {
-    deferred.reject(new Error("timeout"));
+    responseEnded.reject(new Error("timeout"));
   }, 5000);
   server.listen(0, () => {
     // deno-lint-ignore no-explicit-any
@@ -1359,7 +1360,7 @@ Deno.test("[node/http] http.request() post streaming body works", async () => {
         const response = JSON.parse(responseBody);
         assertEquals(res.statusCode, 200);
         assertEquals(response.bytes, contentLength);
-        deferred.resolve();
+        responseEnded.resolve();
       });
     });
 
@@ -1369,8 +1370,10 @@ Deno.test("[node/http] http.request() post streaming body works", async () => {
 
     const readStream = fs.createReadStream(filePath);
     readStream.pipe(req);
+    readStream.on("close", fileClosed.resolve);
   });
-  await deferred.promise;
+  await responseEnded.promise;
+  await fileClosed.promise;
   assertEquals(server.listening, true);
   server.close();
   clearTimeout(timeout);
Repository: huggingface/transformers
Pull request: Apply torchfix to replace deprecated functions: `_pytree._register_pytree_node` and `torch.cpu.amp.autocast`

- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?



Changed files:
filename: src/transformers/trainer.py
patch: @@ -3689,7 +3689,7 @@ def autocast_smart_context_manager(self, cache_enabled: Optional[bool] = True):
         arguments, depending on the situation.
         """
         if self.use_cpu_amp:
-            ctx_manager = torch.cpu.amp.autocast(cache_enabled=cache_enabled, dtype=self.amp_dtype)
+            ctx_manager = torch.amp.autocast("cpu", cache_enabled=cache_enabled, dtype=self.amp_dtype)
         else:
             ctx_manager = contextlib.nullcontext()
 

filename: src/transformers/utils/generic.py
patch: @@ -343,14 +343,18 @@ def __init_subclass__(cls) -> None:
         """
         if is_torch_available():
             if version.parse(get_torch_version()) >= version.parse("2.2"):
-                _torch_pytree.register_pytree_node(
+                from torch.utils._pytree import register_pytree_node
+
+                register_pytree_node(
                     cls,
                     _model_output_flatten,
                     partial(_model_output_unflatten, output_type=cls),
                     serialized_type_name=f"{cls.__module__}.{cls.__name__}",
                 )
             else:
-                _torch_pytree._register_pytree_node(
+                from torch.utils._pytree import register_pytree_node
+
+                register_pytree_node(
                     cls,
                     _model_output_flatten,
                     partial(_model_output_unflatten, output_type=cls),
Repository: nodejs/node
Pull request: tools: allow dispatch of `tools.yml` from forks

It makes sense to skip the cron job on forks, but dispatch can only happen after an action from the fork owner.
<!--
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: .github/workflows/tools.yml
patch: @@ -51,7 +51,7 @@ permissions:
 
 jobs:
   tools-deps-update:
-    if: github.repository == 'nodejs/node'
+    if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
     runs-on: ubuntu-latest
     strategy:
       fail-fast: false  # Prevent other jobs from aborting if one fails
Repository: ggml-org/llama.cpp
Pull request: vulkan: use uint array index to avoid glslang bug

This works around glslang bug https://github.com/KhronosGroup/glslang/issues/3948.

Changed files:
filename: ggml/src/ggml-vulkan/vulkan-shaders/dequant_funcs_cm2.comp
patch: @@ -482,7 +482,7 @@ float16_t dequantFuncIQ2_XXS(const in decodeBufIQ2_XXS bl, const in uint blockCo
     const uint ib8 = (idx & 0x18) >> 3;  // 0..3
     const uint iqs = 8 * ib32 + ib8;
 
-    const uint8_t qs = bl.block.qs[iqs];
+    const uint qs = bl.block.qs[iqs];
     const uint signscale = pack32(u16vec2(bl16.block.qs[4*ib32+2], bl16.block.qs[4*ib32+3]));
 
     const float dscale = float(bl.block.d) * 0.25 * (0.5 + float(signscale >> 28));
Repository: facebook/react
Pull request: DevTools should inject XHTML pages too (not just HTML)

Resolves #22834

- [x] Verified that https://lcdev.shaped.ca works after this change.
- [x] Verified the original fix for #17739 does not regress by visiting https://www.w3schools.com/xml/note.xml.

Changed files:
filename: packages/react-devtools-extensions/src/injectGlobalHook.js
patch: @@ -135,14 +135,18 @@ if (sessionStorageGetItem(SESSION_STORAGE_RELOAD_AND_PROFILE_KEY) === 'true') {
 // We need to inject this code because content scripts (ie injectGlobalHook.js) don't have access
 // to the webpage's window, so in order to access front end settings
 // and communicate with React, we must inject this code into the webpage
-if ('text/html' === document.contentType) {
-  injectCode(
-    ';(' +
-      installHook.toString() +
-      '(window))' +
-      saveNativeValues +
-      detectReact,
-  );
+switch (document.contentType) {
+  case 'text/html':
+  case 'application/xhtml+xml': {
+    injectCode(
+      ';(' +
+        installHook.toString() +
+        '(window))' +
+        saveNativeValues +
+        detectReact,
+    );
+    break;
+  }
 }
 
 if (typeof exportFunction === 'function') {
Repository: huggingface/transformers
Pull request: Adding to self_comment_ci.yml

# What does this PR do?
As stated above


Changed files:
filename: .github/workflows/self-comment-ci.yml
patch: @@ -29,7 +29,7 @@ jobs:
     runs-on: ubuntu-22.04
     name: Get PR number
     # For security: only allow team members to run
-    if: ${{ github.event.issue.state == 'open' && contains(fromJSON('["ydshieh", "ArthurZucker", "zucchini-nlp", "qubvel", "molbap", "gante", "LysandreJik", "Cyrilvallez", "Rocketknight1", "SunMarc", "muellerzr", "eustlb"]'), github.actor) && (startsWith(github.event.comment.body, 'run-slow') || startsWith(github.event.comment.body, 'run slow') || startsWith(github.event.comment.body, 'run_slow')) }}
+    if: ${{ github.event.issue.state == 'open' && contains(fromJSON('["ydshieh", "ArthurZucker", "zucchini-nlp", "qubvel", "molbap", "gante", "LysandreJik", "Cyrilvallez", "Rocketknight1", "SunMarc", "muellerzr", "eustlb", "MekkCyber"]'), github.actor) && (startsWith(github.event.comment.body, 'run-slow') || startsWith(github.event.comment.body, 'run slow') || startsWith(github.event.comment.body, 'run_slow')) }}
     outputs:
       PR_NUMBER: ${{ steps.set_pr_number.outputs.PR_NUMBER }}
     steps:
Repository: denoland/deno
Pull request: fix(publish): workspace included license file had incorrect path

Also fixes the issue where we say a package was successfully published before it wasn't.

Bug in https://github.com/denoland/deno/pull/24714

Changed files:
filename: cli/tools/registry/mod.rs
patch: @@ -473,7 +473,7 @@ impl PublishPreparer {
             publish_paths.push(CollectedPublishPath {
               specifier: ModuleSpecifier::from_file_path(&license_path)
                 .unwrap(),
-              relative_path: "LICENSE".to_string(),
+              relative_path: "/LICENSE".to_string(),
               maybe_content: Some(std::fs::read(&license_path).with_context(
                 || format!("failed reading '{}'.", license_path.display()),
               )?),
@@ -1014,14 +1014,6 @@ async fn publish_package(
     );
   }
 
-  log::info!(
-    "{} @{}/{}@{}",
-    colors::green("Successfully published"),
-    package.scope,
-    package.package,
-    package.version
-  );
-
   let enable_provenance = std::env::var("DISABLE_JSR_PROVENANCE").is_err()
     && (auth::is_gha() && auth::gha_oidc_token().is_some() && provenance);
 
@@ -1071,6 +1063,14 @@ async fn publish_package(
       .await?;
   }
 
+  log::info!(
+    "{} @{}/{}@{}",
+    colors::green("Successfully published"),
+    package.scope,
+    package.package,
+    package.version
+  );
+
   log::info!(
     "{}",
     colors::gray(format!(

filename: cli/tools/registry/paths.rs
patch: @@ -214,7 +214,7 @@ pub enum PackagePathValidationError {
 pub struct CollectedPublishPath {
   pub specifier: ModuleSpecifier,
   pub path: PathBuf,
-  /// Relative path to use in the tarball.
+  /// Relative path to use in the tarball. This should be prefixed with a `/`.
   pub relative_path: String,
   /// Specify the contents for any injected paths.
   pub maybe_content: Option<Vec<u8>>,

filename: cli/tools/registry/tar.rs
patch: @@ -64,6 +64,7 @@ pub fn create_gzipped_tarball(
       hash: format!("sha256-{:x}", sha2::Sha256::digest(&content)),
       size: content.len(),
     });
+    assert!(path_str.starts_with('/'));
     tar
       .add_file(format!(".{}", path_str), &content)
       .with_context(|| {

filename: tests/testdata/publish/successful_provenance.out
patch: @@ -2,6 +2,6 @@ Check file:///[WILDCARD]/publish/successful/mod.ts
 Checking for slow types in the public API...
 Check file:///[WILDCARD]/publish/successful/mod.ts
 Publishing @foo/bar@1.0.0 ...
-Successfully published @foo/bar@1.0.0
 Provenance transparency log available at https://search.sigstore.dev/?logIndex=42069
+Successfully published @foo/bar@1.0.0
 Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details
Repository: ggml-org/llama.cpp
Pull request: Fix for issue #13170

Build fails with compilation error on power pc.
This patch fixes the same.

Tested with unit tests run via
 cmake --build <build_dir> && cd <build_dir> && make test

*Make sure to read the [contributing guidelines](https://github.com/ggml-org/llama.cpp/blob/master/CONTRIBUTING.md) before submitting a PR*


Changed files:
filename: ggml/src/ggml-cpu/simd-mappings.h
patch: @@ -341,7 +341,7 @@ static inline void __avx_f32cx8_store(ggml_fp16_t *x, __m256 y) {
 #define GGML_F32_EPR  4
 
 #define GGML_F32x4              vector float
-#define GGML_F32x4_ZERO         0.0f
+#define GGML_F32x4_ZERO         {0.0f}
 #define GGML_F32x4_SET1         vec_splats
 #define GGML_F32x4_LOAD(p)      vec_xl(0, p)
 #define GGML_F32x4_STORE(p, r)  vec_xst(r, 0, p)