Skip to content

Makefile: add eden target for running Eden tests#5587

Merged
eriknordmark merged 1 commit intolf-edge:masterfrom
shjala:makefile.eden
Feb 3, 2026
Merged

Makefile: add eden target for running Eden tests#5587
eriknordmark merged 1 commit intolf-edge:masterfrom
shjala:makefile.eden

Conversation

@shjala
Copy link
Copy Markdown
Member

@shjala shjala commented Feb 2, 2026

Description

This PR introduces a new make eden target to make running Eden tests against locally built EVE easier.

From docs:

To streamline the testing process using Eden, a convenience target eden is available. This target sets up the environment and executes the Eden test suite against the built EVE image.

make eden

You can customize the execution with standard Makefile variables (which configure the EVE image properties expected by Eden):

  • HV: Hypervisor flavor (e.g., kvm)
  • ZARCH: Architecture (e.g., amd64)
  • TPM=y: Enable TPM simulation (defaults to disabled)
  • NOACCEL=1: Disable hardware acceleration (defaults to enabled)

To control which tests are run, you can pass environment variables to the Eden runner script:

  • EDEN_TAG: Tag of Eden to use (default: 1.0.13)
  • TEST_SMOKE=y: Run smoke tests, TEST_NET=y for running networking tests (check TEST_XXX for more targets).
  • TEST_ALL=y: Run all tests
  • SETUP_ONLY=y: Only perform setup (onboard EVE) and exit without running tests

Example running only smoke tests with TPM enabled:

TEST_SMOKE=y make eden TPM=y

Logs are available at dist/<arch>/current/eden/runlogs. Since all Eden artifacts are stored within the dist directory, running make clean will also clean up all Eden-related resources and leftovers.

Note: The Eden tests currently rely on the default Eden context. Since Eden stores some global configuration in the user's home directory (e.g., ~/.eden), running this target will override your default Eden configuration if you are using Eden independently on the same machine.

PR dependencies

N/A

How to test and validate this PR

make eden

PR Backports

N/A

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR

For backport PRs (remove it if it's not a backport):

  • I've added a reference link to the original PR
  • PR's title follows the template

And the last but not least:

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Please, check the boxes above after submitting the PR in interactive mode.

@github-actions github-actions Bot requested a review from uncleDecart February 2, 2026 14:49
@shjala shjala force-pushed the makefile.eden branch 2 times, most recently from b744bd0 to 1275bb2 Compare February 2, 2026 15:04
Comment thread tests/eden/run.sh Outdated
(cd "$EDEN_DIR" && ./eden stop 2>/dev/null) || true
fi
docker rm -f eden_adam eden_redis 2>/dev/null || true
rm -rf ~/.eden || true
Copy link
Copy Markdown
Contributor

@rene rene Feb 2, 2026

Choose a reason for hiding this comment

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

Couldn't we just use eden clean here? Do we really need to remove ~/.eden? I think this is too invasive for the user... Personally I run eden from time to time locally, in this way the Makefile might destroy a setup created by the user.... I understand we might have clashes anyways, but I would avoid to remove a file from user's home....

Copy link
Copy Markdown
Member Author

@shjala shjala Feb 2, 2026

Choose a reason for hiding this comment

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

sure, this is just left over from my struggle to remove all the traces of eden while testing things.
I will change it to eden clean, I think it also makes sense to add and use a non-default config, then I can delete that too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

made some changes, please review again.

@rene
Copy link
Copy Markdown
Contributor

rene commented Feb 2, 2026

@shjala thanks a lot for this PR, this is really useful....

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.32%. Comparing base (2281599) to head (6c45e95).
⚠️ Report is 264 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5587      +/-   ##
==========================================
+ Coverage   19.52%   28.32%   +8.79%     
==========================================
  Files          19       18       -1     
  Lines        3021     2256     -765     
==========================================
+ Hits          590      639      +49     
+ Misses       2310     1475     -835     
- Partials      121      142      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

Should we mention this new target e.g., in BUILD.md?

@github-actions github-actions Bot requested a review from eriknordmark February 3, 2026 09:38
@shjala shjala requested a review from rene February 3, 2026 09:39
@shjala
Copy link
Copy Markdown
Member Author

shjala commented Feb 3, 2026

Should we mention this new target e.g., in BUILD.md?

@eriknordmark added.

This commit introduces a new `eden` target in the Makefile to facilitate
running Eden tests directly from the build system.

Signed-off-by: Shahriyar Jalayeri <shahriyar@posteo.de>
@shjala shjala force-pushed the makefile.eden branch 3 times, most recently from 8f20a1e to 6c45e95 Compare February 3, 2026 16:05
@eriknordmark eriknordmark merged commit d132194 into lf-edge:master Feb 3, 2026
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants