-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/watchflakes: fails to run after a build output property field gitilesCommit → gitiles_commit rename #69609
Comments
Change https://go.dev/cl/615515 mentions this issue: |
Not sure how to test it, but https://go.dev/cl/615515 might work. |
One way to test it would be to run watchflakes locally; it should no longer run into the "repo mismatch" error. Thanks for fixing this. |
Change https://go.dev/cl/615976 mentions this issue: |
I had not realized I needed to give it an explicit kick, let me try that. |
As of crrev.com/c/5875121, golangbuild switched to the new default behavior of using 'proto' field naming (such as "gitiles_commit") instead of using protobuf default names (such as "gitilesCommit"). The previous behavior can still be achieved by explicitly using the https://pkg.go.dev/go.chromium.org/luci/luciexe/build/properties#OptProtoUseJSONNames option, but we choose to accept the new default behavior since it's fine for our needs. So, update a few places in lucipoll for the new field naming pattern as was also recently done for watchflakes in CL 615515. Not handling the old pattern here since lucipoll only needs to handle new builds. Also drop the unused "omitempty" option from BuilderConfigProperties while here - it's never used for marshaling, only unmarshaling. For golang/go#69609. For golang/go#65913. Change-Id: Icf2f942fa9821f8781c9a2ecaddd2a3e10496ba2 Reviewed-on: https://go-review.googlesource.com/c/build/+/615976 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: David Chase <[email protected]>
Watchflakes is currently in a continuous crashloop:
It keeps running into the log.Fatalf at luci.go:366.
The problem is likely related to the fact that the output property "sources" now has a field named "gitiles_commit", whereas previously that field was named "gitilesCommit", and watchflakes looks only for the previous name at this time.
For reference:
crrev.com/c/5875121 might be what caused the field to have a new underscore-separated name.
CC @golang/release, @dr2chase, @cherrymui.
The text was updated successfully, but these errors were encountered: