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

tools: let environment-setup.sh skip unnecessary steps #2625

Merged

Conversation

clobrano
Copy link
Contributor

@clobrano clobrano commented Jul 5, 2019

Current environment-setup.sh implementation fails in some points when
the lxc container exists and it is configured - even only partially.

Added some more checks to skip already performed configuration steps.

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
    No, but the change does not affect source code
  • Have you successfully run ./runtests.sh tests/unit?
    No, but the change does not affect source code

Current environment-setup.sh implementation fails in some points when
the lxc container exists and it is configured - even only partially.

Added some more checks to skip already performed configuration steps.
@clobrano clobrano changed the title tools: let environment-setup.sh to skip unnecessary steps tools: let environment-setup.sh skip unnecessary steps Jul 5, 2019
@codecov-io
Copy link

codecov-io commented Jul 5, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@eb9e1cf). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2625   +/-   ##
=========================================
  Coverage          ?   89.15%           
=========================================
  Files             ?      208           
  Lines             ?    14224           
  Branches          ?     2160           
=========================================
  Hits              ?    12682           
  Misses            ?     1090           
  Partials          ?      452

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb9e1cf...350884e. Read the comment docs.

Copy link
Contributor

@cjp256 cjp256 left a comment

Choose a reason for hiding this comment

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

LGTM, nice! (added some suggestions to ensure correct container is used)

tools/environment-setup.sh Outdated Show resolved Hide resolved
tools/environment-setup.sh Outdated Show resolved Hide resolved
use `lxd info snapcraft-dev` in place of `lxc list`
@cjp256
Copy link
Contributor

cjp256 commented Jul 12, 2019

Thanks for the updates! LGTM (spread tests are failing due to unrelated bits) - they should otherwise pass if rebased onto master today.

@sergiusens sergiusens merged commit dd8c490 into canonical:master Jul 16, 2019
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