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

jhbuild plugin: allow running as 'root' #2141

Merged
merged 1 commit into from May 30, 2018

Conversation

lucyllewy
Copy link
Contributor

@lucyllewy lucyllewy commented May 17, 2018

JHBuild has recently acquired the ability to run under the root account with an environment variable to acknowledge the operation.

If applied, this commit will:

  • Add JHBUILD_RUN_AS_ROOT environment variable to jhbuild plugin
  • Remove previous attempt to work around snapcraft running under root from jhbuild plugin
  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on bug reports?
  • If this is a new feature. Have you discussed the design on the forum?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh unit?
    • FAILED (failures=3, errors=5)
    • failures and errors are in unrelated parts of snapcraft:
      • tests.unit.sources.test_bazaar.BazaarDetailsTestCase.test_bzr_details_commit
      • tests.unit.sources.test_bazaar.BazaarDetailsTestCase.test_bzr_details_tag
      • tests.unit.sources.test_mercurial.MercurialDetailsTestCase.test_hg_details_branch
      • tests.unit.sources.test_mercurial.MercurialDetailsTestCase.test_hg_details_commit
      • tests.unit.sources.test_mercurial.MercurialDetailsTestCase.test_hg_details_tag
      • tests.unit.test_elf.TestPatcher.test_tools_from_snap_used_if_using_snap
      • tests.unit.test_elf.TestPatcherErrors.test_patch_uses_snapped_strip
      • tests.unit.test_lifecycle.CoreSetupTestCase.test_core_setup_if_docker_env

JHBuild has recently acquired the ability to run under the root account with an environment variable to acknowledge the operation:

If applied, this commit will:
* Add JHBUILD_RUN_AS_ROOT environment variable to jhbuild plugin
* Remove previous attempt to work around snapcraft running under root from jhbuild plugin
@codecov-io
Copy link

codecov-io commented May 17, 2018

Codecov Report

Merging #2141 into master will increase coverage by 0.27%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2141      +/-   ##
==========================================
+ Coverage   91.01%   91.29%   +0.27%     
==========================================
  Files         193      193              
  Lines       12181    12136      -45     
  Branches     1820     1810      -10     
==========================================
- Hits        11087    11080       -7     
+ Misses        752      714      -38     
  Partials      342      342
Impacted Files Coverage Δ
snapcraft/plugins/jhbuild.py 41.66% <0%> (+10.04%) ⬆️

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 d2da431...4a82e86. Read the comment docs.

@kyrofa
Copy link
Contributor

kyrofa commented May 25, 2018

I'm afraid my lack of jhbuild experience means I can only give this a cosmetic review. @jhenstridge, any chance you could give this a look when you have a moment?

@jhenstridge
Copy link
Contributor

It looks fine to me. The ratio of lines removed to lines added is a good sign. From the look of it, the existing integration test should verify that this all works as expected.

@sergiusens sergiusens merged commit a017389 into canonical:master May 30, 2018
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.

None yet

5 participants