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

manifest: use --enable-image-information inside instances #4330

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

mr-cal
Copy link
Collaborator

@mr-cal mr-cal commented Aug 21, 2023

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint?
  • Have you successfully run pytest tests/unit?

This fixes a bug that has been present since manifests were added to core22.

The bug is that --enable-image-information was not passed into LXD/Multipass instances. This flag only got used when running in destructive mode. During the implementation, there was probably a typo/mix-up between the envvar SNAPCRAFT_BUILD_INFO and --enable-image-information.

This bug was uncovered by #4329, which prevented the spread test from running inside a LXD container.

Previously this flag was only used by snapcraft in destructive mode.

Signed-off-by: Callahan Kovacs <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2023

Codecov Report

Merging #4330 (54751f1) into main (9d99aa1) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main    #4330   +/-   ##
=======================================
  Coverage   89.11%   89.11%           
=======================================
  Files         300      300           
  Lines       20623    20623           
=======================================
  Hits        18378    18378           
  Misses       2245     2245           
Files Changed Coverage Δ
snapcraft/parts/lifecycle.py 92.90% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

snapcraft/parts/lifecycle.py Show resolved Hide resolved
@mr-cal mr-cal merged commit 4f13298 into main Aug 21, 2023
@mr-cal mr-cal deleted the build-info-to-image-info branch August 21, 2023 19:42
jardon pushed a commit to jardon/snapcraft that referenced this pull request Sep 6, 2023
…l#4330)

Previously this flag was only used by snapcraft in destructive mode.

Signed-off-by: Callahan Kovacs <[email protected]>
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