sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: proposal: net/http/httptest: add support for 1XX responses
Labels: Proposal

There is currently no way to test 1XX responses with the httptest package.

Support for 1XX responses has been added to the built-in HTTP server and reverse proxy in Go 1.19 (#42597, #53164).

I propose to add support for inspecting 1XX responses with the test package by integrating the httptrace package with it (as we've done for the reverse proxy).

Regarding the API, I suggest implementing the same API as when using the non-test client:

```go
func Test1xx(t *testing.T) {
	trace := &httptrace.ClientTrace{
		Got100Continue: func() {
			// do something
		},
		Got1xxResponse: func(code int, header textproto.MIMEHeader) error {
			// do something

			return nil
		},
	}

	r, _ := http.NewRequest("GET", "http://example.com", nil)
	rw := httptest.NewRecorder()
	rw.ClientTrace = trace
	func(rw http.ResponseWriter, _ *http.Request) {
		rw.Header().Add("Link", "</image.png>; rel=preload; as=image")
		rw.WriteHeader(http.StatusEarlyHints)

		// ...
	}(rw, r)

       // ...
}
```

Proposal implementation: https://github.com/golang/go/pull/56151
Repository: godot
Issue: TileMap with cell_quadrant_size = 128 crashes (SIGABRT) game on windows resize on macOS
Labels: bug,topic:core,needs testing,crash,topic:2d

### Godot version

v4.0.beta3.official [01ae26d31]

### System information

macOS 12.6 (21G115), MacBook Air (M1, 2020), Apple M1, 8 GB RAM, Vulkan

### Issue description

Game running scene with tile map crashes on window resize.
Given tile map size of (310, 318), tiles 16x16. Deciding factor is cell_quadrant_size of higher value, in attached project it is 128 but values above 100 were reproducing the issue.

Could not reproduce on Windows PC, but that PC had 32 GB or RAM, and MacBook Air just 8GB. Not sure is it OS specific or RAM.

```
Crashed Thread:        13

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000b6c
Exception Codes:       0x0000000000000001, 0x0000000000000b6c
Exception Note:        EXC_CORPSE_NOTIFY

VM Region Info: 0xb6c is not in any region.  Bytes before following region: 105554592658580
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO              600058000000-600060000000 [128.0M] rw-/rwx SM=PRV  

Application Specific Information:
abort() called
```

Find problem report attached.
[crash.txt](https://github.com/godotengine/godot/files/9830801/crash.txt)


### Steps to reproduce

1. Open attached project
2. Run project
3. Resize game window in any way
4. Game should crash, macOS sometimes gives some crash report.

### Minimal reproduction project

[crash_project_macos 2.zip](https://github.com/godotengine/godot/files/9830775/crash_project_macos.2.zip)
Repository: kubernetes
Issue: Enhancement: Marking a pending pod as failed after a certain timeout
Labels: sig/node,kind/feature,sig/apps,needs-triage,wg/batch

### What would you like to be added?

We would like to add configurable timeouts to allow pending pods to transition to failed.   

It would be ideal if it could be configurable based on container events or messages rather than a catch all timeout.  

A possible API could be as follows:

```
      - regexp: "Failed to pull image.*desc = failed to pull and unpack image"            # Suggests genuine problem with image name, no point in waiting around too long.
        gracePeriod: 90s
      - regexp: "Failed to pull image.*code = Unknown desc = Error response from daemon"  # Seen when image doesn't exist, no point in waiting around too long.
        gracePeriod: 90s
```

This can allow certain events/statuses to transition to failed.

### Why is this needed?

In the Armada project, we found that for batch users, it is useful to control how long Pods stay in pending before marking the pods as failed.  This allows for our scheduler to remove pods from the cluster and allow room for new pods to be scheduled.  This also allows users to be notified of invalid pods and they are able to resubmit their pods with correct configurations.  

We have discussed this idea in conjunction with the non goals of https://github.com/kubernetes/enhancements/tree/master/keps/sig-apps/3329-retriable-and-non-retriable-failures#non-goals and @alculquicondor requested that I create an issue.
Repository: pytorch
Issue: test_ao_sparsity fails when build without FBGEMM
Labels: triaged

### 🐛 Describe the bug

All tests from https://github.com/pytorch/pytorch/blob/master/test/ao/sparsity/test_composability.py (imported in `test_ao_sparsity`) fail when PyTorch is build without FBGEMM, e.g. on POWER.

The test suite/cases should have a `skipIfNoFBGEMM` decorator

### Versions

1.12, 1.13 and current master
Repository: pytorch
Issue: Implementation of CG, and BICGSTAB methods
Labels: module: optimizer,triaged,needs research

### 🚀 The feature, motivation, and pitch

I want to contribute to the PyTorch community with my implementation of CG and BICGSTAB methods; I believe this will immensely help research students who work in optimization theory, as they can just use these modules which have GPU support, and who have their training scripts written in PyTorch, instead of implementing them from scratch every time.

Thanks, and regards.

### Alternatives

_No response_

### Additional context

Krylov subspace methods are crucial in conjugate gradient solvers, and are a significant part of the optimization theory. Any update rule can be formulated as Ax = b; solving this system of equations iteratively with GPU support is crucial to many research students; this is especially true when they just want to approximate the solutions; an example of such a use case is the implementation of second order methods, especially newton descent methods. In deep learning, it is not feasible to completely solve the equation, hence an iterative solver is necessary. 

cc @vincentqb @jbschlosser @albanD
Repository: storybook
Issue: [Bug]: TypeError: Cannot set properties of null (setting 'innerHTML')
Labels: bug,needs triage

### Describe the bug

I keep getting an error here:

https://github.com/storybookjs/storybook/blob/ce0b0205d73a58693617762594d1bdc0b7c3db73/code/lib/preview-web/src/WebView.ts#L137-L138

It is causing the Canvas to not render anything.

The error is as follows:

> TypeError: Cannot set properties of null (setting 'innerHTML')

![](https://user-images.githubusercontent.com/1571806/196991228-893b258e-8c5d-4b33-ba7f-99cc4c348717.png)

### To Reproduce

_No response_

### System

```shell
{
  "devDependencies": {
    "@storybook/addon-a11y": "~6.5.9",
    "@storybook/addon-actions": "~6.5.9",
    "@storybook/addon-docs": "~6.5.9",
    "@storybook/addon-essentials": "~6.5.9",
    "@storybook/addon-links": "~6.5.9",
    "@storybook/addons": "~6.5.9",
    "@storybook/angular": "~6.5.9",
    "@storybook/builder-webpack5": "~6.5.9",
    "@storybook/core-server": "~6.5.9",
    "@storybook/manager-webpack5": "~6.5.9",
    "@storybook/preset-scss": "^1.0.3"
  }
}
```

### Additional context

_No response_
Repository: neovim
Issue: Error `E303: unable to open swap file` if 'directory' has wrong permissions
Labels: startup,options


<details>
<summary>old info</summary>

### Neovim version (nvim -v)

NVIM v0.8.0-v0.8.0 Build type: RelWithDebInfo

### Vim (not Nvim) behaves the same?

No

### Operating system/version

Linux Mint 21 Vanessa 64-bit

### Terminal name/version

mate-terminal

### $TERM environment variable

xterm-256color

### Installation

From the debian package in the Releases page and from build
</details>

### How to reproduce the issue

When I open a file (for example `a.txt`), nvim displays this error at start (see `:help E303`):

> E303: Unable to open swap file for "a.txt", recovery impossible

**Update:** see https://github.com/neovim/neovim/issues/20749#issuecomment-1294766896


<details>
<summary>old info</summary>

To check the reason of this issue, I used this command:

```
nvim --clean -u NONE -Vmessages.txt a.txt
```

I will not paste the whole content of `messages.txt` but here are some suspicious lines (sometimes translated by myself here because I did not manage to launch nvim in English):

```
chdir(/usr/local/share/nvim/runtime)

not found in runtime path: "ftdetect/*.vim"
not found in runtime path: "ftdetect/*.lua"


chdir(/usr/local/share/nvim/runtime/plugin)

end of sourcing of /usr/local/share/nvim/runtime/plugin/man.lua
not found in 'packpath' : "pack/*/start/*"
not found in 'packpath' : "start/*"
not found in runtime path: "plugin/**/*.vim"
not found in runtime path: "plugin/**/*.lua"
                                            E303: Unable to open swap file for "a.txt", recovery impossible

not found in runtime path: "indent/text.vim"
not found in runtime path: "indent/text.lua"

sourcing "/usr/local/share/nvim/runtime/plugin/matchit.vim"
not found in 'packpath' : "pack/*/start/matchit"
```

Here are where nvim configuration is installed:

```
$ sudo find /usr /etc /var -name nvim
/usr/local/share/nvim
/usr/local/lib/nvim
/usr/local/bin/nvim
```

Let's see for example `matchit.vim`. Here is where it can be found:

```
$ sudo find /usr/local/share/nvim/runtime -name matchit.vim 
/usr/local/share/nvim/runtime/pack/dist/opt/matchit/autoload/matchit.vim
/usr/local/share/nvim/runtime/pack/dist/opt/matchit/plugin/matchit.vim
/usr/local/share/nvim/runtime/macros/matchit.vim
/usr/local/share/nvim/runtime/plugin/matchit.vim
```

I have no clues why this `E303` error happens nor why some runtime files cannot be found. Some runtime files are found, for a proof I wrote this issue in a Mardown file and the filetype is correctly detected.

This issue happens if I try to open a new file or an already existing file.

### Expected behavior

Not displaying a `E303` error message.

### Actual behavior

See above.
</details>
Repository: go
Issue: x/text/internal/triegen.test: unrecognized failures
Labels: NeedsInvestigation

```
#!watchflakes
post <- pkg == "golang.org/x/text/internal/triegen.test" && test == ""
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/e6901ea8e8cb21604d113ad5168ce56b5a01983f)):

    panic: runtime error: invalid memory address or nil pointer dereference
    [signal 0xc0000005 code=0x0 addr=0x21 pc=0xb91b7a]
    
    goroutine 1 [running]:
    cmd/link/internal/loader.(*Loader).OuterSym(...)
    	C:/workdir/go/src/cmd/link/internal/loader/loader.go:1695
    cmd/link/internal/ld.(*deadcodePass).flood(0xc00006aa00)
    	C:/workdir/go/src/cmd/link/internal/ld/deadcode.go:239 +0x265
    cmd/link/internal/ld.deadcode(0xc0000c0000)
    	C:/workdir/go/src/cmd/link/internal/ld/deadcode.go:336 +0x89
    cmd/link/internal/ld.Main(_, {0x20, 0x20, 0x1, 0x7, 0x10, 0x0, {0x0, 0x0}, {0xe248e3, ...}, ...})
    	C:/workdir/go/src/cmd/link/internal/ld/main.go:269 +0xef2
    main.main()
    	C:/workdir/go/src/cmd/link/main.go:72 +0xedb


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: terminal
Issue: Rename tab title doesn't work in fullscreen mode (or focus mode)
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task

### Windows Terminal version

1.15.2874.0

### Windows build number

10.0.19045.0

### Other Software

_No response_

### Steps to reproduce

1. Open Terminal
2. Press F11 to go fullscreen
4. Press ctrl+shift+p to open command palette and choose "Rename tab title..."

Note: entering "focus mode" at Step 2, instead of going fullscreen, results in the same incorrect behavior.

### Expected Behavior

I'm provided with some text entry field (perhaps similar to the one displayed when I try to "Rename window..." so that I can start typing and change the name of my current tab

### Actual Behavior

At first, nothing apparent has happened. My cursor is still flashing on my command line and I can type into the command line as normal. If I press F11 to exit fullscreen mode, I can see that the style of the tab title has changed slightly as if it applied the style of tab rename mode, but never managed to focus the field for typing. Clicking inside the tab title **text** allows me to type and rename the tab.


While it's true that you can't see the tabs in fullscreen or focus mode, you can still see their tabs when using ctrl+tab to navigate between them, so the problem is less trivial than it might seem.
Repository: godot
Issue: RayCast2d won't collide with TileMap tiles' on ready
Labels: bug,discussion,topic:physics,topic:2d

### Godot version

4.0 beta 2

### System information

Ubuntu 22.04.1 LTS 64 bit

### Issue description

The `RayCast2d` node in Godot does not seem to collide with any `TileMap` collision on ready. However, it does collide with `TileMap` collision after waiting for a few frames. The `RayCast2d` node also will collide with normal `PhysicsBody2d` nodes (i.e. `StaticBody2d`) on ready, just not `TileMap` tiles with collision.

### Steps to reproduce

1. Launch Godot 4.0 beta 2
2. Make a new 2d scene
3. Add a `RayCast2d` node and a `TileMap` node
4. Give the `TileMap` node a tile that has collision via Physics Layers
5. Place a tile in the scene
6. Point a `RayCast2d` node at the tile so that the ray will collide with it
7. Add a script to `RayCast2d`
8. Copy and paste the following code into the script:

extends RayCast2D

func _ready() -> void:
	print_debug("On ready collision point: %s" % get_collision_point())
	await get_tree().create_timer(1.0).timeout
	print_debug("After timer collision point: %s" % get_collision_point())

9. Run the current scene. The `RayCast2d` will return (0, 0) as its collision point (visible in first print). After waiting 1 second, it will return the actual collision point (visible in second print)

### Minimal reproduction project

[RayCast2dBug.zip](https://github.com/godotengine/godot/files/9831775/RayCast2dBug.zip)
Repository: pytorch
Issue: Better type annotations for `torch.Tensor` subclasses
Labels: module: typing,triaged,actionable,tensor subclass

### 🚀 The feature, motivation and pitch

In the spirit of #86105, I think `torch.Tensor` type annotations can be improved to better support tensor subclasses.

For example, consider

```python
class Subclass(torch.Tensor):
    pass

subclass = Subclass()

reveal_type(subclass.clone())
# note: Revealed type is "torch._tensor.Tensor"

print(type(subclass.clone())
# __main__.Subclass
```

It's clear that the underlying logic preserves the subclass, but the type annotations don't. There are many methods which would benefit from improved hints: `clone`, `detach`, `new_full`, `new_ones`, `new_empty`, `new_zero`, and `new_tensor`, to name a few.

### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @malfet @rgommers @xuzhao9 @gramster
Repository: go
Issue: proposal: x/sync/singleflight: add a method for per-caller post-processing of shared result 
Labels: Proposal

## Background 
In order to safely deal with some classes of shared resources that can be acquired via a singleflight group (anything that requires explicit cleanup/freeing; files, shared buffers, etc), there is need for a mechanism to account for all goroutines that received a reference to the shared resource.

It is not sufficient to perform this accouting _after_ the singleflight call returns, since any single waiting goroutine may complete its work on the shared resource before other goroutines start, leading to misbehavior.

## Proposal

To solve this missing functionality, there were [suggestions](https://github.com/golang/sync/pull/9) (not converted to proposals) to expose singleflights internal count of duplicated calls.

I propose a different approach, inspired by [this comment](https://github.com/golang/sync/pull/9#issuecomment-572705800): extend the `singleflight.Group` API to include a second function parameter, called by every duplicated caller.

E.g.:
```go
sg := &singleflight.Group{}
sg.DoShared(
	"somekey",
	func() (interface{}, error) {
       	// acquire shared resource
	},
	func(shared interface{}, err error) {
		// perform arbitrary per-caller post-processing;
		// guaranteed to run before any caller returns.
	},
)
```

Pros:
- explicit
- versatile
- has no impact on existing usage
- leaves error handling to the consumer (with the exception of panics)

Cons:
- increases API surface area
- less intuitive API

Relates to golang/sync#9 and golang/sync#20
Repository: vscode
Issue: Allow to configure the which slash is used when copying a path
Labels: feature-request,file-explorer

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
I often configure JSON files and then what to paste them into the `launch.json` file. However, on Windows back slashes are used and iI have to search and replace the back slash with forwards slash in order to still have a valid JSON file. So it would be nice if it would be possible to configure the slash used when copying a path. 

I saw, that now for some time this feature exists for relative paths. So I looked at the code and it seems that only a few code changes would be needed in order to enable the feature I need.
Repository: kubernetes
Issue: CEL Validation: permit hashing object fields to form object name
Labels: sig/api-machinery,triage/accepted

Scenario: My CRD has fields x, y, and z. I want to ensure that within a given namespace, no two instances of this CRD have the same set of values for those fields.

Solution 1: Require that .metadata.name be x+y+z. (Add a x-kubernetes-validations to the root of the object, and do something like `"[self.metadata.name] == self.spec.x + self.spec.y + self.spec.z"`)
Problem 1: The fields might be too long, or not match the rules about names (contain "/" characters, etc)

Solution 2: Require that name be of the form sanitized_fields(x,y,z)+unique_hash(x,y,z). Where:
* sanitized_fields produces a string which contains as much of the given fields as possible, while removing forbidden characters and capping the length. This is to make the name human readable.
* unique_hash is some hash function which produces a fixed-length hash to ensure that the name is unique even if the sanitized_fields function collides.

The request here is to add a function or set of functions callable from CEL to do this sanitizing/hashing. Ideally we would like the code to be known ASAP so that people can use them in validating webhooks today and move to CEL when it is available.

For bonus points we would like to default the name to the correct value if it is blank, since it may be hard for clients to determine the correct value. (I suspect this isn't possible with our defaulting stack, but maybe I'm wrong.)

We need the error message to report the expected name, so that at least clients could e.g. send a dry-run POST request to figure out the correct name and then use it in the real request.

/sig api-machinery
Repository: kubernetes
Issue: Mutable Job scheduling directives after suspension
Labels: sig/scheduling,kind/feature,sig/apps,needs-triage,wg/batch

### What would you like to be added?

Allow modifying the scheduling directives of a Job template when the job is fully suspended.

Currently, as part of kubernetes/enhancements#2926, we allow the Job pod template to be modified only if the Job didn't start (`.status.startTime == nil`).

We could implement mutable scheduling directives after suspension if we set .status.startTime to nil when when we are confident that there all the running pods are at least terminating. This is possible because the job controller keeps an in-memory cache of the creations it issued (expectations) and `.status.active` takes into account the pods the job controller failed to remove.

https://github.com/kubernetes/kubernetes/blob/dc3c9c0101563f95ca5d844c525a095b4a231dff/pkg/controller/job/job_controller.go#L1394-L1400

An alternate implementation would be to delay setting the Suspend condition to true until `.status.active==0` and allowing mutable pod conditions when this condition is true during validation (relax mutability).

### Why is this needed?

This would allow queueing controllers to redirect a workload to a different set of nodes after the workload was suspended (preempted).
Repository: deno
Issue: lsp: refactor out snapshot related code from `Documents`
Labels: refactor,lsp

It would be a bit clearer if we created something called a `DocumentsSnapshot`. See https://github.com/denoland/deno/pull/16332#discussion_r1000488038
Repository: vscode
Issue: Git - git reset --hard
Labels: feature-request,git

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
I would like to run git reset commands using the VSCode graphic interface. It seems like every other git operation is available. Without this, then how can a GUI user resolve rewritten history on the remote?

If I pull a branch, and then someone else in the world runs git commit amend && git push --force to my branch so that the hash of the HEAD has changed, does VSCode's git interface offer any way of resolving that? From a terminal I would normally just git fetch && git reset --hard origin/my-branch, but I work with people not comfortable on the command line. It would be great to have a way for them to express to VSCode "abandon what I have without reservation and set my code to the latest remote"
Repository: flutter
Issue: Update outdated runners in the repo
Labels: team,framework,P2,c: tech-debt,team-framework,triaged-framework

We have several places where we have checked in the platform runners for various platforms.

They are out of date, and should be updated to the latest versions.

Places that should be updated include:
 - dev/benchmarks
	 - [ ] dev/benchmarks/multiple_flutters
	 - [ ] dev/benchmarks/complex_layout
	 - [ ] dev/benchmarks/platform_views_layout
	 - [ ] dev/benchmarks/test_apps/stocks
	 - [ ] dev/benchmarks/platform_views_layout_hybrid_composition
	 - [ ] dev/benchmarks/macrobenchmarks
	 - [ ] dev/benchmarks/platform_channels_benchmarks
	 - [ ] dev/benchmarks/microbenchmarks
 - dev/integration_tests (an attempt was made in #91127, but never landed).
	 - [ ] dev/integration_tests/flutter_gallery
	 - [ ] dev/integration_tests_views
	 - [ ] dev/integration_tests/spell_check
	 - [ ] dev/integration_tests/release_smoke_test
	 - [ ] dev/integration_tests/non_nullable
	 - [ ] dev/integration_tests_embedding_v2_smoke_test
	 - [ ] dev/integration_tests/platform_interaction
	 - [ ] dev/integration_tests/hybrid_android_views
	 - [ ] dev/integration_tests/abstract_method_smoke_test
	 - [ ] dev/integration_tests/external_ui
	 - [ ] dev/integration_tests/ui
	 - [ ] dev/integration_tests/gradle_deprecated_settings
	 - [ ] dev/integration_tests/flavors
	 - [ ] dev/integration_tests/channels
	 - [ ] dev/integration_tests/deferred_components_test
	 - [ ] dev/integration_tests_semantics_testing
 - Other tests
     - [ ] dev/manual_tests
     - [ ] dev/tracing_tests
 - examples
	 - [ ] examples/flutter_view
	 - [ ] examples/platform_view
	 - [ ] examples/platform_channel
	 - [ ] examples/api
	 - [ ] examples/hello_world
	 - [ ] examples/layers
	 - [ ] examples/image_list
Repository: pytorch
Issue: Document dist.new_subgroups
Labels: oncall: distributed,module: docs,triaged

### 📚 The doc issue

This is currently undocumented.

### Suggest a potential alternative/fix

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @svekars @carljparker