-
Notifications
You must be signed in to change notification settings - Fork 164
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
download linuxkit instead of building, as it is a basic tool; eliminate eve-build-<user>
image from most activities
#4081
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see tons of lines in workflow (something like tar: Ignoring unknown extended header keyword...
) can you please check?
A few things: First, I do not understand why the riscv64 PR build failed. Second, it looks like I cannot recreate it locally. If I try to run the same It does not build for the pkgs, which is a definite step up. But we should resolve the rest before merging this in. |
Yes, I know what it is. linuxkit tracks information on each file that was placed into its tar (rootfs.tar) so it can know efficiently if it needs to redo them when rebuilding. It turns out to make it significantly faster (multiple times) to regenerate. Added in this PR. This was an efficiency idea from @rouming, which turned out to be really helpful. It stores the additional info as PAX headers on the files. Not every version of tar recognizes extended PAX headers. Those that do not, usually treat it as a warning, which is convenient. It continues to work backwards-compatibly. The messages you are seeing is because we call We probably can (should?) fix it, although unrelated to this PR. We can suppress it with |
Mind, |
It looks like the |
b971379
to
d44184f
Compare
This was transient, rerunning it fixed it.
This was due to an update necessary in |
d44184f
to
fda7401
Compare
Yash fixed it, rebased, should be clean now. Will follow closely. |
I can confirm that the build now does not try to build linuxkit or the |
Signed-off-by: Avi Deitcher <avi@deitcher.net>
fda7401
to
3302d2e
Compare
This changes the
Makefile
so that linuxkit is downloaded directly from its GitHub release page as a compiled binary, rather than downloading the repo and compiling it. It also eliminates the need for a "linuxkit.version" flag file, but checking the actual linuxkit version against the desired version by runninglinuxkit version --short
. As of v1.3.0, linuxkit supports that syntax.The real benefit, though, is that it eliminates the need for building that
eve-build-<user>
docker image, unless you take an activity that requires it (likemake shell
). Those activities are all developer-specific ones. With this change, it will build that only if you take one of those activities.make eve-pillar
is not one of those activities, nor is any of the othermake eve-*
ones for packages, or evenmake eve
.This will make getting to the actual build part of
make
commands faster.Also, perhaps even more importantly, it eliminates the usage of that image from the GitHub Actions pipelines. That means no more pulls of
golang
or similar for that purpose. This will make logs cleaner, and a lot fewer pulls of rate-limited images. We were pulling them with every single run of any command to the Makefile. That goes away.