Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation for setting milestones on PRs and issues is broken #22120

Closed
nickboldt opened this issue Mar 30, 2023 · 14 comments
Closed

Automation for setting milestones on PRs and issues is broken #22120

nickboldt opened this issue Mar 30, 2023 · 14 comments
Assignees
Labels
area/ci CI build and releases, PR testing, & whitelabel/productization issues kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. sprint/next

Comments

@nickboldt
Copy link
Contributor

Is your task related to a problem? Please describe

The GH action https://github.com/benoitf/che-sync-remote/actions/workflows/sync.yml used to set milestones on PRs and issues has broken.

We need to look at WHY and then resurrect it; or we could consider moving to a simpler python script that uses the GH API to manipulate issues and pull requests.

Describe the solution you'd like

Fix the existing TS app or move to python script.

Move the script to a centalized place, like https://github.com/eclipse-che/che-release/

Describe alternatives you've considered

No response

Additional context

No response

@nickboldt nickboldt added kind/task Internal things, technical debt, and to-do tasks to be performed. area/ci CI build and releases, PR testing, & whitelabel/productization issues labels Mar 30, 2023
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 30, 2023
@amisevsk amisevsk added severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 31, 2023
@nickboldt
Copy link
Contributor Author

This might be P1 for the next sprint, depending on opinions from @ibuziuk and @l0rd about how it impacts data workflows for documentation & the Thursday PR/issue triage calls. cc: @max-cx as well.

@l0rd
Copy link
Contributor

l0rd commented Apr 4, 2023

The repo has been moved in che-incubator.

@nickboldt
Copy link
Contributor Author

Does this need its own repo? Isn't this sort of tooling exactly what che-release is for? Are we not trying to simplify the overhead incurred in having SO many places to put/update tokens, dependabot PRs, etc. ?

Also wondering who will be the codeowners for this, since it's a TS app.

@ibuziuk ibuziuk added severity/P1 Has a major impact to usage or development of the system. and removed severity/P2 Has a minor but important impact to the usage or development of the system. labels Apr 5, 2023
@nickboldt nickboldt self-assigned this Apr 17, 2023
@nickboldt
Copy link
Contributor Author

Related issue: https://issues.redhat.com/browse/CRW-4349

dmytro-ndp added a commit to redhat-developer/devspaces-images that referenced this issue May 26, 2023
Disable ghira.groovy till eclipse-che/che#22120 is fixed
@nickboldt nickboldt removed their assignment May 31, 2023
@ibuziuk
Copy link
Member

ibuziuk commented Sep 5, 2023

@nickboldt can we prio this issue for the next sprint?

@nickboldt
Copy link
Contributor Author

nickboldt commented Sep 10, 2023

PR: che-incubator/che-sync-remote#26

Update milestone with params {
  owner: 'eclipse-che',
  repo: 'che-theia',
  milestone_number: 71,
  title: '7.64',
  state: 'closed'
}
RequestError [HttpError]: Repository was archived so is read-only.

Looks like we need to remove archived products from https://raw.githubusercontent.com/eclipse/che/master/.repositories.yaml ...

#22500

nickboldt added a commit that referenced this issue Sep 10, 2023
Change-Id: Ica9e7d2ede33ee7eb77528181f298cf519e934c1
Signed-off-by: Nick Boldt <[email protected]>
nickboldt added a commit that referenced this issue Sep 11, 2023
* chore: remove che-theia as it's archived/read-only (#22120)

Change-Id: Ica9e7d2ede33ee7eb77528181f298cf519e934c1
Signed-off-by: Nick Boldt <[email protected]>

* run ./.repositories-update-contributing.sh

Change-Id: Icb18565aae0a04c8966353ccc75fd5587d235c62
Signed-off-by: Nick Boldt <[email protected]>

* fix links; remove eclipse-che/che-plugin-broker (archived); dedupe che-incubator/devfile-api entries (why listed twice?)

Change-Id: I571d2d7b2fbbaf787d5a4c4a01a8d25c8abc38e0
Signed-off-by: Nick Boldt <[email protected]>

* re-run ./.repositories-update-contributing.sh

Change-Id: Ic93abe9d0d80d6f65e73601fbc92a1de3184fc62
Signed-off-by: Nick Boldt <[email protected]>

---------

Signed-off-by: Nick Boldt <[email protected]>
@nickboldt
Copy link
Contributor Author

nickboldt commented Sep 11, 2023

milestones added to these repos:

eclipse/che
7.74
7.75

eclipse-che/che-server
8.x
7.75
7.74

che-incubator/chectl
8.x
7.x (Later, Future, Never)
7.75
7.74

che-incubator/che-code
8.x
7.75
7.74

eclipse-che/che-dashboard
8.x
7.x (Later, Future, Never)
7.75
7.74

eclipse-che/che-devfile-registry
8.x
7.x (Later, Future, Never)
7.75
7.74

eclipse-che/che-docs
8.x
7.x (Later, Future, Never)
7.75
7.74

eclipse-che/che-machine-exec
8.x
7.x (Later, Future, Never)
7.75
7.74

