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

x/build/cmd/relnote: RELNOTE in Gerrit comments are missed after Gerrit UI change in July 2020 #41849

Closed
dmitshur opened this issue Oct 7, 2020 · 5 comments
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Milestone

Comments

@dmitshur
Copy link
Contributor

dmitshur commented Oct 7, 2020

Similarly to #40106, another effect of the Gerrit UI switch from change messages to patchset comments is that that when "RELNOTE=yes" is posted in a comment (rather than in the commit message), it is not picked up by the relnote command today.

For example, CL 258957 has a comment that contains "RELNOTES=yes", yet it's not picked up by relnote.

Unlike #40106, relnote uses maintner to very quickly scan over all CLs covering a time period of 6 months rather than the Gerrit API, so the fix is not going to be as straightforward. There are different paths that come to mind:

/cc @cagedmantis @toothrot

@dmitshur dmitshur added Builders x/build issues (builders, bots, dashboards) NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Oct 7, 2020
@dmitshur dmitshur added this to the Go1.16 milestone Oct 7, 2020
@gopherbot
Copy link

Change https://golang.org/cl/260337 mentions this issue: doc/go1.16: document removal of GO386=387

gopherbot pushed a commit that referenced this issue Oct 7, 2020
Also add a few more TODOs as found by the relnote command.
It's an incomplete list due to #41849.

For #40700.

Change-Id: Id17a9be86d3338e1fcb281d26e7298ff26e92864
Reviewed-on: https://go-review.googlesource.com/c/go/+/260337
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
@toothrot toothrot assigned toothrot and dmitshur and unassigned toothrot Nov 5, 2020
@gopherbot
Copy link

Change https://golang.org/cl/272906 mentions this issue: cmd/relnote: use GerritCL.Subject method instead of clSubject function

@gopherbot
Copy link

Change https://golang.org/cl/272907 mentions this issue: cmd/relnote: use Gerrit API to find RELNOTE markers in inline comments

@gopherbot
Copy link

Change https://golang.org/cl/272871 mentions this issue: doc/go1.16: fill in Go 1.16 release note TODOs using relnote

gopherbot pushed a commit that referenced this issue Nov 24, 2020
The additions were generated using golang.org/x/build/cmd/relnote
at CL 272907. It was modified to find previously-missed entries
by querying the Gerrit API in addition to the maintner corpus.

For #40700.
Updates #41849.

Change-Id: If575984fe40e0133ad5e8fc5411ea5063457250d
Reviewed-on: https://go-review.googlesource.com/c/go/+/272871
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
@dmitshur
Copy link
Contributor Author

Sent CL 272907.

I went with the following approach:

  • Another option is to modify relnote to use the Gerrit API. It should be possible to write a search query to find the relevant CLs. If such a search query is possible, this might be a much smaller volume of work.

If maintner is modified in the future to track inline comments in the future, relnote can go back to not needing to use Gerrit API directly. But it's fine either way.

@dmitshur dmitshur added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Nov 24, 2020
gopherbot pushed a commit to golang/build that referenced this issue Dec 1, 2020
Apply a trivial code simplification. Tested by re-running relnote, and
its output did not change.

For golang/go#41849.

Change-Id: Ifffebca5ee55d7470f32a2469b4e41d1a1a458d1
Reviewed-on: https://go-review.googlesource.com/c/build/+/272906
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alexander Rakoczy <alex@golang.org>
@golang golang locked and limited conversation to collaborators Dec 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Projects
None yet
Development

No branches or pull requests

4 participants
@toothrot @dmitshur @gopherbot and others