guirish opened a new issue #2657: swift3action should support pre-compiled binary in a zip file:- Unit test case fails on s390x URL: https://github.com/apache/incubator-openwhisk/issues/2657 <!-- Do NOT share passwords, credentials or other confidential information. Before creating a new issue, please check if there is one already open that fits the defect you are reporting. If you open an issue and realize later it is a duplicate of a pre-existing open issue, please close yours and add a comment to the other. Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later. If you are reporting a defect, please edit the issue description to include the information shown below. If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you. For more information about reporting issues, see https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md#raising-issues Use the commands below to provide key information from your environment: You do not have to include this information if this is a feature request. --> ## Environment details: * local deployment, native ubuntu * version of docker: Docker version 17.06.0-ce, build 02c1d87 * Architecture: s390x (big endian) ## Steps to reproduce the issue: I have ported openwhisk on ARCH=s390x and deployed it on a ubuntu server locally using Ansible, now I am executing the test suite, In one of the test case (TC) execution whereby it run an already compiled swift binary(Action) stored in helloSwift.zip, I am observing TC failure(TC info:- class:actionContainers->Swift3ActionContainerTests ; Description : swift3action should support pre-compiled binary in a zip file ). As this Action binary is of x86-64, I have replaced the Action binary by building it again on s390x and stored it in helloSwift.zip @path->.build/release/Action. I have referred tests/dat/actions/hello.swift file to build this Action binary on s390x. ## Provide the expected results and outputs: ``` Test should pass whereby Action must return JSON as {"greeting" : "Hello stranger!"} ``` ## Provide the actual results and outputs: ``` Test fails due to timeout ``` ## Additional information you deem important: I have 2 queries on this issue: * I am referring to the right swift file to build this Action binary and whether am I missing on any other build flags while building this binary? Build step: #/usr/bin/swiftc hello.swift -o Action * I came across this function named **readAsBase64(path)** in file **ResourceHelpers.scala** which Reads the contents of a (possibly binary) file into a base64-encoded String; wanted to confirm if this function is **Endian independent**. Note: I have LANG set to value en_US.UTF-8 locally as desired before building the binary. Any pointers on this would be very helpful. Thanks in advance. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