eclipse-che/che-operator
8.x
7.x (Later, Future, Never)
7.75
7.74

eclipse-che/che-plugin-registry
8.x
7.x (Later, Future, Never)
7.75
7.74

Repos without milestones:

eclipse-che/che-website
eclipse-che/che-workspace-client
che-incubator/configbump
che-incubator/workspace-data-sync
che-incubator/che-workspace-telemetry-client
che-incubator/kubernetes-image-puller
eclipse-che/blog
eclipse-che/che-docs-vale-style
eclipse-che/che-release
che-incubator/che-deploy-action
che-incubator/devfile-converter
che-incubator/happy-path-tests-action
che-incubator/header-rewrite-traefik-plugin
che-incubator/jetbrains-editor-images
che-incubator/kubernetes-image-puller-operator
devfile/registry
devfile/developer-images
devfile/devworkspace-operator-docs
che-incubator/check-license-header
che-incubator/devworkspace-telemetry-woopra-plugin
che-incubator/setup-minikube-action
che-incubator/dependencies-license-action
che-incubator/dash-licenses
che-incubator/devfile-api

Also:

devfile/devworkspace-operator
v0.19.x
v0.20.x
v0.21.x
v0.23.x
v0.22.x

musienko-maxim pushed a commit that referenced this issue Sep 11, 2023
* chore: remove che-theia as it's archived/read-only (#22120)

Change-Id: Ica9e7d2ede33ee7eb77528181f298cf519e934c1
Signed-off-by: Nick Boldt <[email protected]>

* run ./.repositories-update-contributing.sh

Change-Id: Icb18565aae0a04c8966353ccc75fd5587d235c62
Signed-off-by: Nick Boldt <[email protected]>

* fix links; remove eclipse-che/che-plugin-broker (archived); dedupe che-incubator/devfile-api entries (why listed twice?)

Change-Id: I571d2d7b2fbbaf787d5a4c4a01a8d25c8abc38e0
Signed-off-by: Nick Boldt <[email protected]>

* re-run ./.repositories-update-contributing.sh

Change-Id: Ic93abe9d0d80d6f65e73601fbc92a1de3184fc62
Signed-off-by: Nick Boldt <[email protected]>

---------

Signed-off-by: Nick Boldt <[email protected]>
@nickboldt
Copy link
Contributor Author

nickboldt commented Sep 11, 2023

Query String = repo:eclipse/che repo:eclipse-che/che-server/ repo:che-incubator/chectl repo:che-incubator/che-code repo:eclipse-che/che-dashboard repo:eclipse-che/che-devfile-registry repo:eclipse-che/che-docs repo:eclipse-che/che-machine-exec repo:eclipse-che/che-operator repo:eclipse-che/che-plugin-registry is:pr merged:>=2023-09-11T14:05:03.485Z is:merged no:milestone

-- https://github.com/che-incubator/che-sync-remote/actions/runs/6148220844/job/16681458520

Not sure yet if we need to add more repos to the list.

If so, can set useCheReleaseLifecycle: true in https://raw.githubusercontent.com/eclipse/che/main/.repositories.yaml for additional projects.

@l0rd
Copy link
Contributor

l0rd commented Sep 11, 2023

Do we really need to maintain a bot that sets milestones of merged PRs?

When a merged PR belongs to a git tag then GitHub already shows the label:

image (link)

image (link)

@nickboldt
Copy link
Contributor Author

nickboldt commented Sep 11, 2023

I thought the point of this was to set milestones (before a release), not tags (after a release) ... but if we no longer need this to facilitate triage and creation of N&N (after a release), then I'm happy to sunset this tool.

@ibuziuk WDYT? I thought we wanted this back after 5 months of it being broken... but if not, then it's one more repo we can archive.

@l0rd
Copy link
Contributor

l0rd commented Sep 11, 2023

I thought the point of this was to set milestones (before a release), not tags (after a release)

The reasoning is: if there is no tag, then the PR will be included in next release. And if the tag is there, then it matches the release that includes the PR.

@nickboldt
Copy link
Contributor Author

Good point. So we don't need milestones for che project anymore?

@ibuziuk
Copy link
Member

ibuziuk commented Sep 12, 2023

During the retrospective we had a discussion about this issue, and identified it as an action item for the Dev Tools week.
Basically, the problem is that it is very hard at the moment to identify which issues were closed in particular Eclipse Che version. Previously we used milestones [1] for that, which are not accurate e.g. 7.72.0 and 7.73.0 have only 3 issues. My understanding is that we should either set milestones manually on each issue before closing, or bring back the automation.

[1] https://github.com/eclipse/che/milestones?state=closed

@ibuziuk
Copy link
Member

ibuziuk commented Sep 27, 2023

Closing this issue since there is a plan to remove milestones from eclipse/che repository in general.
@l0rd I believe this was discussed on the community call, but not sure if there is a plan to also communicate it via email

@ibuziuk ibuziuk closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI build and releases, PR testing, & whitelabel/productization issues kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. sprint/next
Projects
None yet
Development

No branches or pull requests

5 participants