-
Notifications
You must be signed in to change notification settings - Fork 282
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
Fix pytests and update build.sh to add ppc64le support. #4413
Fix pytests and update build.sh to add ppc64le support. #4413
Conversation
@Sunidhi-Gaonkar1 do you want to also upgrade pyyaml to 6.0.1 in the same PR? Thanks. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4413 +/- ##
==========================================
+ Coverage 91.35% 91.55% +0.20%
==========================================
Files 190 190
Lines 6175 6216 +41
==========================================
+ Hits 5641 5691 +50
+ Misses 534 525 -9 ☔ View full report in Codecov by Sentry. |
@@ -14,7 +14,7 @@ | |||
class TestOs(unittest.TestCase): | |||
# current_architecture | |||
def test_current_architecture(self) -> None: | |||
self.assertTrue(current_architecture() in ["x64", "arm64"]) | |||
self.assertTrue(current_architecture() in ["x64", "arm64", "ppc64le"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sunidhi-Gaonkar1 you need to add one more test case:
src/system/os.py#L19
Added line #L19 was not covered by tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterzhuamazon ,I have made the changes, Please review. Thank you.
Signed-off-by: Sunidhi-Gaonkar1 <[email protected]>
13972b9
to
2dcf348
Compare
Signed-off-by: Peter Zhu <[email protected]>
Hi @Sunidhi-Gaonkar1 ,
|
Hi @peterzhuamazon, We don't have a macos server to reproduce this issue. Please let me know how we can |
@Sunidhi-Gaonkar1 this is not macos issue you can just run pipenv intall with your latest pipfile changes, build the new pipfile.lock, and run pipenv run pytest to see the above issue. I was running on linux to see this issue. I was saying do not run isort on macos run it on linux. isort is not the same as pytest. |
@peterzhuamazon, I have followed your instructions to build the Pipfile.lock with latest changes and run pytests on linux
|
Taking a look, I am not able to pass on both my mac and my AL2 server 😅 Thanks. |
Signed-off-by: Peter Zhu <[email protected]>
Seems like my push of the new pipefile.lock runs well. |
Description
Adding ppc64le build target to build.sh
Issues Resolved
Fixes the pytest errors faced in #4348
Part of #3122
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.