GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Need to support running in root privilege on Linux Travis CI similar as in AppVeyor · Issue #5645 · PowerShell/PowerShell

Need to support running in root privilege on Linux Travis CI similar as in AppVeyor #5645

New issue
Copy link
New issue
Copy link
Closed
Closed
Need to support running in root privilege on Linux Travis CI similar as in AppVeyor#5645
Copy link
Assignees
kalgiz
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

Description

@daxian-dbw
Dongbo Wang (daxian-dbw)
opened on Dec 7, 2017
Issue body actions

We need to support running tests in root privilege on Linux Travis CI in a similar way as our windows tests running in AppVeyor. For windows tests, we have a tag RequireAdminOnWindows to indicate the tests that need admin privilege. We run those tests in an admin pwsh session, and then we use runas to remove admin privilege and run the rest tests.

With sudo: required in .travis.yml, Travis CI Linux builds run in regular user privilege by default, but you can get the root privilege using sudo with no need to provide a password (see the documentation). So we should be able to support a similar tag like RequireAdminOnWindows on Linux.

Activity

  1. Dongbo Wang (daxian-dbw)
    added
    WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
    on Dec 7, 2017
  2. Travis Plunk (TravisEz13)
    assigned
    Klaudia Algiz (kalgiz)
    on Jan 26, 2018
  3. TravisEz13 commented on Jan 27, 2018

    @TravisEz13
    Travis Plunk (TravisEz13)
    on Jan 27, 2018
    Member
    More actions

    This change needs to use this feature to actually run these tests on linux: https://github.com/PowerShell/PowerShell/pull/6034/files/df3371990529ae64f481760f1edb7ccdbb89d9d7..ff9a0dde9d655efbe1460e0fab8e3f5dcf7ddee2

  4. iSazonov commented on Jan 27, 2018

    @iSazonov
    Ilya (iSazonov)
    on Jan 27, 2018
    Collaborator
    More actions

    I found some tests that use Test-Elevated - I believe we should fix them too.

  5. anmenaga commented on Feb 9, 2018

    @anmenaga
    Andrew (anmenaga)
    on Feb 9, 2018
    More actions

    Can somebody please confirm/deny if the fix for this won't be limited to "Travis CI" system?
    I'm talking about a scenario where I run PS tests on a private Linux VM.
    Assuming tests are marked properly, will they run with admin privilege in this case?

  6. TravisEz13 commented on Feb 9, 2018

    @TravisEz13
    Travis Plunk (TravisEz13)
    on Feb 9, 2018
    Member
    More actions

    you could use the same commands to run locally. The same situation as with windows today.

    Reacted by Andrew
  7. kalgiz commented on Feb 16, 2018

    @kalgiz
    Klaudia Algiz (kalgiz)
    on Feb 16, 2018
    Contributor
    More actions

    Resolved in #6145 PR.

  8. Klaudia Algiz (kalgiz)
    closed this as completedon Feb 16, 2018
  9. Ilya (iSazonov)
    added
    Resolution-FixedThe issue is fixed.The issue is fixed.
    on Feb 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kalgiz
    Klaudia Algiz (kalgiz)

Labels

Resolution-FixedThe issue is fixed.The issue is fixed.WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.