Fix z:python:test + add architecture docs - #1121
Conversation
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
| ctx.encoding_opts.data_type = codepage == "binary" ? eDataTypeBinary : eDataTypeText; | ||
| std::string encoded = codepage; | ||
| a2e_inplace(encoded); | ||
| strncpy(ctx.encoding_opts.codepage, encoded.c_str(), sizeof(ctx.encoding_opts.codepage) - 1); |
|
|
||
| std::string encoded = etag; | ||
| a2e_inplace(encoded); | ||
| strncpy(ctx.etag, encoded.c_str(), sizeof(ctx.etag) - 1); |
|
Server artifacts: |
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
…d other info Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
🐍 Precompiled Python bindingsBuilt from 📦 Download Hosted as an asset on the |
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
…afterwards Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
|
Failing tests: UPDATE:
|
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
| run: npm run z:python:test | ||
|
|
||
| - name: Python Test Report | ||
| uses: dorny/test-reporter@v2 |
…into zf/fix-py-test Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
|
traeok
left a comment
There was a problem hiding this comment.
Thanks for all your work on this Fernando! Left a few suggestions
| @$(MAKE) test-zds 2>&1 | tee -a $(RESULTS_FILE) || touch .tests_failed | ||
| @$(MAKE) test-zjb 2>&1 | tee -a $(RESULTS_FILE) || touch .tests_failed | ||
| @$(MAKE) test-zusf 2>&1 | tee -a $(RESULTS_FILE) || touch .tests_failed | ||
| @$(MAKE) merge-results |
There was a problem hiding this comment.
Nit: I see the comment above this implies that the teardown always runs even if a stage fails, but it looks like if merge-results fails, it would abort make test. Consider updating the @$(MAKE) merge-results line to follow the pattern of the previous lines, so a partial report is still generated if something fails.
| @$(MAKE) merge-results | |
| @$(MAKE) merge-results || touch .tests-failed |
Then you may need to update the inline script for merge-results (see comment below)
|
|
||
| # Combines the per-suite JUnit reports into a single file so CI only needs to retrieve/publish one report | ||
| merge-results: | ||
| @$(PY_ENV)/bin/python -c "import sys, xml.etree.ElementTree as ET; root = ET.Element('testsuites'); [root.append(s) for f in sys.argv[2:] for s in ET.parse(f).getroot()]; ET.ElementTree(root).write(sys.argv[1], xml_declaration=True, encoding='UTF-8')" $(JUNIT_ALL) $(JUNIT_ZDS) $(JUNIT_ZJB) $(JUNIT_ZUSF) |
There was a problem hiding this comment.
Following up on the suggestion above, consider updating this script so that sys.argv[2:] is validated using os.path.exists 👍
| extra_postargs = list(extra_postargs) + [EBCDIC_CHAR_MODE] | ||
| return base_compile(obj, src, src_ext, cc_args, extra_postargs, pp_opts) | ||
|
|
||
| compiler._compile = _compile |
There was a problem hiding this comment.
I know we can probably make some assumptions about the distutils APIs, but since this monkey-patched function is private, consider checking first with hasattr before overwriting it.
| compiler._compile = _compile | |
| if hasattr(compiler, "_compile"): | |
| compiler._compile = _compile |
There was a problem hiding this comment.
Seems like the time budget could be a bit tight here for timing out the workflow (currently, the workflow is set to time out after 20min) - should we consider increasing the timeout in this PR?
There was a problem hiding this comment.
Thanks for making the updates to the USS functions to handle EBCDIC<->ASCII 😋
Should we add a changelog entry to capture this fix?




What It Does
How to Test
Check the:
Review Checklist
I certify that I have:
Additional Comments