gh action: add go tidy check#291
Conversation
cf55501 to
73662ac
Compare
|
LGTM |
|
Looks like #292 worked as well and added the storage label so that is good. |
I though it already did, at least when I looked at it with @jankaluza why the workspace vendoring was broken. It definably has workspace aware code so maybe some extra config option. |
|
Mhh if I look at the logs https://developer.mend.io/github/containers/container-libs/-/job/d0c5143f-0e63-4056-b583-398cdd67ac40 it definitely claims it runs go work sync, I guess it might be the same issue with the vendor dir where the resulting diff is not added to the commit |
|
Yes, previously #283 did sync things — But that one had a reason to update |
|
Looking at the renovate config I am not sure we can make it work, first our config is wrong as we still ask for vendoring https://github.com/containers/container-libs/blob/d08c7eec33b7997c1a50a4d79e00b312dc9fcb53/.github/renovate.json5#L54 but when we remove it will no longer run go work sync as this is put inside the useVendor condition. So to me I guess renovate is just not working no matter what config we use, I guess best case we just make a PR to renovate to fix the behavior. I am not sure if the discussion will gain much traction otherwise, the repo seems quite busy. |
|
For a while, it wouldn’t be so bad for us to manually amend every Renovate-filed PR with a I agree contributing a PR to Renovate upstream would be the cleanest approach. We could, also, give up on keeping the repo consistent with I guess the decision ~depends on a guess how much effort+time it would take to improve Renovate. |
|
Dropped the commit which added So I guess that means renovate PRs would still break on that check thus we cannot merge until renovate gets fixed unless we like to amend all the PRs which I don't |
|
We could explicitly ignore the top-level OTOH if we think Renovate is going to be fixed shortly, it might be easier to wait than to do things twice. |
Well that is the problem, we cannot know that side. Even if Jan submits a fix, it doesn't mean it gets merged anytime soon. And then we use the hosted mend instance so we get to wait until the fix gets deployed there and who knows how long that will take. |
Make sure all go module related changes are committed properly. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
|
Rebased, since go.work.sum is gitignored this should work fine now and we really should have this CI check running, compare #372 |
mtrmac
left a comment
There was a problem hiding this comment.
Thanks! LGTM.
(Looking at https://github.com/containers/container-libs/actions/runs/18659715963/job/53197142461?pr=291 , after setup-go we seem to download quite a few other dependencies, but we don’t save that as a new cache item; it seems that the cache key matches a different job that doesn’t do those downloads; and actions/setup-go doesn’t have an option to let us explicitly differentiate between the various caches. But then again, this is by no means the longest test, so it doesn’t matter; we could do something horribly tacky ugly like add an extra file to cache-dependency-path, let’s not.)
Uh good catch, I think I see what is happening, the git-validation doesn't download any modules out of this repo but uses the same **/go.sum cache key, when that job finished first it uploads the wrong modules from git-validate. I guess we don't need to block on it since that would be a pre existing issue but to fix it we would should make git-validate use a different cache at least, unfortunately we cannot skip the saving actions/setup-go#497 Alternatively we group them all in serial into one task instead of having these four currently. |
I think if
Oh that is absolutely non-blocking; the 26 seconds make ~no difference to anything, and most importantly, I want to get this check in to prevent the repeat of #372 . |
|
It seems my Renovate PR is now deployed in production. The commit renovatebot/renovate@b50ee3d is introduced in the version 41.135.6 and the one deployed in Mend is 41.143.1. |
Did you test that it works correctly then? If so please make a PR enable vendoring and add go.work.sum back. |
|
(Purely for the record, https://github.com/containers/container-libs/actions/runs/18684685633/job/53274063370?pr=372 confirms that the |
Make sure all go module related changes are committed properly.