-
Notifications
You must be signed in to change notification settings - Fork 915
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
Unable to run Regression test on host after build from source. #798
Comments
Yes I have tried this workaround but still facing issues while running test cases. |
I had few questions |
I confirm that the bug exists. Would you like to try to submit a first PR to fix it? This sounds like a good first issue to approach the project. :) |
Thanks @leodido for suggesting a fix to this bug.( #808 ). |
/good-first-issue |
@leodido: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@leodido Thanks for considering this issue. It would be really helpful if we can get test cases running on host directly. |
I think I made this easier in 6e11e75#diff-e7e5a4947037bfbf38f675b1e40611a2. Try setting BUILD_DIR to the directory on the host where your build directory is before running the regression tests. Also, you'll want to make sure you have the python package https://github.com/avocado-framework/avocado installed (our tester image uses 0.69.0) and also has the yaml-to-mux plugin installed. https://github.com/falcosecurity/falco/blob/dev/docker/tester/Dockerfile shows the installation steps to install it, from a fedora base image. |
Yes I have tried all these things but no luck with avocado framework. Anyways i managed to apply a hack wherein i used tester image mounting required directories and running steps in container bash. Could get it running this way . But on host issue persists |
/area build |
I have done the required changes to build falco on Ubuntu 18.04 ppc64le platform. #./test/run_regression_tests.sh $PWD/build Error running method "initialize" of plugin "yaml_to_mux": 'Namespace' object has no attribute 'get' Currently the falco-tester container is for Intel platform. So I have done the required changes specific to Ubuntu ppc64le platform in falco-tester container docker file and build the docker image. #docker run --user Please let me know if any pointers to solve this issue. Environment :
|
Thanks for looking into this @sunil1783 ! Anyway having a PR with the work you have done in order to support ppc64le platform would be helpful for the debugging :) Could you open it and link back to this issue (it should have been a new different issue but ok) ? |
On Ubuntu 18.04 ppc64le Default 'avocado-framework-plugin-varianter-yaml-to-mux' installed version is higher than expected(73). After this run the regression test cases, error Namespace' object has no attribute 'get' not occurred. After debugging it seems that while test execution all the events from ".scap" files are not written on console(Getting SCAP_TIMEOUT while reading the event in falco.cpp:do_inspect() ) Line 417: 00:30:07 ERROR| TestFail: Different counts for rule Change thread namespace: expected=2, actual=1 I will upload the code changes in PR and link to this issue. |
/milestone 1.0.0 |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue with Mark the issue as fresh with Provide feedback via https://github.com/falcosecurity/community. |
@poiana: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
Tried running Regression test using command
./test/run_regression_tests.sh $PWD/build
.The test case execution gave following error.
What you expected to happen:
Successful execution of tests.
How to reproduce it (as minimally and precisely as possible):
After Complete build. Follow steps from falco documentation to run test cases.( https://falco.org/docs/source/#run-the-tests )
Anything else we need to know?:
Looks like it is searching for specific folder structure (build/release/).
Observed that release directory did not get created after building falco.
Environment:
Falco version (use
falco --version
):0.17.0
OS (e.g:
cat /etc/os-release
):Kernel (e.g.
uname -a
):Linux ************** 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Install tools (e.g. in kubernetes, rpm, deb, from source):
Build from Source.
The text was updated successfully, but these errors were encountered: