sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: kubernetes
Issue: fake client policy/v1 eviction not reflected
Labels: kind/bug,sig/api-machinery,help wanted,triage/accepted

### What happened?

fake client eviction does not behave as expected in 1.25 release

### What did you expect to happen?

if I Evict a naked pod and then do a List, I expect the pod to not be returned.

### How can we reproduce it (as minimally and precisely as possible)?

The code below will not work on 1.25

```go
package main

import (
	"context"
	"log"

	v1 "k8s.io/api/core/v1"
	policy "k8s.io/api/policy/v1"
	meta "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes/fake"
)

const (
	namespace = "default"
	podName   = "eviction-bug"
)

func main() {
	client := fake.NewSimpleClientset()
	ctx := context.Background()

	createPod(client, ctx)

	evictPod(client, ctx)

	pods, _ := client.CoreV1().Pods(namespace).List(ctx, meta.ListOptions{})
	if len(pods.Items) != 0 {
		log.Fatalf("pod %s eviction is not reflect when doing a list", podName)
	}
}

func createPod(client *fake.Clientset, ctx context.Context) {
	client.CoreV1().Pods(namespace).Create(ctx, &v1.Pod{
		ObjectMeta: meta.ObjectMeta{Name: podName, Namespace: namespace},
	}, meta.CreateOptions{})

	pods, _ := client.CoreV1().Pods(namespace).List(ctx, meta.ListOptions{})
	if len(pods.Items) != 1 {
		log.Fatalf("pod %s was not created", podName)
	}
}

func evictPod(client *fake.Clientset, ctx context.Context) {
	eviction := &policy.Eviction{
		TypeMeta:      meta.TypeMeta{APIVersion: "v1", Kind: "Eviction"},
		ObjectMeta:    meta.ObjectMeta{Name: podName, Namespace: namespace},
		DeleteOptions: &meta.DeleteOptions{},
	}
	if err := client.PolicyV1().Evictions(namespace).Evict(ctx, eviction); err != nil {
		log.Fatalf("unable to evict pod %s", podName)
	}
}
```

This will output: 
```
2022/08/31 23:21:54 pod eviction-bug eviction is not reflect when doing a list
```



### Anything else we need to know?

This is blocking `kubernetes-sigs/descheduler`'s 0.25 release https://github.com/kubernetes-sigs/descheduler/pull/918

### Kubernetes version

<details>
1.25
</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: kubernetes
Issue: Inconceivable: dispatch before arrival - apparent APF error
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

Running a load test on K8s 1.23.5, and I got some messages like this:

```
\"Inconceivable!\" err=\"dispatch before arrival\" QS=\"system\" queue=0 dispatchR=\"6570.26436833ss\" request=... flowDistinguisher:system:node:[redacted] fsName:system-nodes ... workEstimate:{WorkEstimate:{InitialSeats:1 FinalSeats:0 AdditionalLatency:0} totalWork:300000 finalWork:0} ... arrivalTime:{wall:13887921938884605587 ext:18745363038248 ... arrivalR:657026745599 startTime:{wall:0 ext:0 loc:<nil>} waitStarted:false}
```

### What did you expect to happen?

It runs without inconceivable errors

### How can we reproduce it (as minimally and precisely as possible)?

I don't have a good repro, sorry.  Output is from an internal load test that we run here at AKS. There were other errors logged around the same time (so maybe there's some load-related issue in the cluster that caused the problem - I haven't checked that at this time).  Just figured I'd better log this issue because, given the wording of the error message, I figured someone might like to know.  

### Kubernetes version

1.23.5


### Cloud provider

AKS
Repository: three.js
Issue: USDZ assets containing USDC files throw warning
Labels: Loaders


