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

workflows: yaml build support #4814

Merged
merged 12 commits into from
Feb 16, 2022
Merged

workflows: yaml build support #4814

merged 12 commits into from
Feb 16, 2022

Conversation

patrick-stephens
Copy link
Contributor

@patrick-stephens patrick-stephens commented Feb 14, 2022

Add YAML support to build and runtime to ensure we provide #4690

Built and tested AMD64 container locally:

$ docker build -t test -f dockerfiles/Dockerfile.x86_64-master .
...
$ docker run --rm -it -v $PWD/packaging/testing/smoke/container/fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml test /fluent-bit/bin/fluent-bit -c /fluent-bit/etc/fluent-bit.yaml
Fluent Bit v1.9.0
* Copyright (C) 2015-2021 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2022/02/14 17:46:28] [ info] [engine] started (pid=1)
[2022/02/14 17:46:28] [ info] [storage] version=1.1.6, initializing...
[2022/02/14 17:46:28] [ info] [storage] in-memory
[2022/02/14 17:46:28] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2022/02/14 17:46:28] [ info] [cmetrics] version=0.2.3
[2022/02/14 17:46:28] [ info] [http_server] listen iface=0.0.0.0 tcp_port=2020
[2022/02/14 17:46:28] [ info] [sp] stream processor started
[0] input: [1644860788.889459285, {"cpu_p"=>1.750000, "user_p"=>1.250000, "system_p"=>0.500000, "cpu0.p_cpu"=>0.000000, "cpu0.p_user"=>0.000000, "cpu0.p_system"=>0.000000, "cpu1.p_cpu"=>2.000000, "cpu1.p_user"=>1.000000, "cpu1.p_system"=>1.000000, "cpu2.p_cpu"=>3.000000, "cpu2.p_user"=>3.000000, "cpu2.p_system"=>0.000000, "cpu3.p_cpu"=>0.000000, "cpu3.p_user"=>0.000000, "cpu3.p_system"=>0.000000, "cpu4.p_cpu"=>0.000000, "cpu4.p_user"=>0.000000, "cpu4.p_system"=>0.000000, "cpu5.p_cpu"=>1.000000, "cpu5.p_user"=>0.000000, "cpu5.p_system"=>1.000000, "cpu6.p_cpu"=>3.000000, "cpu6.p_user"=>3.000000, "cpu6.p_system"=>0.000000, "cpu7.p_cpu"=>1.000000, "cpu7.p_user"=>1.000000, "cpu7.p_system"=>0.000000, "cpu8.p_cpu"=>3.000000, "cpu8.p_user"=>2.000000, "cpu8.p_system"=>1.000000, "cpu9.p_cpu"=>2.000000, "cpu9.p_user"=>1.000000, "cpu9.p_system"=>1.000000, "cpu10.p_cpu"=>1.000000, "cpu10.p_user"=>1.000000, "cpu10.p_system"=>0.000000, "cpu11.p_cpu"=>1.000000, "cpu11.p_user"=>1.000000, "cpu11.p_system"=>0.000000, "cpu12.p_cpu"=>2.000000, "cpu12.p_user"=>1.000000, "cpu12.p_system"=>1.000000, "cpu13.p_cpu"=>2.000000, "cpu13.p_user"=>2.000000, "cpu13.p_system"=>0.000000, "cpu14.p_cpu"=>2.000000, "cpu14.p_user"=>1.000000, "cpu14.p_system"=>1.000000, "cpu15.p_cpu"=>4.000000, "cpu15.p_user"=>3.000000, "cpu15.p_system"=>1.000000}]
...

Also built the multi-arch container (for the AMD64 target only):

$ docker build -t test-multiarch -f dockerfiles/Dockerfile.multiarch --build-arg FLB_TARBALL=https://github.com/fluent/fluent-bit/archive/master.tar.gz .
...
$ docker run --rm -it -v $PWD/packaging/testing/smoke/container/fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml test-multiarch /fluent-bit/bin/fluent-bit -c /fluent-bit/etc/fluent-bit.yaml

Ran local packaging tests as well.


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
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

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.

@patrick-stephens patrick-stephens changed the title 4690 yaml build support workflows: yaml build support Feb 14, 2022
@patrick-stephens patrick-stephens added this to the Fluent Bit v1.9 milestone Feb 14, 2022
Signed-off-by: Patrick Stephens <[email protected]>
Signed-off-by: Patrick Stephens <[email protected]>
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:45 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:45 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:45 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:45 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:45 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:46 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:46 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:46 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 17:46 Inactive
@patrick-stephens patrick-stephens marked this pull request as ready for review February 14, 2022 17:59
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 18:30 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 18:30 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 18:30 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 18:30 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 18:30 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 18:30 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:18 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:21 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:21 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:21 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:22 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:22 Inactive
@patrick-stephens patrick-stephens temporarily deployed to pr February 14, 2022 19:22 Inactive
Signed-off-by: Patrick Stephens <[email protected]>
Signed-off-by: Patrick Stephens <[email protected]>
@edsiper edsiper merged commit 872cbd2 into master Feb 16, 2022
@patrick-stephens patrick-stephens deleted the 4690_yaml_build_support branch February 17, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants