Skip to content

[fwutil] Fix Various Bugs Identified in Regression#5130

Merged
sujinmkang merged 13 commits intosonic-net:masterfrom
alexrallen:fwutil_fixes
Mar 7, 2022
Merged

[fwutil] Fix Various Bugs Identified in Regression#5130
sujinmkang merged 13 commits intosonic-net:masterfrom
alexrallen:fwutil_fixes

Conversation

@alexrallen
Copy link
Contributor

Description of PR

Set of general fixes made during Mellanox implementation of the fwutil tests into nightly regression

  • Add support for URLs in firmware file paths
  • Add support for differentiating firmware installed for different hardware revisions
  • Fix test cleanup such that latest firmware is always on device at end of test
  • Enable fwutil update all tests
  • A couple timing errors / race conditions with sonic_installer and rebooting

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

@alexrallen alexrallen requested review from a team and sujinmkang as code owners February 11, 2022 20:09
@alexrallen alexrallen changed the title FWUtil Test Bugfixes [fwutil] Fix Various Bugs Identified in Regression Feb 11, 2022
@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@sujinmkang kindly reminder to review and signoff

@sujinmkang sujinmkang merged commit ceeb1b0 into sonic-net:master Mar 7, 2022
wangxin added a commit that referenced this pull request 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.
alexrallen added a commit to alexrallen/sonic-mgmt that referenced this pull request Mar 29, 2022
liat-grozovik pushed a commit that referenced this pull request Apr 2, 2022
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.

3 participants