Skip to content
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

test: coreboot version passing #505

Merged
merged 6 commits into from
Jan 22, 2025
Merged

Conversation

AtomicFS
Copy link
Collaborator

Tests for #495

@AtomicFS AtomicFS requested a review from MDr164 as a code owner January 15, 2025 16:53
@github-actions github-actions bot added testing Testing related dependencies Pull requests that update a dependency file go Pull requests that update Go code module/coreboot module/linux module/edk2 module/stitching labels Jan 15, 2025
@AtomicFS AtomicFS enabled auto-merge January 15, 2025 16:53
@AtomicFS AtomicFS force-pushed the test/coreboot-version-passing branch from 0b27ef8 to f1d7b1d Compare January 15, 2025 17:02
@AtomicFS AtomicFS added this to the v0.11.0 relase milestone Jan 17, 2025
@AtomicFS AtomicFS force-pushed the test/coreboot-version-passing branch 2 times, most recently from a1b68ed to c1a1e20 Compare January 20, 2025 13:16
cmd/firmware-action/go.mod Outdated Show resolved Hide resolved
cmd/firmware-action/recipes/coreboot_test.go Outdated Show resolved Hide resolved
cmd/firmware-action/recipes/coreboot_test.go Outdated Show resolved Hide resolved
@AtomicFS AtomicFS force-pushed the test/coreboot-version-passing branch from c1a1e20 to e1b4eb4 Compare January 21, 2025 11:41
@AtomicFS AtomicFS requested a review from MDr164 January 21, 2025 11:44
@AtomicFS
Copy link
Collaborator Author

I have amended away the go v1.23 change. The rest of the changes are now in separate refactor commit for easier review.

Copy link
Collaborator

@MDr164 MDr164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty solid, just one minor item

cmd/firmware-action/recipes/coreboot_test.go Outdated Show resolved Hide resolved
- just like we do "cache" for Linux or edk2 source code, we can also
  cache the coreboot repository to speed up the tests
- now the coreboot tests takes 2 minutes instead of 10 on my laptop
- the cache is not also in /tmp instead of working directory
- gofumpt was crashing when the cached coreboot repo was in working
  directory

Signed-off-by: AtomicFS <[email protected]>
- expand existing coreboot tests to also test the embedded version
  string in the compiled coreboot binary

Signed-off-by: AtomicFS <[email protected]>
- test how firmware-action handles passing of coreboot version into
  contianer

Signed-off-by: AtomicFS <[email protected]>
- make the git cloning functions use t.Helper() and pass in arguments in
  form of a struct

Signed-off-by: AtomicFS <[email protected]>
@AtomicFS AtomicFS force-pushed the test/coreboot-version-passing branch from e1b4eb4 to e0ec491 Compare January 22, 2025 15:47
@AtomicFS AtomicFS added this pull request to the merge queue Jan 22, 2025
Merged via the queue into main with commit 6c14e86 Jan 22, 2025
106 checks passed
@AtomicFS AtomicFS deleted the test/coreboot-version-passing branch January 22, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code module/coreboot module/edk2 module/linux module/stitching testing Testing related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants