-
Notifications
You must be signed in to change notification settings - Fork 14
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
Test faasd with the certifier #60
Comments
I've been looking into this one. Most of the tests pass, the "scaling" ones fail (I guess these should be skipped), but the
So the function gets deployed but the call output is the same as the |
@LucasRoesler how do have the tests run against faasd, knowing that scale to N will fail? Could you give a few suggestions on?
|
I guess this answer was for me instead of Lucas (: As I mentioned in my comment, the scaling tests fail so I'm ignoring them for now. I am running the tests in the same way as the Makefile although adding some regexp magic (regexp are hardcoded, practical, extensible and fancy):
This regexp will ignore all scaling tests, Test_FunctionLogs and Test_SecretCRUD. This last one fails when trying to delete the function although it does create and update the secret as expected:
|
@kadern0 i like your style 😄 , although i worry about the long term stability of a regex for this.
|
@alexellis and @kadern0 i just want to point out that a mix of option (1) and (2) are already implemented Lines 21 to 40 in 2d4a282
There is an existing flag for There are also two flags |
Option 3 really looks great to me. @LucasRoesler @kadern0 did you guys have started working on it? |
@nitishkumar71 i haven't started yet, but i think the first step is to update the faasd CI workflow to run the certifier as is, without any special flags, just to get it setup and running and to see what fails (if anything). Then we can decide if we want to add flags or "fix" faasd :) I haven't started anything yet, but, let me know if you want to extend the existing workflow https://github.com/openfaas/faasd/blob/master/.github/workflows/build.yaml |
Sure. I can work on it. As of now the approach would be to clone the repo and then test it. Any other approach you think we should consider? |
I swear I submitted a follow up comment the other day. The internet gremlins must have eaten it. The first step is definitely to clone and run the tests manually. For the automation, basically the same, like you said "clone then run the tests" |
No worries will start working on it. |
It looks like it is failing due to auth
|
Sorry about that, missed it somehow. Here is the one after successful login An observation. I wasn't able to run the faasd test with env variables as |
@LucasRoesler As majority of test cases are failing due to use of namespace into url. We may have to avoid setting using namespace for faasd. So atleast one flag will be required for same. |
Ineteresting, any theories on what is broken there? |
OK, so it sounds like we just can't enabled mutlinamespace at all. Good to know, I am not sure we need to add any special flags for faasd, just not adding extra namespaces should be enough, right? |
We may have to change the current code. We are appending namespace into the function calling URL. certifier/tests/verify_test.go Line 29 in 82821dd
|
@alexellis what do you think? Should we try to address this in fassd or change the certifier? I guess it would require a "noop" implementation that handles the namespace suffix in the url |
I think that we should do whatever faas-netes does when it has a single namespace configuration. So probably some change in faasd to enable this usecase. Faasd does use a namespace of openfaas-fn which cannot be changed at the moment, but is a value in containerd. |
Raised an PR in faasd to provide support for multiple namespace. Majority of test cases work for certifier with it. Those who fails, we would have to disable them for faasd. |
Description
Test faasd with the certifier
Details
Some tests won't work such as scaling above 1 replica, however scaling from zero will work.
Whoever takes up the task will need to recommend a way of selectively running certain tests, or selectively not running certain tests.
Context
This work will help ensure faasd has as much parity as possible with faas-netes (OpenFaaS on Kubernetes)
A GitHub Action should work here, like it did with Swarm in the past.
The text was updated successfully, but these errors were encountered: