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

fix: reprime for try #4347

Merged
merged 2 commits into from
Sep 6, 2023
Merged

fix: reprime for try #4347

merged 2 commits into from
Sep 6, 2023

Conversation

sergiusens
Copy link
Collaborator

@sergiusens sergiusens commented Sep 4, 2023

This solves the case where prime was run before try, where a subsequent run of try would mask the contents of the existing prime directory with a newly mounted one from the host. In legacy we had the concept of clean --unprime to solve this.

  • 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?

Fixes #4219

This solves the case where prime was run before try, where a
subsequent run of try would mask the contents of the existing prime
directory with a newly mounted one from the host. In legacy we had the
concept of `clean --unprime` to solve this.

Signed-off-by: Sergio Schvezov <[email protected]>
@sergiusens
Copy link
Collaborator Author

Fixes #4219

@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2023

Codecov Report

Merging #4347 (526fad1) into hotfix/7.5 (1501166) will decrease coverage by 0.01%.
The diff coverage is 93.33%.

❗ Current head 526fad1 differs from pull request most recent head 0ab4042. Consider uploading reports for the commit 0ab4042 to get more accurate results

❗ 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               @@
##           hotfix/7.5    #4347      +/-   ##
==============================================
- Coverage       94.88%   94.88%   -0.01%     
==============================================
  Files             658      658              
  Lines           55122    55132      +10     
==============================================
+ Hits            52303    52312       +9     
- Misses           2819     2820       +1     
Files Changed Coverage Δ
snapcraft/parts/lifecycle.py 92.90% <ø> (ø)
snapcraft/parts/parts.py 81.75% <50.00%> (-0.48%) ⬇️
tests/unit/parts/test_lifecycle.py 100.00% <100.00%> (ø)

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

Copy link
Contributor

@tigarmo tigarmo left a comment

Choose a reason for hiding this comment

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

Thanks, please fix the minor docstring issue

snapcraft/parts/parts.py Outdated Show resolved Hide resolved
tests/spread/core22/try/task.yaml Show resolved Hide resolved
@sergiusens sergiusens merged commit 89fb02a into hotfix/7.5 Sep 6, 2023
@sergiusens sergiusens deleted the reprime-7.5 branch September 6, 2023 13:22
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