All of lore.kernel.org
 help / color / mirror / Atom feed
* k3s build issues on master
@ 2022-03-31 16:22 Diego Sueiro
  2022-03-31 16:38 ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Sueiro @ 2022-03-31 16:22 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Bruce Ashfield, nd

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

Hi Bruce,

Whilst investigating a build problem on our CI related to sstate mirror of the k3s recipe, I found that the commit "k3s: update to 1.23.1" (8cba065209dd668afe939f878da340a017ecdd7d) didn't change the PV and SRCREV_k3s variables correctly.

I changed those values to v1.23.1+k3s1 and 08d538fb3a04a0fe904b34cf04f7e21191b82449 respectively and now I'm getting the following do_compile error:
```
go: inconsistent vendoring in /kas_build_dir/tmp/work/neoversen1-poky-linux/k3s/v1.23.3+k3s1-r0/k3s-v1.23.3+k3s1/src/import:
    github.com/google/cadvisor@v0.43.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
[...]
    k8s.io/sample-controller: is marked as replaced by github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.22.6-k3s1 in vendor/modules.txt, but replaced by github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.23.3-k3s1 in go.mod

    To ignore the vendor directory, use -mod=readonly or -mod=mod.
    To sync the vendor directory, run:
        go mod vendor
```

Unfortunately, I have zero knowledge in go and I have no idea how I could fix this.



Diego Sueiro
Staff Software Developer – ARM – Automotive and Industrial Solutions (CE-OSS)

