Skip to content
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

Add jenkins checks #584

Merged
merged 3 commits into from Apr 26, 2019

Conversation

Projects
None yet
1 participant
@mstemm
Copy link
Contributor

commented Apr 23, 2019

Changes to replace travis checks with jenkins.

@mstemm mstemm force-pushed the add-jenkins-checks branch 4 times, most recently from fb420d5 to c4c2a90 Apr 25, 2019

Supporting files to build/test via jenkins
Changes to build/test via jenkins, which also means running all tests in
a container instead of directly on the host:

- Jenkinsfile controls the stages, build.sh does the build and
  run-tests.sh does the regression tests.

- Create a new container falcosecurity/falco-tester that includes the
  dependencies required to run the regression tests. This is a different
  image than falco-builder because it doesn't need to be centos 6 based,
  doesn't install any compiler/etc, and installs the test running
  framework we use (avocado). We now use a newer version of avocado,
  which resulted in some small changes to how it is run and how yaml
  options are parsed.

- Modify run_regression_tests.sh to download trace files to the build
  directory and only if not present. Also honor BUILD_TYPE/BUILD_DIR,
  which is provided via the docker run cmd.

- The package tests are now moved to a separate falco_tests_package.yaml
  file. They will use rpm installs by default instead of debian
  packages. Also add the ability to install rpms in addition to debian
  packages.

- Automate the process of creating the docker local package by: 1)
  Adding CMake rules to copy the Dockerfile, entrypoint to the build
  directory and 2) Copy test trace files and rules into the build
  directory. This allows running the docker build command from
  build/docker/local instead of the source directory.

- Modify the way the container test is run a bit to use the trace
  files/rules copied into the container directly instead of host-mounted
  trace files.

@mstemm mstemm force-pushed the add-jenkins-checks branch from d2af260 to 3d54424 Apr 26, 2019

mstemm added some commits Apr 25, 2019

Use container builder + tester for travis
We'll probably be using jenkins soon, but this will allow switching back
to travis later if we want.
Use download.draios.com for binutils packages
That way we won't be dependent on snapshot.debian.org.

@mstemm mstemm force-pushed the add-jenkins-checks branch from 3914f51 to 49b79ce Apr 26, 2019

mstemm added a commit to falcosecurity/falco-website that referenced this pull request Apr 26, 2019

@mstemm mstemm force-pushed the add-jenkins-checks branch from 416ad30 to 49b79ce Apr 26, 2019

@mstemm mstemm merged commit 0e1c436 into dev Apr 26, 2019

5 checks passed

Build Build Successful
Details
Run tests All tests passed
Details
Travis CI - Branch Build Passed
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/jenkins/branch This commit looks good
Details

@mstemm mstemm deleted the add-jenkins-checks branch May 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.