Revert "[inner hahsing] extension of PBH tests"#5282
Merged
Conversation
This reverts commit 9008381.
Collaborator
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
Added fix sonic-net/sonic-buildimage#10184 |
AntonHryshchuk
added a commit
to AntonHryshchuk/sonic-mgmt
that referenced
this pull request
Mar 10, 2022
…" (sonic-net#5282)" This reverts commit 3244df1.
This was referenced Mar 10, 2022
wangxin
added a commit
that referenced
this pull request
Mar 15, 2022
…5312) Reverts #5130 Need to revert this PR for the same reason as PR #5282. The dependent pytest-allure package which is only available to user “AzDevOps” in sonic-mgmt docker because it is installed to local path of that user: ``` AzDevOps@2fb15ed04ed5:~$ python Python 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import allure >>> allure.__file__ '/var/AzDevOps/.local/lib/python2.7/site-packages/allure.pyc' AzDevOps@2fb15ed04ed5:~$ sudo su root@2fb15ed04ed5:/var/AzDevOps# pip list | grep allure DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. root@2fb15ed04ed5:/var/AzDevOps# python Python 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import allure Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named allure >>> exit() ``` I’ll revert this PR for now to unblock testing using root account. The sonic-mgmt docker file https://github.com/Azure/sonic-buildimage/blob/master/dockers/docker-sonic-mgmt/Dockerfile.j2 needs to be updated to ensure that package pytest-allure is installed to global directory.
liat-grozovik
pushed a commit
that referenced
this pull request
Mar 21, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #4848
PR #4848 depends on pytest-allure package which is only available to user “AzDevOps” in sonic-mgmt docker. The reason is that the package is installed to local path of that user:
If use “root” user to run the test, issue #5280 will be hit.
I’ll revert #4848 for now. The sonic-mgmt docker file https://github.com/Azure/sonic-buildimage/blob/master/dockers/docker-sonic-mgmt/Dockerfile.j2 needs to be updated to ensure that package
pytest-allureis installed to global directory.