helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: tools: revert timezone update GHA workflow to ubuntu-latest

The timezone update script requires `icupkg` which doesn't  appear to be available on `ubuntu-slim`.

Fixes: https://github.com/nodejs/node/issues/62109
<!--
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/timezone-update.yml
patch: @@ -16,7 +16,8 @@ jobs:
       pull-requests: write  # to create a PR (gr2m/create-or-update-pull-request-action)
 
     if: github.repository == 'nodejs/node'
-    runs-on: ubuntu-slim
+    # cannot use ubuntu-slim here because it does not have icupkg
+    runs-on: ubuntu-latest
 
     steps:
       - name: Checkout nodejs/node
Repository: vercel/next.js
Pull request: [ci] Allow "rerun failed jobs" to work up until 5 days

We fail CI if test timings are no longer available. However, 1 day seems too short of a retention period. A job started on Friday, could not be rerun on Monday.

We'll keep an eye on cost. 23 kB seem negligible compared to e.g. persisting tarballs of native binaries.

Changed files:
filename: .github/workflows/build_and_test.yml
patch: @@ -138,7 +138,8 @@ jobs:
         with:
           name: test-timings
           path: test-timings.json
-          retention-days: 1
+          # Allows "rerun failed jobs" for N days
+          retention-days: 5
           if-no-files-found: error
 
   lint:
Repository: rust-lang/rust
Pull request: bootstrap.example.toml: Hint how to allow `build.warnings`

This commit turns **Actual** into **Expected** for the following problem:

### Steps
1. Do some quick and experimental local code changes in the compiler code.
2. Run `./x build`.
3. Observe failed build with _"error: warnings are denied by `build.warnings` configuration"_.
4. Decide to not care and want to allow warnings.
5. Search for `build.warnings` in **bootstrap.example.toml**.

### Actual
No hits. You get frustrated because didn't learn how to allow warnings. (The reason `build.warnings` is not mentioned in **bootstrap.example.toml** is of course because it is an unstable cargo [feature](https://doc.rust-lang.org/cargo/reference/unstable.html#buildwarnings) and not controlled by bootstrap, but you don't know that yet.)

### Expected
You get a hit and can easily see how to allow warnings.



Changed files:
filename: bootstrap.example.toml
patch: @@ -826,7 +826,8 @@
 # in the sysroot. It is required for running nvptx tests.
 #rust.llvm-bitcode-linker = false
 
-# Whether to deny warnings in crates
+# Whether to deny warnings in crates. Set to `false` to avoid
+# error: warnings are denied by `build.warnings` configuration
 #rust.deny-warnings = true
 
 # Print backtrace on internal compiler errors during bootstrap
Repository: huggingface/transformers
Pull request: [`fix`] Prevent crash with Apertus without xielu installed

# What does this PR do?

Currently, when using Apertus (or rather, it's `XIELUActivation`), and you don't have `xielu` installed, then you'll fall to this `except:`
https://github.com/huggingface/transformers/blob/5a098a1e01034095f037c8a37f7fe87c31118e26/src/transformers/activations.py#L268-L273

However, `logger.warning_once` doesn't accept multiple parameters like this, and so it'll crash:
```
            except Exception as err:
                msg += f" Could not enable torch._dynamo for xIELU ({err}) - this may result in slower performance."
                self._xielu_cuda_fn = self._xielu_cuda
            logger.warning_once(msg)
        except Exception as err:
>           logger.warning_once(
                "CUDA-fused xIELU not available (%s) – falling back to a Python version.\n"
                "For CUDA xIELU (experimental), `pip install git+https://github.com/nickjbrowning/XIELU`",
                str(err),
            )
