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

data, packaging: separate check and implicit build makefile targets #14964

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

bboozzoo
Copy link
Contributor

When building from AUR it is surprisingly common to not perform the builds in chroots or allow one's PATH to leak into the build environment. Turns out, if one has shellcheck installed form a snap, it could be picked up by the build and then trip over the sandbox. However, this highlights a separate issue, where running make -C data invokes an implicit default target in data/systemd which then happens to run checks/tests. Those are normally reserved for (dist)check like targets and expected to be invoked explicitly. The branch introduces a separate check target in top level Makefile under data which subsequently invokes check for the sole directly having an implementation.

Add a separate check target in the top level Makefile and run check for
data/systemd, which is the only directory where checks are implemented.

Signed-off-by: Maciej Borzecki <[email protected]>
Signed-off-by: Maciej Borzecki <[email protected]>
@bboozzoo bboozzoo added the Simple 😃 A small PR which can be reviewed quickly label Jan 23, 2025
@bboozzoo bboozzoo requested review from zyga and ZeyadYasser January 23, 2025 07:22
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@dc7d81f). Learn more about missing BASE report.
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #14964   +/-   ##
=========================================
  Coverage          ?   78.28%           
=========================================
  Files             ?     1158           
  Lines             ?   153446           
  Branches          ?        0           
=========================================
  Hits              ?   120123           
  Misses            ?    25918           
  Partials          ?     7405           
Flag Coverage Δ
unittests 78.28% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

github-actions bot commented Jan 23, 2025

Thu Jan 23 12:03:12 UTC 2025
The following results are from: https://github.com/canonical/snapd/actions/runs/12924230996

Failures:

Preparing:

  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64

Restoring:

  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64
  • openstack:opensuse-tumbleweed-64

@bboozzoo bboozzoo merged commit b85fde1 into canonical:master Jan 23, 2025
62 of 63 checks passed
@bboozzoo bboozzoo deleted the bboozzoo/data-check branch January 23, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants