-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: coreboot git describe #495
Conversation
Now the wrong Marv is even tagged on GitHub and not only on slack anymore, great 😁 |
Oh, sorry, sleep deprivation :D I will stop for today, probably doing more damage then anything else :D |
70450ac
to
789fc2b
Compare
@MDr164 btw, what do you think about the unit-testing? The biggest hurdle I think would be the need for The commands to check are:
|
feb4f73
to
3ed5c8e
Compare
Gotta take a closer look later, sadly I'm a bit busy this week
That is part of coreboot and could be precompiled inside the container if we need it. Some distributions even package it already.
Doesn't look too hard and could be automated, no? |
No problem ;)
Ou yeah, you are correct - we are actually running some tests inside the Docker containers. Therefore this is easy to implement! I have completely forgot about that :D I thought we would have to implement testing inside containers :D Thanks past me for so good coverage!
Yeah, if we execute the test inside Docker container, it is trivial. So let's do it. |
3ed5c8e
to
fb131cf
Compare
- the motivations behind this: - coreboot likes to embed its source version into the compiled binary - coreboot does that by calling 'git describe ...' - however with firmware-action we can assume people will include coreboot as git submodule, and thus when compiling coreboot in container the git commands will fail because of missing .git directory - to fix this we will run manually the 'git describe' command and then pass it in form of env variable into the container Signed-off-by: AtomicFS <[email protected]>
Signed-off-by: AtomicFS <[email protected]>
Signed-off-by: AtomicFS <[email protected]>
Signed-off-by: AtomicFS <[email protected]>
Signed-off-by: AtomicFS <[email protected]>
fb131cf
to
ab73ad3
Compare
I was working on the unit test :D But I guess we can merge that in separate PR :D |
The motivations behind this:
git describe ...
.git
directorygit describe
command and then pass it in form of env variable into the containerThe coreboot part
crebootPassEnvVars
is not tested now. I am too tired to look into unit-testing that right now (the supporting functions have unit tests).I just ran the
firmware-action
on one project and tested it manually - it seems to work exactly as expected. Not sure if it is worth it to write unit-test.@MDr164 if you think unit-test for the
crebootPassEnvVars
is a good idea, then I will make it tomorrow.TODO:
.coreboot-version
which should take precedence before auto-generated env var (should prevent creation of env var). Might be good idea to make a list of priorities in the comments.