E           TypeError: NNCFLogger.warning_once() takes 2 positional arguments but 3 were given
```

Instead, this PR uses f-string formatting to place the stringified error into the first line, resulting in this logger warning instead:
```
CUDA-fused xIELU not available (No module named 'xielu') – falling back to a Python version.
For CUDA xIELU (experimental), `pip install git+https://github.com/nickjbrowning/XIELU`
```

## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?

@Cyrilvallez @vasqu

- Tom Aarsen

Changed files:
filename: src/transformers/activations.py
patch: @@ -267,9 +267,8 @@ def __init__(
             logger.warning_once(msg)
         except Exception as err:
             logger.warning_once(
-                "CUDA-fused xIELU not available (%s) – falling back to a Python version.\n"
-                "For CUDA xIELU (experimental), `pip install git+https://github.com/nickjbrowning/XIELU`",
-                str(err),
+                f"CUDA-fused xIELU not available ({err}) – falling back to a Python version.\n"
+                "For CUDA xIELU (experimental), `pip install git+https://github.com/nickjbrowning/XIELU`"
             )
 
     def _xielu_python(self, x: Tensor) -> Tensor:
Repository: ollama/ollama
Pull request: fs/ggml: write int32 and int64 values to gguf files

Importing and quantizing newer GGUF files fails as they have sampling params that have `int32` values. 