**Describe the bug**
I have a threejs based WordPress Plugin (https://3ov.xyz) and was working to add the latest usdz supports (It's working really well! Thanks for this update!) The assets provided in the PR were working really well for me so far.

I'm seeing issues with Apple's sample assets from their site so there may be some edge cases not passing parse.
`THREE.USDZLoader: No usda file found.`

**To Reproduce**

Use the retro television asset from [https://developer.apple.com/augmented-reality/quick-look/](https://developer.apple.com/augmented-reality/quick-look/
) 

Load asset into a scene and you should see a console warning and a blank scene  `THREE.USDZLoader: No usda file found.`

In my code I am just using a simple `useLoader`

`const usdz = useLoader( USDZLoader, url);`

I'm still digging but not sure how best to debug as I'm pretty unfamiliar with the usdz file type.

**Platform:**

 - Device: [Desktop, Mobile]
 - OS: [MacOS]
 - Browser: [Chrome, Firefox, Safari, Edge]
 - Initial USDZ Three.js version: [144.0]
Repository: react-native
Issue: Pressable Ripple Animation goes beyond curved border
Labels: Needs: Triage :mag:,Never gets stale

### Description

When trying to create a Pressable that has a borderRadius style, the ripple animation goes beyond the curved borders. This issue seems to have existed for quite some time, while current solutions include wrapping the pressable in a view and applying borderRadius on that, is there a better way to fix this?

![qGnUv](https://user-images.githubusercontent.com/49569838/187840265-0f43e984-3354-48f0-bd83-acdf1d1cb685.gif)
Gif source: [StackOverflow Question](https://stackoverflow.com/questions/63048178/ripple-effect-leaking-at-corners-as-if-pressable-button-has-a-borderradius)
This stackoverflow link includes more information as well.

### Version

0.69.1

### Output of `npx react-native info`

System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz     
    Memory: 12.43 GB / 31.71 GB
  Binaries:
    Node: 14.20.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.17 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      Versions: 10.0.19041.0
  IDEs:
    Android Studio: AI-212.5712.43.2112.8609683
    Visual Studio: 16.11.32802.440 (Visual Studio Community 2019)   
  Languages:
    Java: 11.0.15 - C:\Program Files\OpenJDK\openjdk-11.0.15_10\bin\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.0.0 => 18.0.0
    react-native: 0.69.1 => 0.69.1
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

```
<Pressable
        android_ripple={{ color: 'red', borderless: false }}
        style={{ backgroundColor: 'blue', borderRadius: 10 }}>
        <Text style={{ alignSelf: 'center' }}>Button</Text>
</Pressable>
```
[https://stackoverflow.com/questions/63048178/ripple-effect-leaking-at-corners-as-if-pressable-button-has-a-borderradius](https://stackoverflow.com/questions/63048178/ripple-effect-leaking-at-corners-as-if-pressable-button-has-a-borderradius)

### Snack, code example, screenshot, or link to a repository

Same as above
Repository: deno
Issue: repl: define import.meta.main and import.meta.url
Labels: repl,suggestion,help wanted

When checking something quickly in the REPL, like creating a new URL, it would be handy if `import.meta.main` and `import.meta.url` were accessible and assigned values.
Repository: angular
Issue: JSONP request will always failed if HttpClientJsonpModule imported after HttpClientModule
Labels: area: common/http,P3

### Which @angular/* package(s) are the source of the bug?

common/http

### Is this a regression?

Yes

### Description

After update to angular14, a function in our project which use `HttpClient.jsonp()` not work any more. 

We finded out that `HttpClient.jsonp` in v14 will throw an error if the headers in reqeust is not empty, and that what make matters worse is that in the project we import HttpClientModule which provides a HttpXsrfInterceptor before HttpClientJsonpModule, so before `JsonpInterceptor` can handle the jsonp request, the request was already intercepted by `HttpXsrfInterceptor` and a xsrf header was already added to the request which caused the '`JSONP requests do not support headers`' Error

I don't think is resonable that we must import HttpClientJsonpModule before HttpClientModule to use jsonp. May be HttpXsrfInterceptor should escape if request.method is `jsonp`, i'd like to help if angular team agree with this.

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

```true
JSONP requests do not support headers
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
angular v14
node v16
macos 12.5.1
```


### Anything else?

_No response_
Repository: flutter
Issue: exposing `FormState` `_fields` value
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

## Use case

the form widget can be a powerful tool as it caches and can interact with all its child `FormField` without having to manually track them through keys. this is useful for a couple build in features like submitting & saving. but blocks the user from creating it's own implementations like for example https://github.com/flutter/flutter/pull/107530


## Proposal

make the FormState `_fields` value into a public `field` so we can use it to extend its functionality

```dart
/// State associated with a [Form] widget.
///
/// A [FormState] object can be used to [save], [reset], and [validate] every
/// [FormField] that is a descendant of the associated [Form].
///
/// Typically obtained via [Form.of].
class FormState extends State<Form> {

  final Set<FormFieldState<dynamic>> fields = <FormFieldState<dynamic>>{};
  
   ...

}
```

this issue would allow us to implement our own extensions that would, for example, make https://github.com/flutter/flutter/issues/107528 doable by the user.
Repository: flutter
Issue: [Proposal] Rewrite static class enumeration with the new `enum` class
Labels: framework,c: proposal,P3,team-framework,triaged-framework

## Use case

We have multiple internal enumerations implemented with static const. Such as `FloatingLabelAlignment`, `TextInputType`. We could probably make them implemented by the new enum class.

## Proposal

Just an example, not an actual code in the package.

Before `TextInputType`:

```dart
class TextInputType {
  const TextInputType._(this.index);

  static const TextInputType text = TextInputType._(0);
}
```

After:

```dart
enum TextInputType {
  text._(0);

  const TextInputType._(this._index);

  final int _index;
}
```

## Considerations

- `TextInputType` cannot be modified since it has various constructors.
- New enumerations should verify if they match previous name callers, we have multiple forms of enumeration's name in the Dart's history.
- Any type references or test against AST element type might fail.
Repository: storybook
Issue: Please upgrade Chokidar 2
Labels: bug,needs triage

**Describe the bug**
![image](https://user-images.githubusercontent.com/152227/187879875-d153152d-6990-40ef-b331-d2436b35e2af.png)

Chokidar 2 should probably be updated. It doesn't look good to get this message while doing a clean install.

**To Reproduce**
Do a clean install in (any?) project. Mine happens to be Vue 2.

**System**
Please paste the results of `npx sb@next info` here.
```
Need to install the following packages:
  sb@6.5.0-rc.1
Ok to proceed? (y) n
npm ERR! canceled

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\<snip>\2022-09-01T09_23_43_652Z-debug-0.log
```
Repository: vscode
Issue: Workspace Trust - The redundancy settings in UI State sync file
Labels: debt,workspace-trust

There are too many WorkspaceTrust settings under the value "workbench.statusbar.hidden" in globalState.json, and can't be cleaned, even if you disable the workspace trust function.
I think a auto clean function is needed.
![image](https://user-images.githubusercontent.com/53963800/187896444-eac9cfc6-15a3-4dbe-a5c6-47845fb17998.png)
Repository: pytorch
Issue: Odd type-casting behaviour in prims.div
Labels: triaged,module: type promotion,module: primTorch

### 🐛 Describe the bug

We have that:
```python
>>> prims.div(torch.tensor([3]), torch.tensor([2.]))
```
Errors with a 
> RuntimeError: Tensor with dtype torch.float32 is not the expected dtype of torch.int64!

but
```python
>>> prims.div(torch.tensor([3]), 2.)
tensor([1.])
>>> prims.div(torch.tensor([3.]), 2)
tensor([1.5000])
```

I know that scalars have some funny type casting rules. Is this one of them? Or are we missing a kind check in the scalar case in `div_meta`? I am leaning more towards the latter one, as the check for integer inputs to see whether to perform the true division or truncated division is performed just on the first input (as if it was already known that the inputs have the same type). 

### Versions

master

cc @nairbv @mruberry @ezyang @ngimel
Repository: godot
Issue: Scrolling with mouse wheel does not close popups
Labels: bug,topic:gui

### Godot version

0c221f0

### System information

Windows 10 x64

### Issue description

![godot windows tools x86_64_E7RepJv48o](https://user-images.githubusercontent.com/2223172/187901725-b3dd58cd-2b43-4d7c-8337-ae334997e86f.gif)

Does not happen in 3.x, because you can't scroll with popup open.

### Steps to reproduce

1. Right-click to open context menu in some scrollable area
2. Scroll

### Minimal reproduction project

_No response_
Repository: terminal
Issue: We play weird ownership games with SignalTextChanged, and we don't know why
Labels: Area-TerminalControl,Area-Accessibility,Product-Terminal,Needs-Tag-Fix,Area-CodeHealth,Priority-3

See context: #13876, [MSFT:39994969](https://task.ms/39994969)

See discussion:
> I'm not really in favor of this PR. There shouldn't be situation to begin with were NVDA calls us and the existence of `TermControl` is the make/break of whether WT crashes... As such I'd prefer fixing whatever UIA APIs we have that might crash WT, including any assumptions we have that WinUI won't suddenly call `AppHost::~AppHost` despite being 50 calls deep in the stack.


> > Should we file a workitem to fix this more soundly? Should we take this as a "stopgap" until we can fix it more soundly?
> 
> Maybe I was too terse. 😄 I'm in favor of merging this, just not in favor of this PR because it's a stopgap. I think we should just continue to work on cleaning up our pointer safety and data sharing behavior. Maybe even do it consciously at some point instead of doing it on a case by case basis. IMO we should remove any use of `this` (including implicit use) if it can be avoided and find and if possible remove implicit recursion like this one were class X calls Y which calls back into X (e.g. introduce class Z which is used by both X and Y, removing the need for recursion).


> > Maybe even do it consciously at some point instead of doing it on a case by case basis.
> 
> YES
Repository: godot
Issue: Changing properties in a base scene doesn't always update instances of scenes that inherit from it.
Labels: bug,topic:editor

### Godot version

4.0alpha15, 3.5 stable

### System information

Windows 10

### Issue description

Changing a property in a base scene doesn't always update instances of its children placed in a 3rd scene.

For example, properties of the "Fighter" enemy instance placed into a level scene aren't updated if they are changed in the base "Enemy" scene that the fighter scene inherits from.

### Steps to reproduce

1. Create a New Scene called "BaseScene"
2. Create a New Inherited Scene of BaseScene called "InheritedScene"
3. Add instances of InheritedScene to a 3rd Scene called "WorldScene"
4. Change a property (e.g. Visibility) on Base Scene
5. Save both BaseScene and InheritedScene
6. Observe that the modified properties of BaseScene are not updated in the instances of InheritedScene placed in WorldScene.

### Minimal reproduction project

_No response_
Repository: puppeteer
Issue: [Bug]: response.buffer() is sometimes neither resolved nor rejected
Labels: bug,upstream,confirmed,P3

### Bug description

Steps to reproduce the problem:

1. Run the following code:
```javascript
'use strict'

const puppeteer = require('puppeteer')

;(async function () {
  const browser = await puppeteer.launch()
  const context = await browser.createIncognitoBrowserContext()
  const page = await context.newPage()
  let bodies = 0
  let responseCount = 0
  page.on('response', (response) => {
    const url = response.url()
    if (/^data:/i.test(url)) return
    const count = ++responseCount
    console.log(`response ${count}: ${url}`)
    bodies++
    response.buffer().then(body => {
      bodies--
      console.log(`response ${count}: received ${body.length} bytes`)
    }).catch(error => {
      console.log(`response ${count}: error: ${error}`)
    })
  })
  await page.goto('https://unequivocal.eu/mp3.mp3')
  await new Promise(resolve => setTimeout(resolve, 10 * 1000))
  console.log(`missing bodies: ${bodies}`)
  await page.close()
  await context.close()
  await browser.close()
})()
```
2. Observe that the output is as follows:
```
response 1: https://unequivocal.eu/mp3.mp3
response 2: https://unequivocal.eu/mp3.mp3
response 2: received 72 bytes
missing bodies: 1
```
   instead of:
```
response 1: https://unequivocal.eu/mp3.mp3
response 1: received 72 bytes
missing bodies: 0
````

Note that the MP3 being used is a trivial 72-byte example. If a larger MP3 is used instead then neither response body resolves and you get `missing bodies: 2`.

It may be that it's simply not practicable to get the response body for something like an MP3 file, but in that case `response.buffer()` should be rejecting, or resolving to undefined, or something. Or at the very least, there should be a documented way to know in advance that `response.buffer()` is going to stall and thus avoid calling it in the first place. (If there is an undocumented way, that would be useful to know also!)

This is issue #7294 re-opened as `stalebot` wrongly closed that one.

### Puppeteer version

17.0.0

### Node.js version

16.17.0

### npm version

8.15.0

### What operating system are you seeing the problem on?

Linux, Windows

### Relevant log output

_No response_
Repository: storybook
Issue: Serving static files via Storybook Configuration object 
Labels: bug,needs triage

**Describe the bug**
After building the Storybook application, I cannot find statics assets in the build

**To Reproduce**
Here is my main.js file with multiple staticDirs :

```
const rootMain = require('../../../.storybook/main');

module.exports = {
    ...rootMain,
    core: { ...rootMain.core, builder: 'webpack5' },
    stories: [
        ...rootMain.stories,
        '../src/',
        {
            directory: '../../../libs'
        },
    ],
    staticDirs: [
        {
            from: '../../../libs/shared/util/global-assets/src/lib/assets',
            to: 'assets',
        },
        {
            from: '../../../node_modules/@ant-design/icons-angular/src/inline-svg',
            to: 'assets',
        },
    ],
    addons: [...rootMain.addons],
    webpackFinal: async (config, { configType }) => {
        if (rootMain.webpackFinal) {
            config = await rootMain.webpackFinal(config, { configType });
        }
        return config;
    },
};
```

During the build, I can see : 
```
info => Copying static files: ********\libs\shared\util\global-assets\src\lib\assets at ********\dist\apps\storybook\assets
info => Copying static files: ********\node_modules\@ant-design\icons-angular\src\inline-svg at ********\dist\apps\storybook\assets
```

So he is copying thoses files, but I only retrieve assets of the first staticDirs (global-assets\src\lib\assets) in my build. But not those from icons-angular\src\inline-svg.


"@angular/cli": "14.2.1",
"@nrwl/storybook": "14.5.10",
"@nrwl/workspace": "14.5.10",
"@storybook/addon-actions": "6.5.10",
"@storybook/addon-essentials": "6.5.10",
"@storybook/angular": "6.5.10",
"@storybook/builder-webpack5": "6.5.10",
"@storybook/core-server": "6.5.10",
"@storybook/manager-webpack5": "6.5.10",
Repository: pytorch
Issue: several questions about pytorch DDP
Labels: triaged,module: nccl,module: ddp

Hi there, I have several questions about pytorch DDP impletion. 

1. Which method allreduce op used by nccl in pytorch c10d, ring allreducer or double binary tree allreduce? better point out the code.
2. What data type is the gradient transfer between the processes when use amp, float32 or float16 or same data type as the parameter tensor?

### Versions

- pytorch version is  1.10.0
- nccl version is 2.10.3
Repository: pytorch
Issue: Deepcopy of FX graph fails with nested make_fx and constant tensors
Labels: triaged,module: fx,fx

### 🐛 Describe the bug

Deepcopy of `make_fx` produced graphs is needed when using `torch.fx.passes.infra.partitioner.CapabilityBasedPartitioner` because that partitioner modifies the graph in-place.

```python
import torch
from copy import deepcopy
from torch.fx.experimental.proxy_tensor import make_fx

class Test(torch.overrides.TorchFunctionMode):
    def __torch_function__(
        self,
        f,
        types,
        args = (),
        kwargs = {},
    ):
        gm = make_fx(f)(*args)
        return f(*args, **(kwargs or {}))

a = torch.randn(3, 3)
b = torch.randn(3, 3)

def func(b):
    # note a is constant
    return a + b

# This works
gm = make_fx(func)(b)
deepcopy(gm)

with Test():
    gm = make_fx(func)(b)

# This fails
try:
    deepcopy(gm)
except Exception as e:
    print(e)
    pass

# But normal make_fx also fails now
try:
    gm = make_fx(func)(b)
    deepcopy(gm)
except Exception as e:
    print(e)
    pass
```
```py
File ~/dev/pytorch/master/torch/fx/experimental/proxy_tensor.py:383, in PythonKeyTracer.create_arg(self, a)
    381     assert a.get_pyobj().constant is not None
    382     return a.get_pyobj().constant
--> 383 return super().create_arg(a)

File ~/dev/pytorch/master/torch/fx/_symbolic_trace.py:344, in Tracer.create_arg(self, a)
    340     setattr(self.root, qualname, a)
    342     return self.create_node("get_attr", qualname, (), {})
--> 344 return super().create_arg(a)

File ~/dev/pytorch/master/torch/fx/proxy.py:166, in TracerBase.create_arg(self, a)
    163 elif isinstance(a, base_types) or a is None or a is ...:
    164     return a
--> 166 raise NotImplementedError(f"argument of type: {type(a)}")

NotImplementedError: argument of type: <class 'torch.storage.UntypedStorage'>
```

### Versions

Latest master.

cc @ezyang @SherlockNoMad @soumith