Skip to content

Commit

Permalink
Merge pull request #1 from fluent/master
Browse files Browse the repository at this point in the history
Sync master
  • Loading branch information
llhhbc authored Jan 9, 2021
2 parents 881ca2a + dae2967 commit 69a52b4
Show file tree
Hide file tree
Showing 4,609 changed files with 681,048 additions and 570,926 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!-- Provide summary of changes -->

<!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" -->

----
Enter `[N/A]` in the box, if an item is not applicable to your change.

**Testing**
Before we can approve your change; please submit the following in a comment:
- [ ] Example configuration file for the change
- [ ] Debug log output from testing the change
<!-- Invoke Fluent Bit and Valgrind as: $ valgrind ./bin/fluent-bit <args> -->
- [ ] Attached [Valgrind](https://valgrind.org/docs/manual/quick-start.html) output that shows no leaks or memory corruption was found

**Documentation**
<!-- Docs can be edited at https://github.com/fluent/fluent-bit-docs -->
- [ ] Documentation required for this feature

<!-- Doc PR (not required but highly recommended) -->

----

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
.DS_Store
*~
_book/
lib/jemalloc
Expand All @@ -10,5 +12,6 @@ include/fluent-bit/flb_plugins.h
include/fluent-bit/flb_version.h
include/fluent-bit/conf/*.h
init/fluent-bit.service
lib/chunkio/include/chunkio/cio_version.h
lib/monkey/monkey.service
lib/monkey/include/monkey/mk_core/mk_core_info.h
88 changes: 88 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
include:
- local: '/.gitlab/ci-templates.yml'

stages:
- build
- docker-build

"gcc DFLB_JEMALLOC=On":
stage: build
image: gcc
variables:
FLB_OPT: "-DFLB_JEMALLOC=On"
extends: .gcc-template
script:
- sh ci/do-ut
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./build

"gcc DFLB_JEMALLOC=Off":
stage: build
image: gcc
variables:
FLB_OPT: "-DFLB_JEMALLOC=Off"
extends: .gcc-template
script:
- sh ci/do-ut
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./build

"gcc DSANITIZE_ADDRESS=On":
stage: build
image: gcc
variables:
FLB_OPT: "-DSANITIZE_ADDRESS=On"
extends: .gcc-template
script:
- sh ci/do-ut
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./build

"gcc DSANITIZE_UNDEFINED=On":
stage: build
image: gcc
variables:
FLB_OPT: "-DSANITIZE_UNDEFINED=On"
extends: .gcc-template
script:
- sh ci/do-ut
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./build

"gcc DFLB_COVERAGE=On":
stage: build
image: gcc
variables:
FLB_OPT: "-DFLB_COVERAGE=On"
extends: .gcc-template
script:
- sh ci/do-ut
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./build

docker-build:
stage: docker-build
image: docker:stable
variables:
DOCKER_BUILD: 1
services:
- docker:dind
before_script:
- docker info
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- ./build
script:
- echo "===== BUILD DOCKER IMAGE ======="
- docker build -t test-image -f ./Dockerfile .
5 changes: 5 additions & 0 deletions .gitlab/ci-templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.gcc-template:
before_script:
- export CC=gcc
- apt-get update -y
- apt-get install cmake flex bison -y
26 changes: 15 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
dist: xenial
dist: bionic
language: c
# The leak sanitizer uses ptrace, which doesn't work under the
# travis container infrastructure, so we enable 'sudo'
sudo: true

git:
depth: 3

arch:
- amd64
- arm64

compiler:
- gcc
- clang

env:
- FLB_OPT="-DFLB_JEMALLOC=On"
- FLB_OPT="-DFLB_JEMALLOC=Off"
- FLB_OPT="-DFLB_SMALL=On"
- FLB_OPT="-DSANITIZE_ADDRESS=On"
- FLB_OPT="-DSANITIZE_UNDEFINED=On"

Expand All @@ -38,11 +40,12 @@ matrix:
- os: osx
env: FLB_OPT="-DFLB_JEMALLOC=Off"
script: |
brew update
brew install bison flex || true
ci/do-ut || true
- os: linux
env: FLB_OPT="-DFLB_COVERAGE=On"
dist: xenial
sudo: true
dist: bionic
language: c
compiler: gcc
script: |
Expand All @@ -51,16 +54,15 @@ matrix:
sudo usermod -a -G systemd-journal $(id -un)
sudo -E su -p travis -c "PATH=$PATH ci/do-ut"
- os: linux
dist: xenial
sudo: true
language: node_js
- "9"
services:
- docker
dist: bionic
language: c
compiler: gcc
env: DOCKER_BUILD=1
script: |
echo "===== BUILD DOCKER IMAGE ======="
docker build -t test-image -f Dockerfile .
npm install -g bats
addons:
apt:
sources: {}
Expand All @@ -70,6 +72,7 @@ script: |
echo "CC = $CC, CXX = $CXX"
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 90
sudo usermod -a -G systemd-journal $(id -un)
sudo -E su -p travis -c "PATH=$PATH ci/do-ut"
addons:
Expand All @@ -79,5 +82,6 @@ addons:
packages:
- gcc-7
- g++-7
- clang-6.0
- libsystemd-dev
- gcovr
Loading

0 comments on commit 69a52b4

Please sign in to comment.