Changed files:
filename: fs/ggml/gguf.go
patch: @@ -597,6 +597,10 @@ func ggufWriteKV(ws io.WriteSeeker, arch, k string, v any) error {
 
 	var err error
 	switch v := v.(type) {
+	case int32:
+		err = writeGGUF(ws, ggufTypeInt32, v)
+	case int64:
+		err = writeGGUF(ws, ggufTypeInt64, v)
 	case uint32, FileType:
 		err = writeGGUF(ws, ggufTypeUint32, v)
 	case uint64:
@@ -611,6 +615,10 @@ func ggufWriteKV(ws io.WriteSeeker, arch, k string, v any) error {
 		err = writeGGUFArray(ws, ggufTypeInt32, v)
 	case *array[int32]:
 		err = writeGGUFArray(ws, ggufTypeInt32, v.values)
+	case []int64:
+		err = writeGGUFArray(ws, ggufTypeInt64, v)
+	case *array[int64]:
+		err = writeGGUFArray(ws, ggufTypeInt64, v.values)
 	case []uint32:
 		err = writeGGUFArray(ws, ggufTypeUint32, v)
 	case *array[uint32]:

filename: fs/ggml/gguf_test.go
patch: @@ -42,6 +42,10 @@ func TestWriteGGUF(t *testing.T) {
 				"general.architecture": "test",
 				"general.alignment":    uint32(16),
 				"test.key":             "value",
+				"test.int32_key":       int32(-42),
+				"test.int64_key":       int64(-9223372036854775808),
+				"test.int32_array":     []int32{-1, 0, 1, 2147483647, -2147483648},
+				"test.int64_array":     []int64{-1, 0, 1, 9223372036854775807, -9223372036854775808},
 				"attention.key":        "value2",
 				"tokenizer.key":        "value3",
 				"adapter.key":          "value4",
@@ -55,7 +59,7 @@ func TestWriteGGUF(t *testing.T) {
 			}
 			defer r.Close()
 
-			ff, err := Decode(r, 0)
+			ff, err := Decode(r, -1)
 			if err != nil {
 				t.Fatal(err)
 			}
@@ -65,15 +69,19 @@ func TestWriteGGUF(t *testing.T) {
 				"general.alignment":       uint32(16),
 				"general.parameter_count": uint64(54),
 				"test.key":                "value",
+				"test.int32_key":          int32(-42),
+				"test.int64_key":          int64(-9223372036854775808),
+				"test.int32_array":        &array[int32]{size: 5, values: []int32{-1, 0, 1, 2147483647, -2147483648}},
+				"test.int64_array":        &array[int64]{size: 5, values: []int64{-1, 0, 1, 9223372036854775807, -9223372036854775808}},
 				"test.attention.key":      "value2",
 				"tokenizer.key":           "value3",
 				"adapter.key":             "value4",
-			}, ff.KV()); diff != "" {
+			}, ff.KV(), cmp.AllowUnexported(array[int32]{}, array[int64]{})); diff != "" {
 				t.Errorf("Mismatch (-want +got):\n%s", diff)
 			}
 
 			if diff := cmp.Diff(Tensors{
-				Offset: 800,
+				Offset: 992,
 				items: []*Tensor{
 					{Name: "blk.0.attn_k.weight", Offset: 0, Shape: []uint64{2, 3}},
 					{Name: "blk.0.attn_norm.weight", Offset: 32, Shape: []uint64{2, 3}},
Repository: electron/electron
Pull request: ci: update test timeout to 60 minutes

Backport of #50305

See that PR for details.


Notes: <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->none


Changed files:
filename: .github/workflows/pipeline-segment-electron-test.yml
patch: @@ -214,7 +214,7 @@ jobs:
 
     - name: Run Electron Tests
       shell: bash
-      timeout-minutes: 40
+      timeout-minutes: 60
       env:
         MOCHA_REPORTER: mocha-multi-reporters
         MOCHA_MULTI_REPORTERS: mocha-junit-reporter, tap
Repository: electron/electron
Pull request: ci: update test timeout to 60 minutes

#### Description of Change
The autoupdater tests on mac x64 run slowly (a couple of the tests need multiple re-runs to pass), so we should update the test timeout to accommodate that.  

The autoupdater tests should probably be improved but this will unblock failing CI for now.
<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->none


Changed files:
filename: .github/workflows/pipeline-segment-electron-test.yml
patch: @@ -214,7 +214,7 @@ jobs:
 
     - name: Run Electron Tests
       shell: bash
-      timeout-minutes: 40
+      timeout-minutes: 60
       env:
         MOCHA_REPORTER: mocha-multi-reporters
         MOCHA_MULTI_REPORTERS: mocha-junit-reporter, tap
Repository: huggingface/transformers
Pull request: Speed create_import_structure up with os.scandir()

`create_import_structure_from_path` does some redundant `os` calls, so I'm experimenting with changes to see if we can speed up loading a lot.

Related to #44246

Changed files:
filename: src/transformers/utils/import_utils.py
patch: @@ -2546,36 +2546,30 @@ def create_import_structure_from_path(module_path):
     if os.path.isfile(module_path):
         module_path = os.path.dirname(module_path)
 
-    directory = module_path
     adjacent_modules = []
 
-    for f in os.listdir(module_path):
-        if f != "__pycache__" and os.path.isdir(os.path.join(module_path, f)):
-            import_structure[f] = create_import_structure_from_path(os.path.join(module_path, f))
-
-        elif not os.path.isdir(os.path.join(directory, f)):
-            adjacent_modules.append(f)
+    with os.scandir(module_path) as entries:
+        for entry in entries:
+            if entry.name == "__pycache__":
+                continue
+            if entry.is_dir():
+                import_structure[entry.name] = create_import_structure_from_path(entry.path)
+            elif not entry.name.startswith(("convert_", "modular_")):
+                adjacent_modules.append(entry.name)
 
     # We're only taking a look at files different from __init__.py
     # We could theoretically require things directly from the __init__.py
     # files, but this is not supported at this time.
     if "__init__.py" in adjacent_modules:
         adjacent_modules.remove("__init__.py")
 
-    # Modular files should not be imported
-    def find_substring(substring, list_):
-        return any(substring in x for x in list_)
-
-    if find_substring("modular_", adjacent_modules) and find_substring("modeling_", adjacent_modules):
-        adjacent_modules = [module for module in adjacent_modules if "modular_" not in module]
-
     module_requirements = {}
     for module_name in adjacent_modules:
         # Only modules ending in `.py` are accepted here.
         if not module_name.endswith(".py"):
             continue
 
-        with open(os.path.join(directory, module_name), encoding="utf-8") as f:
+        with open(os.path.join(module_path, module_name), encoding="utf-8") as f:
             file_content = f.read()
 
         # Remove the .py suffix
Repository: ollama/ollama
Pull request: cmd/bench: support writing benchmark output to file

This changes Ollama to allow the bench command to write benchmark results to a user-specified output file instead of stdout when the --output flag is provided.

Changed files:
filename: cmd/bench/bench.go
patch: @@ -48,8 +48,8 @@ func OutputMetrics(w io.Writer, format string, metrics []Metrics, verbose bool)
 	case "benchstat":
 		if verbose {
 			printHeader := func() {
-				fmt.Printf("sysname: %s\n", runtime.GOOS)
-				fmt.Printf("machine: %s\n", runtime.GOARCH)
+				fmt.Fprintf(w, "sysname: %s\n", runtime.GOOS)
+				fmt.Fprintf(w, "machine: %s\n", runtime.GOARCH)
 			}
 			once.Do(printHeader)
 		}
@@ -147,6 +147,17 @@ func BenchmarkChat(fOpt flagOptions) error {
 		return err
 	}
 
+	var out io.Writer = os.Stdout
+	if fOpt.outputFile != nil && *fOpt.outputFile != "" {
+		f, err := os.OpenFile(*fOpt.outputFile, os.O_CREATE|os.O_WRONLY, 0o644)
+		if err != nil {
+			fmt.Fprintf(os.Stderr, "ERROR: cannot open output file %s: %v\n", *fOpt.outputFile, err)
+			return err
+		}
+		defer f.Close()
+		out = f
+	}
+
 	for _, model := range models {
 		for range *fOpt.epochs {
 			options := make(map[string]interface{})
@@ -241,13 +252,14 @@ func BenchmarkChat(fOpt flagOptions) error {
 				},
 			}
 
-			OutputMetrics(os.Stdout, *fOpt.format, metrics, *fOpt.verbose)
+			OutputMetrics(out, *fOpt.format, metrics, *fOpt.verbose)
 
 			if *fOpt.keepAlive > 0 {
 				time.Sleep(time.Duration(*fOpt.keepAlive*float64(time.Second)) + 200*time.Millisecond)
 			}
 		}
 	}
+
 	return nil
 }
Repository: rust-lang/rust
Pull request: Add test for issue #101532: dead code warnings in const _

Closes rust-lang/rust#101532

Adds a test for dead code warnings in `const _`.

This was already fixed, just adding coverage to avoid regressions.

Changed files:
filename: tests/ui/lint/dead-code/const-underscore-issue-101532.rs
patch: @@ -0,0 +1,14 @@
+//@ check-pass
+// Test for issue #101532 - dead code warnings should work inside const _
+
+#![warn(dead_code)]
+
+const _: () = {
+    let a: ();
+    struct B {} //~ WARN struct `B` is never constructed
+    enum C {}   //~ WARN enum `C` is never used
+    fn d() {}   //~ WARN function `d` is never used
+    const E: () = {}; //~ WARN constant `E` is never used
+};
+
+fn main() {}

filename: tests/ui/lint/dead-code/const-underscore-issue-101532.stderr
patch: @@ -0,0 +1,32 @@
+warning: struct `B` is never constructed
+  --> $DIR/const-underscore-issue-101532.rs:8:12
+   |
+LL |     struct B {}
+   |            ^
+   |
+note: the lint level is defined here
+  --> $DIR/const-underscore-issue-101532.rs:4:9
+   |
+LL | #![warn(dead_code)]
+   |         ^^^^^^^^^
+
+warning: enum `C` is never used
+  --> $DIR/const-underscore-issue-101532.rs:9:10
+   |
+LL |     enum C {}
+   |          ^
+
+warning: function `d` is never used
+  --> $DIR/const-underscore-issue-101532.rs:10:8
+   |
+LL |     fn d() {}
+   |        ^
+
+warning: constant `E` is never used
+  --> $DIR/const-underscore-issue-101532.rs:11:11
+   |
+LL |     const E: () = {};
+   |           ^
+
+warning: 4 warnings emitted
+
Repository: nodejs/node
Pull request: tools: update nixpkgs-unstable to 917fec990948658ef1ccd07cef2a1ef0607

This is an automated update of nixpkgs-unstable to 917fec990948658ef1ccd07cef2a1ef0607.

Changed files:
filename: shell.nix
patch: @@ -72,7 +72,7 @@ let
   ]) (builtins.attrNames sharedLibDeps);
 in
 pkgs.mkShell {
-  inherit (pkgs.nodejs_latest) nativeBuildInputs;
+  inherit (pkgs.nodejs-slim_latest) nativeBuildInputs;
 
   buildInputs =
     buildInputs

filename: tools/nix/pkgs.nix
patch: @@ -1,10 +1,10 @@
 arg:
 let
   repo = "https://github.com/NixOS/nixpkgs";
-  rev = "d1c15b7d5806069da59e819999d70e1cec0760bf";
+  rev = "e38213b91d3786389a446dfce4ff5a8aaf6012f2";
   nixpkgs = import (builtins.fetchTarball {
     url = "${repo}/archive/${rev}.tar.gz";
-    sha256 = "08f0iv9rn4d9ha35kblqpkrgbbnfby87bj8fx1839l3r4grqdnvg";
+    sha256 = "0nrbkm95nl6y96l0f95hraapp7zx10c01b8m95zj8056z57dlv65";
   }) arg;
 in
 nixpkgs

filename: tools/nix/sharedLibDeps.nix
patch: @@ -49,22 +49,9 @@
 // (pkgs.lib.optionalAttrs withSSL (
   let
     version = "3.5.5";
-    opensslSrc = "/pkgs/development/libraries/openssl/";
-    inherit
-      (pkgs.callPackage "${
-        pkgs.fetchgit {
-          url = "https://github.com/NixOS/nixpkgs.git";
-          rev = "a5b50d31e0fd60227495ad2b2760cbda3581ec77";
-          sparseCheckout = [ opensslSrc ];
-          nonConeMode = true;
-          hash = "sha256-Qo3IoUeccGO2GxFSYufyYjZmN5LGSek0z82pN73YXic=";
-        }
-      }${opensslSrc}" { })
-      openssl_3_6
-      ;
   in
   {
-    openssl = openssl_3_6.overrideAttrs (old: {
+    openssl = pkgs.openssl_3_6.overrideAttrs (old: {
       inherit version;
       src = pkgs.fetchurl {
         url = builtins.replaceStrings [ old.version ] [ version ] old.src.url;
Repository: electron/electron
Pull request: fix: user resizable transparent windows on win32

Closes: #48554

#### Description of Change

Frameless windows use hit-test based resize in chromium.  Version 39 of electron regressed resizable windows that did not have a "frame" on win32.

#### Checklist
- [x] PR description included
- [x] `npm test` passes
   I ran tests but there were 245 fails that seemed to have nothing to do with my change.  I don't know if HEAD is broken or if my windows VM is not setup correctly.
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

notes: Fixed user resizing of transparent windows on win32 platform

Changed files:
filename: shell/browser/native_window_views.cc
patch: @@ -1018,17 +1018,13 @@ void NativeWindowViews::MoveTop() {
 
 bool NativeWindowViews::CanResize() const {
 #if BUILDFLAG(IS_WIN)
-  return resizable_ && thick_frame_;
+  return has_frame() ? resizable_ && thick_frame_ : resizable_;
 #else
   return resizable_;
 #endif
 }
 
 bool NativeWindowViews::IsResizable() const {
-#if BUILDFLAG(IS_WIN)
-  if (has_frame())
-    return ::GetWindowLong(GetAcceleratedWidget(), GWL_STYLE) & WS_THICKFRAME;
-#endif
   return CanResize();
 }
 

filename: spec/api-browser-window-spec.ts
patch: @@ -5611,7 +5611,7 @@ describe('BrowserWindow module', () => {
           thickFrame: true,
           transparent: true
         });
-        expect(w.isResizable()).to.be.false('resizable');
+        expect(w.isResizable()).to.be.true('resizable');
         w.maximize();
         expect(w.isMaximized()).to.be.true('maximized');
         const bounds = w.getBounds();
Repository: huggingface/transformers
Pull request: Fix failing `MusicgenStereo` integration tests

# What does this PR do?
Fixes these failing [MusicgenStereoIntegrationTests](https://github.com/huggingface/transformers/actions/runs/22606636929/job/65500451700#step:14:7870)


## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
@Rocketknight1 @vasqu

Changed files:
filename: tests/models/musicgen/test_modeling_musicgen.py
patch: @@ -1291,7 +1291,9 @@ def test_generate_text_audio_prompt(self):
 class MusicgenStereoIntegrationTests(unittest.TestCase):
     @cached_property
     def model(self):
-        return MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-stereo-small").to(torch_device)
+        return MusicgenForConditionalGeneration.from_pretrained(
+            "facebook/musicgen-stereo-small", dtype=torch.float32
+        ).to(torch_device)
 
     @cached_property
     def processor(self):