Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] [RFC] Stale issues/pulls action
@ 2022-04-12 13:30 dmarto
  2022-04-14 23:44 ` classabbyamp
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: dmarto @ 2022-04-12 13:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2070 bytes --]

New issue by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657

Description:
Related to: #36253 #36399 #36462

My believe is that with the current action and settings, the backlog won't disappear.

The action tries to consume all open issues and PRs, on every run. 
Even with the max hourly limit of 1000 operation, the action can't check and label all currently open items.
(can be seen in the debug runs from @maldridge) 

As of now ~210 issues and ~418 PRs are supposed to be **Stale**.
(taking into account the change from #36609, https://github.com/void-linux/void-packages/issues?q=is%3Aopen+updated%3A%3C%3D2022-01-11+no%3Aassignee+-label%3Arequest)

At the current rates of new new issues/PRs, I believe they will never be marked, only very few (the newest of the oldest) items will get marked.

Also there seems is another issue with the action - it doesn't count PR review comments as updates for the action, example #34884. That PR got marked Stale, received a review, and the next day the action saw the changes, but didn't count them as comments and left the Stale label. Thus it seems, only real comments are counted. 

---

I am suggesting to raise the operation limit to something like 400 (which should result in roughly 50-60, newly marked items per run), so there can be at least some progress. The other actions, are not doing many requests, so for the one random hour in the middle of the night this should be okay.

Multiple runs a day, can also be an option - but they will mark one or two new items, as currently the bulk of the operations is spent on fetching brand new items and checking current stale ones. 

Of course an option will be to find or write a smarter action
 - that can has better access pattern into the backlog (i.e not always starting from the newest issue/PR)
 - possibly even split itself into two actions that can run in different hours (issues and pulls)


P.S. There seems to be a v5 of the action, but it doesn't address any of the concerned topics.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
@ 2022-04-14 23:44 ` classabbyamp
  2022-04-15  0:13 ` dmarto
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: classabbyamp @ 2022-04-14 23:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099723238

Comment:
> Also there seems is another issue with the action - it doesn't count PR review comments as updates for the action, example https://github.com/void-linux/void-packages/pull/34884. That PR got marked Stale, received a review, and the next day the action saw the changes, but didn't count them as comments and left the Stale label. Thus it seems, only real comments are counted.

this looks like a bug to me. The github API shows it was updated after the stale label was added (it's the time paper added their review comments):
```
$ gh pr view --json updatedAt 34884
{
  "updatedAt": "2022-04-10T11:45:44Z"
}
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
  2022-04-14 23:44 ` classabbyamp
@ 2022-04-15  0:13 ` dmarto
  2022-04-15  0:19 ` dmarto
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-04-15  0:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3591 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099734310

Comment:
indeed, but here is what the action tell us (on runs after the marking)

```
[#34884] Pull request #34884
  [#34884] Found this pull request last updated at: 2022-04-10T11:45:44Z
  [#34884] The option only-labels (​https://github.com/actions/stale#only-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] Days before pull request stale: 90
  [#34884] The pull request is not closed nor locked. Trying to remove the close label...
  [#34884] ├── The close-pr-label (​https://github.com/actions/stale#close-pr-label​) option was not set
  [#34884] └── Skipping the removal of the close label
  [#34884] This pull request has a stale label
  [#34884] The option any-of-labels (​https://github.com/actions/stale#any-of-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] This pull request has no milestone
  [#34884] └── Skip the milestones checks
  [#34884] This pull request has no assignee
  [#34884] └── Skip the assignees checks
  [#34884] This pull request is already stale
  [#34884] Checking for label on this pull request
  [#34884] Pull request marked stale on: 2022-04-10T02:05:37Z
  [#34884] Checking for comments on pull request since: 2022-04-10T02:05:37Z
  [#34884] Comments that are not the stale comment or another bot: 0
  [#34884] Pull request has been commented on: false
  [#34884] Days before pull request close: 14
  [#34884] Pull request has been updated: true
  [#34884] The option remove-stale-when-updated (​https://github.com/actions/stale#remove-stale-when-updated​) is: true
  [#34884] The stale label should not be removed
  [#34884] Stale pull request is not old enough to close yet (hasComments? false, hasUpdate? true)
  [#34884] 1 operation consumed for this pull request
 ```

the important lines are 

```
..
  [#34884] Pull request has been commented on: false
..
  [#34884] Pull request has been updated: true
..
```

fast reference in the source of the action, https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L519=

it checks only for comments, and if we check what the API gives us, we can confirm 
```sh
$ gh pr view --json comments 34884
{
  "comments": [
    {
      "author": {
        "login": "ericonr"
      },
      "authorAssociation": "MEMBER",
      "body": "Please mention in the commit that you're switching upstream to the version that has the newest releases.",
      "createdAt": "2022-01-06T04:39:54Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": [
        {
          "content": "THUMBS_UP",
          "users": {
            "totalCount": 1
          }
        }
      ]
    },
    {
      "author": {
        "login": "github-actions"
      },
      "authorAssociation": "NONE",
      "body": "Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.",
      "createdAt": "2022-04-10T02:05:36Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": []
    }
  ]
}
```

so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
  2022-04-14 23:44 ` classabbyamp
  2022-04-15  0:13 ` dmarto
@ 2022-04-15  0:19 ` dmarto
  2022-04-15  0:20 ` dmarto
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-04-15  0:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3714 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099734310

Comment:
indeed, but here is what the action tell us (on runs after the marking)

```
[#34884] Pull request #34884
  [#34884] Found this pull request last updated at: 2022-04-10T11:45:44Z
  [#34884] The option only-labels (​https://github.com/actions/stale#only-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] Days before pull request stale: 90
  [#34884] The pull request is not closed nor locked. Trying to remove the close label...
  [#34884] ├── The close-pr-label (​https://github.com/actions/stale#close-pr-label​) option was not set
  [#34884] └── Skipping the removal of the close label
  [#34884] This pull request has a stale label
  [#34884] The option any-of-labels (​https://github.com/actions/stale#any-of-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] This pull request has no milestone
  [#34884] └── Skip the milestones checks
  [#34884] This pull request has no assignee
  [#34884] └── Skip the assignees checks
  [#34884] This pull request is already stale
  [#34884] Checking for label on this pull request
  [#34884] Pull request marked stale on: 2022-04-10T02:05:37Z
  [#34884] Checking for comments on pull request since: 2022-04-10T02:05:37Z
  [#34884] Comments that are not the stale comment or another bot: 0
  [#34884] Pull request has been commented on: false
  [#34884] Days before pull request close: 14
  [#34884] Pull request has been updated: true
  [#34884] The option remove-stale-when-updated (​https://github.com/actions/stale#remove-stale-when-updated​) is: true
  [#34884] The stale label should not be removed
  [#34884] Stale pull request is not old enough to close yet (hasComments? false, hasUpdate? true)
  [#34884] 1 operation consumed for this pull request
 ```

the important lines are 

```
..
  [#34884] Pull request has been commented on: false
..
  [#34884] Pull request has been updated: true
..
```

fast reference in the source of the action,
https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L731=
->
https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L519=

it checks only for comments, and if we check what the API gives us, we can confirm 
```sh
$ gh pr view --json comments 34884
{
  "comments": [
    {
      "author": {
        "login": "ericonr"
      },
      "authorAssociation": "MEMBER",
      "body": "Please mention in the commit that you're switching upstream to the version that has the newest releases.",
      "createdAt": "2022-01-06T04:39:54Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": [
        {
          "content": "THUMBS_UP",
          "users": {
            "totalCount": 1
          }
        }
      ]
    },
    {
      "author": {
        "login": "github-actions"
      },
      "authorAssociation": "NONE",
      "body": "Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.",
      "createdAt": "2022-04-10T02:05:36Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": []
    }
  ]
}
```

so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (2 preceding siblings ...)
  2022-04-15  0:19 ` dmarto
@ 2022-04-15  0:20 ` dmarto
  2022-04-15  0:21 ` dmarto
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-04-15  0:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3756 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099734310

Comment:
indeed, but here is what the action tell us (on runs after the marking)

```
[#34884] Pull request #34884
  [#34884] Found this pull request last updated at: 2022-04-10T11:45:44Z
  [#34884] The option only-labels (​https://github.com/actions/stale#only-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] Days before pull request stale: 90
  [#34884] The pull request is not closed nor locked. Trying to remove the close label...
  [#34884] ├── The close-pr-label (​https://github.com/actions/stale#close-pr-label​) option was not set
  [#34884] └── Skipping the removal of the close label
  [#34884] This pull request has a stale label
  [#34884] The option any-of-labels (​https://github.com/actions/stale#any-of-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] This pull request has no milestone
  [#34884] └── Skip the milestones checks
  [#34884] This pull request has no assignee
  [#34884] └── Skip the assignees checks
  [#34884] This pull request is already stale
  [#34884] Checking for label on this pull request
  [#34884] Pull request marked stale on: 2022-04-10T02:05:37Z
  [#34884] Checking for comments on pull request since: 2022-04-10T02:05:37Z
  [#34884] Comments that are not the stale comment or another bot: 0
  [#34884] Pull request has been commented on: false
  [#34884] Days before pull request close: 14
  [#34884] Pull request has been updated: true
  [#34884] The option remove-stale-when-updated (​https://github.com/actions/stale#remove-stale-when-updated​) is: true
  [#34884] The stale label should not be removed
  [#34884] Stale pull request is not old enough to close yet (hasComments? false, hasUpdate? true)
  [#34884] 1 operation consumed for this pull request
 ```

the important lines are 

```
..
  [#34884] Pull request has been commented on: false
..
  [#34884] Pull request has been updated: true
..
```

fast reference in the source of the action,
[_hasCommentsSince](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L731=)
->
[listIssueComments](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L519=)

it checks only for comments, and if we check what the API gives us, we can confirm 
```sh
$ gh pr view --json comments 34884
{
  "comments": [
    {
      "author": {
        "login": "ericonr"
      },
      "authorAssociation": "MEMBER",
      "body": "Please mention in the commit that you're switching upstream to the version that has the newest releases.",
      "createdAt": "2022-01-06T04:39:54Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": [
        {
          "content": "THUMBS_UP",
          "users": {
            "totalCount": 1
          }
        }
      ]
    },
    {
      "author": {
        "login": "github-actions"
      },
      "authorAssociation": "NONE",
      "body": "Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.",
      "createdAt": "2022-04-10T02:05:36Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": []
    }
  ]
}
```

so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (3 preceding siblings ...)
  2022-04-15  0:20 ` dmarto
@ 2022-04-15  0:21 ` dmarto
  2022-04-15  0:23 ` dmarto
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-04-15  0:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3753 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099734310

Comment:
indeed, but here is what the action tell us (on runs after the marking)

```
[#34884] Pull request #34884
  [#34884] Found this pull request last updated at: 2022-04-10T11:45:44Z
  [#34884] The option only-labels (​https://github.com/actions/stale#only-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] Days before pull request stale: 90
  [#34884] The pull request is not closed nor locked. Trying to remove the close label...
  [#34884] ├── The close-pr-label (​https://github.com/actions/stale#close-pr-label​) option was not set
  [#34884] └── Skipping the removal of the close label
  [#34884] This pull request has a stale label
  [#34884] The option any-of-labels (​https://github.com/actions/stale#any-of-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] This pull request has no milestone
  [#34884] └── Skip the milestones checks
  [#34884] This pull request has no assignee
  [#34884] └── Skip the assignees checks
  [#34884] This pull request is already stale
  [#34884] Checking for label on this pull request
  [#34884] Pull request marked stale on: 2022-04-10T02:05:37Z
  [#34884] Checking for comments on pull request since: 2022-04-10T02:05:37Z
  [#34884] Comments that are not the stale comment or another bot: 0
  [#34884] Pull request has been commented on: false
  [#34884] Days before pull request close: 14
  [#34884] Pull request has been updated: true
  [#34884] The option remove-stale-when-updated (​https://github.com/actions/stale#remove-stale-when-updated​) is: true
  [#34884] The stale label should not be removed
  [#34884] Stale pull request is not old enough to close yet (hasComments? false, hasUpdate? true)
  [#34884] 1 operation consumed for this pull request
 ```

the important lines are 

```
..
  [#34884] Pull request has been commented on: false
..
  [#34884] Pull request has been updated: true
..
```

fast reference in the source of the action, [_hasCommentsSince](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L731=) -> [listIssueComments](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L519=)

it checks only for comments, and if we check what the API gives us, we can confirm 
```sh
$ gh pr view --json comments 34884
{
  "comments": [
    {
      "author": {
        "login": "ericonr"
      },
      "authorAssociation": "MEMBER",
      "body": "Please mention in the commit that you're switching upstream to the version that has the newest releases.",
      "createdAt": "2022-01-06T04:39:54Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": [
        {
          "content": "THUMBS_UP",
          "users": {
            "totalCount": 1
          }
        }
      ]
    },
    {
      "author": {
        "login": "github-actions"
      },
      "authorAssociation": "NONE",
      "body": "Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.",
      "createdAt": "2022-04-10T02:05:36Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": []
    }
  ]
}
```

so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (4 preceding siblings ...)
  2022-04-15  0:21 ` dmarto
@ 2022-04-15  0:23 ` dmarto
  2022-04-15  6:43 ` 0x5c
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-04-15  0:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3896 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099734310

Comment:
indeed, but here is what the action tell us (on runs after the marking)

```
[#34884] Pull request #34884
  [#34884] Found this pull request last updated at: 2022-04-10T11:45:44Z
  [#34884] The option only-labels (​https://github.com/actions/stale#only-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] Days before pull request stale: 90
  [#34884] The pull request is not closed nor locked. Trying to remove the close label...
  [#34884] ├── The close-pr-label (​https://github.com/actions/stale#close-pr-label​) option was not set
  [#34884] └── Skipping the removal of the close label
  [#34884] This pull request has a stale label
  [#34884] The option any-of-labels (​https://github.com/actions/stale#any-of-labels​) was not specified
  [#34884] └── Continuing the process for this pull request
  [#34884] This pull request has no milestone
  [#34884] └── Skip the milestones checks
  [#34884] This pull request has no assignee
  [#34884] └── Skip the assignees checks
  [#34884] This pull request is already stale
  [#34884] Checking for label on this pull request
  [#34884] Pull request marked stale on: 2022-04-10T02:05:37Z
  [#34884] Checking for comments on pull request since: 2022-04-10T02:05:37Z
  [#34884] Comments that are not the stale comment or another bot: 0
  [#34884] Pull request has been commented on: false
  [#34884] Days before pull request close: 14
  [#34884] Pull request has been updated: true
  [#34884] The option remove-stale-when-updated (​https://github.com/actions/stale#remove-stale-when-updated​) is: true
  [#34884] The stale label should not be removed
  [#34884] Stale pull request is not old enough to close yet (hasComments? false, hasUpdate? true)
  [#34884] 1 operation consumed for this pull request
 ```

the important lines are 

```
..
  [#34884] Pull request has been commented on: false
..
  [#34884] Pull request has been updated: true
..
```

fast reference in the source of the action, [_processStaleIssue](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L627= ) -> [_hasCommentsSince](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L731=) -> [listIssueComments](https://github.com/actions/stale/blob/a88f7b30b9de416a7c04936636bb18b49f4ec6a5/src/classes/issues-processor.ts#L519=)

it checks only for comments, and if we check what the API gives us, we can confirm 
```sh
$ gh pr view --json comments 34884
{
  "comments": [
    {
      "author": {
        "login": "ericonr"
      },
      "authorAssociation": "MEMBER",
      "body": "Please mention in the commit that you're switching upstream to the version that has the newest releases.",
      "createdAt": "2022-01-06T04:39:54Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": [
        {
          "content": "THUMBS_UP",
          "users": {
            "totalCount": 1
          }
        }
      ]
    },
    {
      "author": {
        "login": "github-actions"
      },
      "authorAssociation": "NONE",
      "body": "Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.",
      "createdAt": "2022-04-10T02:05:36Z",
      "includesCreatedEdit": false,
      "isMinimized": false,
      "minimizedReason": "",
      "reactionGroups": []
    }
  ]
}
```

so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (5 preceding siblings ...)
  2022-04-15  0:23 ` dmarto
@ 2022-04-15  6:43 ` 0x5c
  2022-04-15  6:50 ` 0x5c
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: 0x5c @ 2022-04-15  6:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099896757

Comment:
> so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers

The documentation [states](https://github.com/actions/stale#remove-stale-when-updated):
> `remove-stale-when-updated`
Automatically remove the stale label when the issues or the pull requests are updated (based on [GitHub issue](https://docs.github.com/en/rest/reference/issues) field `updated_at`) or commented.
Default value: `true`

The action not acting like the documentation says it should is a bug

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (6 preceding siblings ...)
  2022-04-15  6:43 ` 0x5c
@ 2022-04-15  6:50 ` 0x5c
  2022-04-15  8:05 ` 0x5c
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: 0x5c @ 2022-04-15  6:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099896757

Comment:
> so it is not exactly a bug (as in code mistake/error), it just not a feature that the action offers

The documentation [states](https://github.com/actions/stale#remove-stale-when-updated):
> `remove-stale-when-updated`
Automatically remove the stale label when the issues or the pull requests are updated (based on [GitHub issue](https://docs.github.com/en/rest/reference/issues) field `updated_at`) or commented.
Default value: `true`

The action not acting like the documentation says it should is a bug

Edit: adding those relevant lines
```
  [#34884] Pull request has been updated: true
  [#34884] The option remove-stale-when-updated (​https://github.com/actions/stale#remove-stale-when-updated​) is: true
  [#34884] The stale label should not be removed
```
(no message removed between them)
- It detects the PR has been updated: Correct
- It states it should remove stale when a pr is updated: Correct
- It decides that the label should not be removed: ???

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (7 preceding siblings ...)
  2022-04-15  6:50 ` 0x5c
@ 2022-04-15  8:05 ` 0x5c
  2022-04-15 11:05 ` dmarto
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: 0x5c @ 2022-04-15  8:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1099946846

Comment:
Found the code where it doesn't do the checks it should do, and reported the bug https://github.com/actions/stale/issues/715.
It does the proper check ( not updated AND not commented) to gate the logic that actually closes issues/PRs, so that PR might be softlocked into a stale but not closed state.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (8 preceding siblings ...)
  2022-04-15  8:05 ` 0x5c
@ 2022-04-15 11:05 ` dmarto
  2022-04-15 21:17 ` 0x5c
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-04-15 11:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1100041441

Comment:
My bad, I only checked the table in the action documentation; that didn't mention `..based on field updated_at..` so I assumed wrong, it is indeed a bug. 

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (9 preceding siblings ...)
  2022-04-15 11:05 ` dmarto
@ 2022-04-15 21:17 ` 0x5c
  2022-06-20 23:22 ` dmarto
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: 0x5c @ 2022-04-15 21:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1100411841

Comment:
I was able to come up with a fix so I made a PR in the stale repo https://github.com/actions/stale/pull/717

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (10 preceding siblings ...)
  2022-04-15 21:17 ` 0x5c
@ 2022-06-20 23:22 ` dmarto
  2022-06-20 23:45 ` 0x5c
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dmarto @ 2022-06-20 23:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1160945885

Comment:
As of few hours ago, @0x5c fix was merged in upstream; with that, I think all point are covered now and we just have to wait for a new release of the action.

So, maybe we can close this issue or convert it into a tracking one for the supposed action update?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (11 preceding siblings ...)
  2022-06-20 23:22 ` dmarto
@ 2022-06-20 23:45 ` 0x5c
  2022-09-19  2:14 ` github-actions
  2022-10-04  2:14 ` [ISSUE] [CLOSED] " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: 0x5c @ 2022-06-20 23:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

New comment by 0x5c on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1160960554

Comment:
There are more bugs that weren't mentioned here, but are much harder to fix in stalebot without a refactor. For example issues/PRs being in eternal stale limbo if assigned to someone after they got the stale label since the stale/unstale logic is after the "is this assigned" check skips the issue.

The workflow will still need to be updated to the `v5` branch (currently using `v4`) since that's the version that will contain my fix when it arrives.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (12 preceding siblings ...)
  2022-06-20 23:45 ` 0x5c
@ 2022-09-19  2:14 ` github-actions
  2022-10-04  2:14 ` [ISSUE] [CLOSED] " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2022-09-19  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/36657#issuecomment-1250474086

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [ISSUE] [CLOSED] [RFC] Stale issues/pulls action
  2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
                   ` (13 preceding siblings ...)
  2022-09-19  2:14 ` github-actions
@ 2022-10-04  2:14 ` github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2022-10-04  2:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2181 bytes --]

Closed issue by dmarto on void-packages repository

https://github.com/void-linux/void-packages/issues/36657

Description:
Related to: #36253 #36399 #36462

My believe is that with the current action and settings, the backlog won't disappear.

The action tries to consume all open issues and PRs, on every run. 
Even with the max hourly limit of 1000 operation, the action can't check and label all currently open items.
(can be seen in the debug runs from @maldridge) 

As of now ~210 issues and ~418 PRs are supposed to be **Stale**.
(taking into account the change from #36609, https://github.com/void-linux/void-packages/issues?q=is%3Aopen+updated%3A%3C%3D2022-01-11+no%3Aassignee+-label%3Arequest)

At the current rates of new new issues/PRs, I believe they will never be marked, only very few (the newest of the oldest) items will get marked.

Also there seems is another issue with the action - it doesn't count PR review comments as updates for the action, example #34884. That PR got marked Stale, received a review, and the next day the action saw the changes, but didn't count them as comments and left the Stale label. Thus it seems, only real comments are counted. 

---

I am suggesting to raise the operation limit to something like 400 (which should result in roughly 50-60, newly marked items per run), so there can be at least some progress. The other actions, are not doing many requests, so for the one random hour in the middle of the night this should be okay.

Multiple runs a day, can also be an option - but they will mark one or two new items, as currently the bulk of the operations is spent on fetching brand new items and checking current stale ones. 

Of course an option will be to find or write a smarter action
 - that can has better access pattern into the backlog (i.e not always starting from the newest issue/PR)
 - possibly even split itself into two actions that can run in different hours (issues and pulls)


P.S. There seems to be a v5 of the action, but it doesn't address any of the concerned topics.

P.P.S https://github.com/Sonia-corporation/stale may be a solution, but I haven't looked too much into it.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-10-04  2:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 13:30 [ISSUE] [RFC] Stale issues/pulls action dmarto
2022-04-14 23:44 ` classabbyamp
2022-04-15  0:13 ` dmarto
2022-04-15  0:19 ` dmarto
2022-04-15  0:20 ` dmarto
2022-04-15  0:21 ` dmarto
2022-04-15  0:23 ` dmarto
2022-04-15  6:43 ` 0x5c
2022-04-15  6:50 ` 0x5c
2022-04-15  8:05 ` 0x5c
2022-04-15 11:05 ` dmarto
2022-04-15 21:17 ` 0x5c
2022-06-20 23:22 ` dmarto
2022-06-20 23:45 ` 0x5c
2022-09-19  2:14 ` github-actions
2022-10-04  2:14 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).