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

Default encoding for I/O operations should be UTF-8 #244

Merged
merged 12 commits into from
Jan 9, 2024

Conversation

aadityasinha-dotcom
Copy link
Contributor

What It Does

How to Test

Review Checklist
I certify that I have:

Additional Comments

@t1m0thyj t1m0thyj self-requested a review January 3, 2024 22:33
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (ed19194) 83.75% compared to head (c43d6b2) 83.75%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py 0.00% 3 Missing ⚠️
src/zos_files/zowe/zos_files_for_zowe_sdk/files.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #244   +/-   ##
=======================================
  Coverage   83.75%   83.75%           
=======================================
  Files          34       34           
  Lines        2118     2118           
=======================================
  Hits         1774     1774           
  Misses        344      344           
Flag Coverage Δ
unittests 83.75% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@t1m0thyj t1m0thyj linked an issue Jan 4, 2024 that may be closed by this pull request
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aadityasinha-dotcom Downloading spool files with binary content works now 👍

Could you please do the following:

  • Update the changelog to mention the issue that was fixed
  • Add encoding="utf-8" to all the places where open() is used in the SDK except for cases that use binary mode (update all the calls that use r and w mode, but not rb and wb)

@@ -266,7 +266,7 @@ def submit_from_local_file(self, jcl_path):
A JSON containing the result of the request execution
"""
if os.path.isfile(jcl_path):
jcl_file = open(jcl_path, "r")
jcl_file = open(jcl_path, "r", encoding="utf-8")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added encoding="utf-8" for all open()` ☺️

@JTonda JTonda requested review from t1m0thyj and zFernand0 January 8, 2024 16:10
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! 😋
but there is a merge conflict committed in the CHANGELOG.md file 😋

CHANGELOG.md Outdated
Comment on lines 7 to 10
<<<<<<< HEAD
- Bug: Default encoding for I/O operations should be UTF-8
- Feature: Added method to load profile properties from environment variables
=======
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is still a merge conflict here 😋

Copy link
Contributor Author

@aadityasinha-dotcom aadityasinha-dotcom Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes my bad, I forgot to resolve them 😋
It should be good now

aadityasinha-dotcom and others added 3 commits January 9, 2024 22:28
Signed-off-by: aadityasinha-dotcom <[email protected]>
Signed-off-by: aadityasinha-dotcom <[email protected]>
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @aadityasinha-dotcom!

Signed-off-by: Timothy Johnson <[email protected]>
Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😋

@t1m0thyj t1m0thyj merged commit 2d79e9c into zowe:main Jan 9, 2024
22 of 23 checks passed
Copy link

github-actions bot commented Jan 9, 2024

Release succeeded for the main branch. 🎉

The following packages have been published:

  • pypi: zowe-1.0.0.dev13
  • pypi: zowe_core_for_zowe_sdk-1.0.0.dev13
  • pypi: zowe_zos_console_for_zowe_sdk-1.0.0.dev13
  • pypi: zowe_zos_files_for_zowe_sdk-1.0.0.dev13
  • pypi: zowe_zos_jobs_for_zowe_sdk-1.0.0.dev13
  • pypi: zowe_zos_tso_for_zowe_sdk-1.0.0.dev13
  • pypi: zowe_zosmf_for_zowe_sdk-1.0.0.dev13

Powered by Octorelease 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default encoding for I/O operations should be UTF-8
3 participants