[-- Attachment #2: Type: text/html, Size: 4224 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: k3s build issues on master
  2022-03-31 16:22 k3s build issues on master Diego Sueiro
@ 2022-03-31 16:38 ` Bruce Ashfield
  2022-03-31 18:05   ` Diego Sueiro
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2022-03-31 16:38 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: meta-virtualization, nd

[-- Attachment #1: Type: text/plain, Size: 2112 bytes --]

On Thu, Mar 31, 2022 at 12:22 PM Diego Sueiro <Diego.Sueiro@arm.com> wrote:

> Hi Bruce,
>
> Whilst investigating a build problem on our CI related to sstate mirror of
> the k3s recipe, I found that the commit "k3s: update to 1.23.1" (8cba065209dd668afe939f878da340a017ecdd7d)
> didn't change the PV and SRCREV_k3s variables correctly.
>
> I changed those values to v1.23.1+k3s1
> and 08d538fb3a04a0fe904b34cf04f7e21191b82449 respectively and now I'm
> getting the following do_compile error:
> ```
> go: inconsistent vendoring in
> /kas_build_dir/tmp/work/neoversen1-poky-linux/k3s/v1.23.3+k3s1-r0/k3s-v1.23.3+k3s1/src/import:
>     github.com/google/cadvisor@v0.43.0: is explicitly required in go.mod,
> but not marked as explicit in vendor/modules.txt
> [...]
>     k8s.io/sample-controller: is marked as replaced by
> github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.22.6-k3s1
> in vendor/modules.txt, but replaced by
> github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.23.3-k3s1
> in go.mod
>
>     To ignore the vendor directory, use -mod=readonly or -mod=mod.
>     To sync the vendor directory, run:
>         go mod vendor
> ```
>
>
The short log is wrong, the SRCREV and PV are correct. There's some
fundamental issues with 1.23.x that prevented it from building inside or
outside of bitbake, so I scaled back the version bump at the last minute to
stay in 1.22.x series.

And yes, there's no more vendoring in k3s, so you can't just bump the
SRCREV and PV, we have to adjust all of the git clones and shuffling to
make it build.

I have some more changes to that recipe pending, so I'll do a minor
cleanup, with a shortlog that makes things clear.

Cheers,

Bruce



> Unfortunately, I have zero knowledge in go and I have no idea how I could
> fix this.
>

> Diego Sueiro
> Staff Software Developer – ARM – Automotive and Industrial Solutions
> (CE-OSS)
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #2: Type: text/html, Size: 6551 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: k3s build issues on master
  2022-03-31 16:38 ` Bruce Ashfield
@ 2022-03-31 18:05   ` Diego Sueiro
  2022-03-31 18:36     ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Sueiro @ 2022-03-31 18:05 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: meta-virtualization, nd

[-- Attachment #1: Type: text/plain, Size: 2799 bytes --]

Hi Bruce,
________________________________
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Sent: 31 March 2022 17:38
To: Diego Sueiro <Diego.Sueiro@arm.com>
Cc: meta-virtualization@lists.yoctoproject.org <meta-virtualization@lists.yoctoproject.org>; nd <nd@arm.com>
Subject: Re: k3s build issues on master



On Thu, Mar 31, 2022 at 12:22 PM Diego Sueiro <Diego.Sueiro@arm.com<mailto:Diego.Sueiro@arm.com>> wrote:
Hi Bruce,

Whilst investigating a build problem on our CI related to sstate mirror of the k3s recipe, I found that the commit "k3s: update to 1.23.1" (8cba065209dd668afe939f878da340a017ecdd7d) didn't change the PV and SRCREV_k3s variables correctly.

I changed those values to v1.23.1+k3s1 and 08d538fb3a04a0fe904b34cf04f7e21191b82449 respectively and now I'm getting the following do_compile error:
```
go: inconsistent vendoring in /kas_build_dir/tmp/work/neoversen1-poky-linux/k3s/v1.23.3+k3s1-r0/k3s-v1.23.3+k3s1/src/import:
    github.com/google/cadvisor@v0.43.0<http://github.com/google/cadvisor@v0.43.0>: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
[...]
    k8s.io/sample-controller<http://k8s.io/sample-controller>: is marked as replaced by github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.22.6-k3s1<http://github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.22.6-k3s1> in vendor/modules.txt, but replaced by github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.23.3-k3s1<http://github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.23.3-k3s1> in go.mod

    To ignore the vendor directory, use -mod=readonly or -mod=mod.
    To sync the vendor directory, run:
        go mod vendor
```


The short log is wrong, the SRCREV and PV are correct. There's some fundamental issues with 1.23.x that prevented it from building inside or outside of bitbake, so I scaled back the version bump at the last minute to stay in 1.22.x series.

In this case it seems that thev1.22.6+k3s1<https://github.com/k3s-io/k3s/tree/v1.22.6%2Bk3s1> tag is pointing to 3228d9cb9a4727d48f60de4f1ab472f7c50df904.

Cheers,

Diego

And yes, there's no more vendoring in k3s, so you can't just bump the SRCREV and PV, we have to adjust all of the git clones and shuffling to make it build.

I have some more changes to that recipe pending, so I'll do a minor cleanup, with a shortlog that makes things clear.

Cheers,

Bruce


Unfortunately, I have zero knowledge in go and I have no idea how I could fix this.


Diego Sueiro
Staff Software Developer – ARM – Automotive and Industrial Solutions (CE-OSS)


--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


[-- Attachment #2: Type: text/html, Size: 9875 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: k3s build issues on master
  2022-03-31 18:05   ` Diego Sueiro
@ 2022-03-31 18:36     ` Bruce Ashfield
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2022-03-31 18:36 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: meta-virtualization, nd

[-- Attachment #1: Type: text/plain, Size: 3307 bytes --]

On Thu, Mar 31, 2022 at 2:05 PM Diego Sueiro <Diego.Sueiro@arm.com> wrote:

> Hi Bruce,
> ------------------------------
> *From:* Bruce Ashfield <bruce.ashfield@gmail.com>
> *Sent:* 31 March 2022 17:38
> *To:* Diego Sueiro <Diego.Sueiro@arm.com>
> *Cc:* meta-virtualization@lists.yoctoproject.org <
> meta-virtualization@lists.yoctoproject.org>; nd <nd@arm.com>
> *Subject:* Re: k3s build issues on master
>
>
>
> On Thu, Mar 31, 2022 at 12:22 PM Diego Sueiro <Diego.Sueiro@arm.com>
> wrote:
>
> Hi Bruce,
>
> Whilst investigating a build problem on our CI related to sstate mirror of
> the k3s recipe, I found that the commit "k3s: update to 1.23.1" (8cba065209dd668afe939f878da340a017ecdd7d)
> didn't change the PV and SRCREV_k3s variables correctly.
>
> I changed those values to v1.23.1+k3s1
> and 08d538fb3a04a0fe904b34cf04f7e21191b82449 respectively and now I'm
> getting the following do_compile error:
> ```
> go: inconsistent vendoring in
> /kas_build_dir/tmp/work/neoversen1-poky-linux/k3s/v1.23.3+k3s1-r0/k3s-v1.23.3+k3s1/src/import:
>     github.com/google/cadvisor@v0.43.0: is explicitly required in go.mod,
> but not marked as explicit in vendor/modules.txt
> [...]
>     k8s.io/sample-controller: is marked as replaced by
> github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.22.6-k3s1
> in vendor/modules.txt, but replaced by
> github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller@v1.23.3-k3s1
> in go.mod
>
>     To ignore the vendor directory, use -mod=readonly or -mod=mod.
>     To sync the vendor directory, run:
>         go mod vendor
> ```
>
>
> The short log is wrong, the SRCREV and PV are correct. There's some
> fundamental issues with 1.23.x that prevented it from building inside or
> outside of bitbake, so I scaled back the version bump at the last minute to
> stay in 1.22.x series.
>
>
> In this case it seems that thev1.22.6+k3s1
> <https://github.com/k3s-io/k3s/tree/v1.22.6%2Bk3s1> tag is pointing
> to 3228d9cb9a4727d48f60de4f1ab472f7c50df904.
>

The SRCREV is as intended. It is not intended to be that tag exactly, it is
the tip of the 1.22.x branch (and that's what all of them have been
throughout the history of the recipes).

We can use +git${SRCPV} in the recipe, but honestly, that's not the biggest
challenge with the go mod chaos, but I'll add it as part of my next update.

Cheers,

Bruce



>
> Cheers,
>
> Diego
>
> And yes, there's no more vendoring in k3s, so you can't just bump the
> SRCREV and PV, we have to adjust all of the git clones and shuffling to
> make it build.
>
> I have some more changes to that recipe pending, so I'll do a minor
> cleanup, with a shortlog that makes things clear.
>
>
> Cheers,
>
> Bruce
>
>
>
> Unfortunately, I have zero knowledge in go and I have no idea how I could
> fix this.
>
>
> Diego Sueiro
> Staff Software Developer – ARM – Automotive and Industrial Solutions
> (CE-OSS)
>
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee
> at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #2: Type: text/html, Size: 10592 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-31 18:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 16:22 k3s build issues on master Diego Sueiro
2022-03-31 16:38 ` Bruce Ashfield
2022-03-31 18:05   ` Diego Sueiro
2022-03-31 18:36     ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.