Comments (7)
@dgrove-oss @rabbah From what I can tell, the failing test basically invokes an action, then polls for activations using wsk activation poll and verifies that it gets exactly one activation, but for some reason it gets 2. Looking at the changes I introduced, its hard to see how the two methods I modified could have anything to do with that, since all they do is return a header and a string representation of the activation when invoking wsk activation list. The API itself has not been changed, so its hard for me to explain what is going on here. But I also noticed that the second test in the same class fails as well, and for that there is an issue #4328. Could they be related?
from openwhisk-client-go.
Can we prove this out with a unit test in client-go?
from openwhisk-client-go.
@dubee Don't think so. The test needs to be run against a working OpenWhisk environment. That's probably why it's in the main repo instead of the cli one. Anyway, I made sure my cli repo was in sync with upstream master, updated build.gradle to point to my commit in client-go, built the CLI, then updated my controller and invoker to the latest image and run the failing test manually in CLI (create action, poll for activations, invoke action), and it works just fine! I've also gone over the code and I'm pretty confident that the code I changed never is called from the failing test.
from openwhisk-client-go.
I have reproduced the failure locally. The answer may be the following: this is the result of activation list as it appears now for me built with the hashes from apache/openwhisk-cli#423
EDIT: this may be a red herring... there is some extra white space at the end of the line that is wrapping on stdout if the font is too big.
from openwhisk-client-go.
@dubee Don't think so. The test needs to be run against a working OpenWhisk environment. That's probably why it's in the main repo instead of the cli one. Anyway, I made sure my cli repo was in sync with upstream master, updated build.gradle to point to my commit in client-go, built the CLI, then updated my controller and invoker to the latest image and run the failing test manually in CLI (create action, poll for activations, invoke action), and it works just fine! I've also gone over the code and I'm pretty confident that the code I changed never is called from the failing test.
We can provide mock backend activation responses to the client-go test, however.
from openwhisk-client-go.
PR opened to address the format change. I think mocking would not have been caught it.
from openwhisk-client-go.
We're tracked down and fixed this
from openwhisk-client-go.
Related Issues (20)
- fatal error: concurrent map writes
- Platform Agnostic - determine home dir location
- consider adopting the kubectl "plugin" mechanism HOT 8
- Cannot reuse TCP connection across action invocations HOT 2
- wsk activation list behavior HOT 2
- Cli does not respect parameters when creating a trigger with a feed. HOT 2
- Add documentation HOT 1
- How can I specify "--insecure" using this library? HOT 3
- Deprecate godep in favor of Go Modules (new official dep. mgmt. tool) HOT 6
- Example Request HOT 1
- wrong statusCode in case of application error in activation output HOT 6
- Benchmarking the reflection API HOT 1
- Create/Deploy a go action using this go-client HOT 1
- Some source files miss Apache license headers HOT 2
- Change README to remove Disclaimer and "experimental" descriptions
- swagger schema hardocded and references ibm properties HOT 7
- invalid warning generated by http client
- whisk.RetApi or *whisk.RestApi? HOT 1
- remove references to bluemix HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk-client-go.