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

feat(remote-build): check SNAPCRAFT_REMOTE_BUILD_STRATEGY envvar #4353

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

mr-cal
Copy link
Collaborator

@mr-cal mr-cal commented Sep 6, 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?

Valid values for the environment variable are:

  • disable-fallback: uses new remote-build code
  • force-fallback: uses legacy remote-build code

This envar is used for bases core22 and older. Bases newer than core22 use the new remote-build code.

Fixes #4319
(CRAFT-1974)

Valid values for the environment variable are:
- `disable-fallback`: uses new remote-build code
- `force-fallback`: uses legacy remote-build code

This envar is used for bases core22 and older. Bases newer than
core22 use the new remote-build code.

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

codecov-commenter commented Sep 6, 2023

Codecov Report

Merging #4353 (d5c8a45) into main (9791156) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main    #4353      +/-   ##
==========================================
+ Coverage   89.19%   89.21%   +0.01%     
==========================================
  Files         300      300              
  Lines       20648    20672      +24     
==========================================
+ Hits        18418    18442      +24     
  Misses       2230     2230              
Files Changed Coverage Δ
snapcraft/commands/remote.py 100.00% <100.00%> (ø)

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

📢 Have feedback on the report? Share it here.

@sergiusens sergiusens requested a review from lengau September 6, 2023 23:09
snapcraft/commands/remote.py Outdated Show resolved Hide resolved
Signed-off-by: Callahan Kovacs <[email protected]>
@mr-cal mr-cal requested a review from lengau September 7, 2023 18:35
Copy link
Contributor

@lengau lengau left a comment

Choose a reason for hiding this comment

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

🎉

@mr-cal mr-cal merged commit 2eddbfe into main Sep 7, 2023
@mr-cal mr-cal deleted the remote-build-parse-envvar branch September 7, 2023 22:46
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.

remote-build: add control logic for envvar SNAPCRAFT_REMOTE_BUILD_STRATEGY
4 participants