golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.07k stars 17.55k forks source link

x/build/cmd/watchflakes: fails to run after a build output property field gitilesCommit → gitiles_commit rename #69609

Open dmitshur opened 2 hours ago

dmitshur commented 2 hours ago

Watchflakes is currently in a continuous crashloop:

$ kubectl logs -p watchflakes-deployment-7dd687d899-8rf75
watchflakes: 2024/09/24 12:12:43 ListBuilders  
watchflakes: 2024/09/24 12:12:44 ReadBoard go master
watchflakes: 2024/09/24 12:12:44 ListCommits go master
watchflakes: 2024/09/24 12:12:44 ListBuilders go master
watchflakes: 2024/09/24 12:12:45 GetBuilds gotip-linux-amd64-ssacheck
watchflakes: 2024/09/24 12:12:45 GetBuilds gotip-linux-386-softfloat
[...]
watchflakes: 2024/09/24 12:12:45 GetBuilds gotip-linux-386-longtest
watchflakes: 2024/09/24 12:12:45 GetBuilds gotip-js-wasm
watchflakes: 2024/09/24 12:12:45 GetBuilds gotip-linux-amd64-longtest-race
watchflakes: 2024/09/24 12:12:46 repo mismatch:  go https://ci.chromium.org/b/8735981222897055585

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.

gabyhelp commented 2 hours ago

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)