org
stringclasses
73 values
repo
stringclasses
76 values
number
stringlengths
2
5
state
stringclasses
1 value
title
stringlengths
4
161
body
stringlengths
0
63k
base
stringlengths
87
127
resolved_issues
stringlengths
2
88k
fix_patch
stringlengths
293
14M
test_patch
stringlengths
165
88.9M
fixed_tests
stringlengths
57
2.27M
p2p_tests
stringlengths
2
2.19M
f2p_tests
stringlengths
2
78.9k
s2p_tests
stringclasses
1 value
n2p_tests
stringlengths
2
2.27M
run_result
stringlengths
119
1.67M
test_patch_result
stringlengths
119
1.66M
fix_patch_result
stringlengths
130
1.67M
instance_id
stringlengths
12
36
language
stringclasses
8 values
docker
stringlengths
26
50
OpenMathLib
OpenBLAS
4729
closed
Fix handling of INF or NAN arguments in S/D/C SCAL
fixes #4728
{"label": "OpenMathLib:develop", "ref": "develop", "sha": "1ba1b9c357fb7d5916a56a6c388b4aea47aad395"}
[{"number": 4728, "title": "dscal: `0 * nan` \u2260 `nan * 0` and `0 * inf` \u2260 `inf * 0`", "body": "Here another issue related to #4726 and #4413, impacting `dscal` this time.\r\n\r\nWith OpenBLAS 0.3.27:\r\n```\r\n$ LD_LIBRARY_PATH=lib/thirdparty:lib/thirdparty/redist ./openblas_dscal\r\nresult of nan * inf = n...
diff --git a/kernel/arm64/scal.S b/kernel/arm64/scal.S index 09c41cdaab..5029890f67 100644 --- a/kernel/arm64/scal.S +++ b/kernel/arm64/scal.S @@ -168,8 +168,8 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. cmp N, xzr ble .Lscal_kernel_L999 - fcmp DA, #0.0 - beq .Lscal_kernel_zero + /...
diff --git a/utest/test_zscal.c b/utest/test_zscal.c index 22642630c7..09e63752c2 100644 --- a/utest/test_zscal.c +++ b/utest/test_zscal.c @@ -1,5 +1,449 @@ #include "openblas_utest.h" #include <cblas.h> +#ifdef BUILD_SINGLE + +#ifndef NAN +#define NAN 0.0/0.0 +#endif +#ifndef INFINITY +#define INFINITY 1.0/0.0 +#end...
{"openblas_utest_ext": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "openblas_utest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"cblas3_3m": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "xzcblat1": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Testing_DOUBLE_PRECISION_LAPACK_RFP_prototype_linear_equation_routines": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "DEV:_Testing_DOUBLE_PRECISION_Nonsymmetric_Eigenvalue_Driver": {"run": "PAS...
{"openblas_utest_ext": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "openblas_utest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 120, "failed_count": 0, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
{"passed_count": 118, "failed_count": 2, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
{"passed_count": 120, "failed_count": 0, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
OpenMathLib__OpenBLAS-4729
c
null
OpenMathLib
OpenBLAS
4727
closed
Fix another corner case of infinity handling in ZSCAL
fixes #4726
{"label": "OpenMathLib:develop", "ref": "develop", "sha": "b9a1c9a06c93f7b3a48122bd4d49a9612ef0a104"}
[{"number": 4726, "title": "zscal: i*iInf\u2260 iInf*i and is not conformant to refBLAS", "body": "Thanks for this great library ! I had an issue trying to fix all corner cases of https://gitlab.com/scilab/scilab/-/issues/15639. It seems that `zscal` does not handle INFINITY correctly (even after #4413). \r\n\r\nYou ca...
diff --git a/kernel/arm/zscal.c b/kernel/arm/zscal.c index b2d537d04e..c4855f73ea 100644 --- a/kernel/arm/zscal.c +++ b/kernel/arm/zscal.c @@ -61,7 +61,9 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r,FLOAT da_i, F { temp = - da_i * x[ip+1] ; if (isnan(x[ip]) || isinf(x[ip])) temp =...
diff --git a/utest/test_zscal.c b/utest/test_zscal.c index 195e4945f3..22642630c7 100644 --- a/utest/test_zscal.c +++ b/utest/test_zscal.c @@ -117,4 +117,31 @@ CTEST(zscal, inf_i_inc_2) ASSERT_TRUE(isinf(i[17])); } +CTEST(zscal, i_0inf) +{ + blasint N=9; + blasint incX=1; + double i[] = {0,1, 0,1, 0,1,...
{"openblas_utest_ext": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "openblas_utest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"cblas3_3m": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "xzcblat1": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Testing_DOUBLE_PRECISION_LAPACK_RFP_prototype_linear_equation_routines": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "DEV:_Testing_DOUBLE_PRECISION_Nonsymmetric_Eigenvalue_Driver": {"run": "PAS...
{"openblas_utest_ext": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "openblas_utest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 120, "failed_count": 0, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
{"passed_count": 118, "failed_count": 2, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
{"passed_count": 120, "failed_count": 0, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
OpenMathLib__OpenBLAS-4727
c
null
OpenMathLib
OpenBLAS
4419
closed
[WIP] Add fixes and utests for ZSCAL with NaN or Inf arguments
fixes #4413
{"label": "OpenMathLib:develop", "ref": "develop", "sha": "1412d2deeb32cfc1d80150eba520a5bba915f1c6"}
[{"number": 4413, "title": "Issue with i*nan where i is the imaginary unit (while nan*i works)", "body": "```\r\n#include <stdio.h>\r\n#include <cblas.h>\r\n#include <math.h>\r\nint main(int argc, char ** argv)\r\n{\r\n double i[] = {0, 1};\r\n double nan[] = {NAN, 0};\r\n cblas_zscal(1, i, &nan, 1);\r\n pr...
diff --git a/kernel/arm64/zscal.S b/kernel/arm64/zscal.S index 929455975d..4bd43320d6 100644 --- a/kernel/arm64/zscal.S +++ b/kernel/arm64/zscal.S @@ -223,7 +223,7 @@ zscal_begin: fcmp DA_I, #0.0 beq .Lzscal_kernel_RI_zero - b .Lzscal_kernel_R_zero +// b .Lzscal_kernel_R_zero .Lzscal_kernel_R_non_zero: diff ...
diff --git a/utest/CMakeLists.txt b/utest/CMakeLists.txt index 2e32827d39..c47954ce49 100644 --- a/utest/CMakeLists.txt +++ b/utest/CMakeLists.txt @@ -15,6 +15,7 @@ else () test_dsdot.c test_dnrm2.c test_swap.c + test_zscal.c ) endif () diff --git a/utest/Makefile b/utest/Makefile index f9903544...
{"openblas_utest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"xzcblat1": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "Testing_DOUBLE_PRECISION_LAPACK_RFP_prototype_linear_equation_routines": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "DEV:_Testing_DOUBLE_PRECISION_Nonsymmetric_Eigenvalue_Driver": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "zblas3": {"run": "PASS",...
{"openblas_utest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 115, "failed_count": 0, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
{"passed_count": 114, "failed_count": 1, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
{"passed_count": 115, "failed_count": 0, "skipped_count": 0, "passed_tests": ["xzcblat1", "CCSD:_Testing_CS_Decomposition_routines", "ZSE2:_Testing_Symmetric_Eigenvalue_Problem_routines", "REAL_LAPACK_linear_equation_routines", "SGLM:_Testing_Generalized_Linear_Regression_Model_routines", "SGSV:_Testing_Generalized_Sin...
OpenMathLib__OpenBLAS-4419
c
null
facebook
zstd
3470
closed
ensure that benchmark mode can only be invoked with zstd format
fix #3463
{"label": "facebook:dev", "ref": "dev", "sha": "4794bbfe00c00a35c046e6078673b9cfea161d3e"}
[{"number": 3463, "title": "CLI benchmark mode should respect --format", "body": "**Is your feature request related to a problem? Please describe.**\r\n\r\nThe `zstd` command provides very useful benchmark functionality, but it doesn't seem to take `--format` into account. If I provide the flag `--format=gzip`, the si...
diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 39f8b34fe2c..660e66bb619 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -852,6 +852,7 @@ int main(int argCount, const char* argv[]) contentSize=1, removeSrcFile=0; ZSTD_paramSwitch_e useRowMatchFinder = ZSTD_ps_auto; + FIO...
diff --git a/tests/playTests.sh b/tests/playTests.sh index e064c86dfce..5d78e9e7d99 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -1218,6 +1218,12 @@ println "benchmark decompression only" zstd -f tmp1 zstd -b -d -i0 tmp1.zst +GZIPMODE=1 +zstd --format=gzip -V || GZIPMODE=0 +if [ $GZIPMODE -eq 1 ]; th...
{"cltools/zstdgrep.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/verbose-wlog.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/levels.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/multi-threaded.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "file-stat/comp...
{}
{}
{}
{"cltools/zstdgrep.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/verbose-wlog.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/levels.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/multi-threaded.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "file-stat/comp...
{"passed_count": 37, "failed_count": 0, "skipped_count": 0, "passed_tests": ["cltools/zstdgrep.sh", "compression/verbose-wlog.sh", "compression/levels.sh", "compression/multi-threaded.sh", "file-stat/compress-stdin-to-file.sh", "file-stat/decompress-file-to-file.sh", "compression/adapt.sh", "compression/stream-size.sh"...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 37, "failed_count": 0, "skipped_count": 0, "passed_tests": ["cltools/zstdgrep.sh", "compression/verbose-wlog.sh", "compression/levels.sh", "compression/multi-threaded.sh", "file-stat/compress-stdin-to-file.sh", "file-stat/decompress-file-to-file.sh", "compression/adapt.sh", "compression/stream-size.sh"...
facebook__zstd-3470
c
mswebench/facebook_m_zstd:pr-3470
facebook
zstd
3441
closed
Fix bufferless API with attached dictionary
Fixes #3102.
{"label": "facebook:dev", "ref": "dev", "sha": "abf965c64a6f0c9fa30399491b946c153e8ba801"}
[{"number": 3102, "title": "Assert in ZSTD_buildSeqStore when using ZSTD_compressContinue with a dictionary", "body": "Hello, I'm hitting the assert on [zstd_compress.c:2837 (v1.5.2)](https://github.com/Cyan4973/zstd/blob/v1.5.2/lib/compress/zstd_compress.c#L2837) when calling `ZSTD_compressContinue` with a dictionary ...
diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index 3b888acfa94..5b2792da3a2 100644 --- a/lib/compress/zstd_compress_internal.h +++ b/lib/compress/zstd_compress_internal.h @@ -1172,10 +1172,15 @@ ZSTD_checkDictValidity(const ZSTD_window_t* window, (unsig...
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index 4a091c8972b..802b3937c56 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -2592,6 +2592,27 @@ static int basicUnitTests(U32 const seed, double compressibility) } DISPLAYLEVEL(3, "OK \n"); + DISPLAYLEVEL(3, "test%3d : bufferless api with cd...
{"cltools/zstdgrep.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/verbose-wlog.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/levels.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/multi-threaded.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "file-stat/comp...
{}
{}
{}
{"cltools/zstdgrep.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/verbose-wlog.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/levels.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/multi-threaded.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "file-stat/comp...
{"passed_count": 37, "failed_count": 0, "skipped_count": 0, "passed_tests": ["cltools/zstdgrep.sh", "compression/verbose-wlog.sh", "compression/levels.sh", "compression/multi-threaded.sh", "file-stat/compress-stdin-to-file.sh", "file-stat/decompress-file-to-file.sh", "compression/adapt.sh", "compression/stream-size.sh"...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 37, "failed_count": 0, "skipped_count": 0, "passed_tests": ["cltools/zstdgrep.sh", "compression/verbose-wlog.sh", "compression/levels.sh", "compression/multi-threaded.sh", "file-stat/compress-stdin-to-file.sh", "file-stat/decompress-file-to-file.sh", "compression/adapt.sh", "compression/stream-size.sh"...
facebook__zstd-3441
c
mswebench/facebook_m_zstd:pr-3441
facebook
zstd
3175
closed
Streaming decompression can detect incorrect header ID sooner
Streaming decompression used to wait for a minimum of 5 bytes before attempting decoding. This meant that, in the case that only a few bytes (<5) were provided, and assuming these bytes are incorrect, there would be no error reported. The streaming API would simply request more data, waiting for at least 5 bytes. ...
{"label": "facebook:dev", "ref": "dev", "sha": "f6ef14329f396eb8b2c1290790e7547d070d9511"}
[{"number": 3169, "title": "stream decompression: check 1~4 bytes Magic Number", "body": "When using stream decompression without [`ZSTD_f_zstd1_magicless`](https://github.com/facebook/zstd/blob/v1.5.2/lib/zstd.h#L1249-L1251):\r\n\r\n- Feed 1~4 invalid bytes (wrong Magic Number), it doesn't report an error.\r\n- Feed 5...
diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 85f4d2202e9..5bd412df436 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -79,11 +79,11 @@ *************************************/ #define DDICT_HASHSET_MAX_LOAD_FACTOR_COUNT_MULT 4 -#define...
diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index 20a05a75c9f..3fcdd5399a4 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -424,6 +424,15 @@ static int basicUnitTests(U32 seed, double compressibility) } } DISPLAYLEVEL(3, "OK \n"); + /* check decompression fails early if first b...
{"cltools/zstdgrep.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "basic/version.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/levels.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/multi-threaded.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/adapt.sh": {"...
{}
{}
{}
{"cltools/zstdgrep.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "basic/version.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/levels.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/multi-threaded.sh": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "compression/adapt.sh": {"...
{"passed_count": 18, "failed_count": 0, "skipped_count": 0, "passed_tests": ["cltools/zstdgrep.sh", "basic/version.sh", "compression/levels.sh", "compression/gzip-compat.sh", "compression/multi-threaded.sh", "dict-builder/empty-input.sh", "compression/row-match-finder.sh", "zstd-symlinks/zstdcat.sh", "compression/adapt...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 18, "failed_count": 0, "skipped_count": 0, "passed_tests": ["cltools/zstdgrep.sh", "basic/version.sh", "compression/levels.sh", "compression/gzip-compat.sh", "compression/multi-threaded.sh", "dict-builder/empty-input.sh", "compression/row-match-finder.sh", "zstd-symlinks/zstdcat.sh", "compression/adapt...
facebook__zstd-3175
c
mswebench/facebook_m_zstd:pr-3175
facebook
zstd
2703
closed
Add support for --long-param flag, fix #2104
--long-param allows negative compression levels to be specified as "fast" compression levels. Minimum and maximum compression levels are still enforced. Fixes #2104
{"label": "facebook:dev", "ref": "dev", "sha": "05d70903a6f3472642f18636a47a1cb44171bc7d"}
[{"number": 2104, "title": "Fast Mode UX is Poor", "body": "Every recent benchmark of ZSTD that I can find skips \"fast mode\" ([lzbench][lzbench], [squash][squash], [peazip][peazip], ***[zstd][zstd]***).\r\n\r\nThis is partly because most of the material about ZSTD was written before the negative ranges were added. P...
diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 9e2133c4f86..28fc980a2bf 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -206,6 +206,7 @@ static void usage_advanced(const char* programName) DISPLAYOUT( "--ultra : enable levels beyond %i, up to %i (requires more memory) \n", ZSTDCLI_CLEVEL_MA...
diff --git a/tests/playTests.sh b/tests/playTests.sh index 25293900656..09dae1a297f 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -191,6 +191,13 @@ zstd --fast=3 -f tmp # == -3 zstd --fast=200000 -f tmp # too low compression level, automatic fixed zstd --fast=5000000000 -f tmp && die "too large numeri...
{"all tests": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{"all tests": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 1, "failed_count": 0, "skipped_count": 0, "passed_tests": ["all tests"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 0, "failed_count": 1, "skipped_count": 0, "passed_tests": [], "failed_tests": ["all tests"], "skipped_tests": []}
{"passed_count": 1, "failed_count": 0, "skipped_count": 0, "passed_tests": ["all tests"], "failed_tests": [], "skipped_tests": []}
facebook__zstd-2703
c
mswebench/facebook_m_zstd:pr-2703
facebook
zstd
2100
closed
Fix up superblock mode
Fixes: * Enable RLE blocks for superblock mode * Fix the limitation that the literals block must shrink. Instead, when we're within 200 bytes of the next header byte size, we will just use the next one up. That way we should (almost?) always have space for the table. * Remove the limitation that the first sub-block ...
{"label": "facebook:dev", "ref": "dev", "sha": "da2748a855821aa7edc9080997119e44c96d657c"}
[{"number": 2096, "title": " ZSTD_c_targetCBlockSize == ZSTD_TARGETCBLOCKSIZE_MAX leads to improbably bad compression ", "body": "Using `ZSTD_CCtxParams_setParameter(cctxParams, ZSTD_c_targetCBlockSize, ZSTD_TARGETCBLOCKSIZE_MAX)` leads to improbably bad compression for sources with large minimum sequences (>1kB).\r\n\...
diff --git a/lib/common/huf.h b/lib/common/huf.h index 0d27ccdba94..23e184d4031 100644 --- a/lib/common/huf.h +++ b/lib/common/huf.h @@ -189,6 +189,7 @@ size_t HUF_buildCTable (HUF_CElt* CTable, const unsigned* count, unsigned maxSym size_t HUF_writeCTable (void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigne...
diff --git a/tests/fuzz/simple_round_trip.c b/tests/fuzz/simple_round_trip.c index e37fa6f6f61..41ea96739fe 100644 --- a/tests/fuzz/simple_round_trip.c +++ b/tests/fuzz/simple_round_trip.c @@ -32,9 +32,12 @@ static size_t roundTripTest(void *result, size_t resultCapacity, FUZZ_dataProducer_...
{"all tests": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{"all tests": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 1, "failed_count": 0, "skipped_count": 0, "passed_tests": ["all tests"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 0, "failed_count": 1, "skipped_count": 0, "passed_tests": [], "failed_tests": ["all tests"], "skipped_tests": []}
{"passed_count": 1, "failed_count": 0, "skipped_count": 0, "passed_tests": ["all tests"], "failed_tests": [], "skipped_tests": []}
facebook__zstd-2100
c
mswebench/facebook_m_zstd:pr-2100
facebook
zstd
1450
closed
[zstdcli] Add --no-progress flag
The `--no-progress` flag disables zstd's progress bars, but leaves the summary. I've added simple tests to `playTests.sh` to make sure the parsing works. Closes #1371
{"label": "facebook:dev", "ref": "dev", "sha": "d4698424ce7356f040c22a837a5cb8a2068e951c"}
[{"number": 1371, "title": "--no-progress command", "body": "Following a suggestion from @qth : #1158 .\r\n\r\n"}]
diff --git a/programs/fileio.c b/programs/fileio.c index cda5295b4b8..434443bfcde 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -88,10 +88,10 @@ void FIO_setNotificationLevel(unsigned level) { g_displayLevel=level; } static const U64 g_refreshRate = SEC_TO_MICRO / 6; static UTIL_time_t g_displayClock = UT...
diff --git a/tests/playTests.sh b/tests/playTests.sh index 9b3915a7692..ab9886d4b23 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -179,6 +179,9 @@ $ECHO foo > tmpro chmod 400 tmpro.zst $ZSTD -q tmpro && die "should have refused to overwrite read-only file" $ZSTD -q -f tmpro +$ECHO "test: --no-progress ...
{"all tests": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{"all tests": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 1, "failed_count": 0, "skipped_count": 0, "passed_tests": ["all tests"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 0, "failed_count": 1, "skipped_count": 0, "passed_tests": [], "failed_tests": ["all tests"], "skipped_tests": []}
{"passed_count": 1, "failed_count": 0, "skipped_count": 0, "passed_tests": ["all tests"], "failed_tests": [], "skipped_tests": []}
facebook__zstd-1450
c
mswebench/facebook_m_zstd:pr-1450
facebook
zstd
947
closed
Fix #944
This patch fixes the root cause of issue #944, which is a mismatch in window size between the first and subsequent jobs when using `ZSTDMT` to compress a large file with a dictionary built for a smaller file. Quite a set of conditions, but they can be generated with `v1.3.2` cli. `dev` branch is safe, but that's mo...
{"label": "facebook:dev", "ref": "dev", "sha": "04a1557e2808be33bf199757482c59fa4bd287da"}
[{"number": 944, "title": "Encoding errors when using a dictionary using zstdmt", "body": "Dear zstd team, \r\nThere seem to be a problem with zstd decoding as described in this bug:\r\n[#883816](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883816)\r\nI see the same problem on my system.\r\n\r\n```\r\nWhen using a...
diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 3f39875f5bd..34bfb737c14 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -410,7 +410,7 @@ size_t ZSTD_CCtxParam_setParameter( return ERROR(parameter_unsupported); #else if (CCtxParams->nbThr...
diff --git a/tests/Makefile b/tests/Makefile index 79df7dd9576..853f4ee89b1 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -76,16 +76,16 @@ allnothread: fullbench fuzzer paramgrill datagen decodecorpus dll: fuzzer-dll zstreamtest-dll zstd: - $(MAKE) -C $(PRGDIR) $@ + $(MAKE) -C $(PRGDIR) $@ MOREFLAGS+="$(DEBUG...
{"testInvalid": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "testOrder": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{}
{}
{}
{"testInvalid": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "testOrder": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"passed_count": 2, "failed_count": 0, "skipped_count": 0, "passed_tests": ["testInvalid", "testOrder"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 2, "failed_count": 0, "skipped_count": 0, "passed_tests": ["testInvalid", "testOrder"], "failed_tests": [], "skipped_tests": []}
facebook__zstd-947
c
mswebench/facebook_m_zstd:pr-947
facebook
zstd
943
closed
Fix #942
streaming interface does not compress after `ZSTD_initCStream()` While the final result is still, technically, a frame, the resulting frame expands initial data instead of compressing it. This is because the `ZSTD_CStream` creates a tiny 1-byte buffer for input, because it believes input is empty (0-bytes), beca...
{"label": "facebook:dev", "ref": "dev", "sha": "b9c84e0fd67b9efc96f5ba9a8eb67bcef32cb195"}
[{"number": 942, "title": "ZSTD_compressStream always returns 1?", "body": "Just going by the example program streaming_compression.c, ZSTD_compressStream is called as follows:\r\n` toRead = ZSTD_compressStream(cstream, &output , &input);`\r\nand then the next file read reads toRead number of bytes:\r\n` while( (...
diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 8d493852ffa..3f39875f5bd 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -2466,6 +2466,7 @@ size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, ZSTD_CStream* ZSTD_createCStream(void) { + DEBUGLOG(3, "ZSTD_...
diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index 920e988b054..e08a96d8fc9 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -245,13 +245,28 @@ static int basicUnitTests(U32 seed, double compressibility) } dictID = ZDICT_getDictID(dictionary.start, dictionary.filled); + /* Basic co...
{"testInvalid": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "testOrder": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{}
{}
{}
{"testInvalid": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "testOrder": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"passed_count": 2, "failed_count": 0, "skipped_count": 0, "passed_tests": ["testInvalid", "testOrder"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 2, "failed_count": 0, "skipped_count": 0, "passed_tests": ["testInvalid", "testOrder"], "failed_tests": [], "skipped_tests": []}
facebook__zstd-943
c
mswebench/facebook_m_zstd:pr-943
facebook
zstd
905
closed
Allow skippable frames of any size
Previously we were only able to decode skippable frames that are smaller than `zds->inBuffSize`. Fixes #904.
{"label": "facebook:dev", "ref": "dev", "sha": "61e5a1adfc1645bf44e7c69a41c372b595202b22"}
[{"number": 904, "title": "zstd error out on skippable frames", "body": "Hi,\r\nZstd framing format is compatible with Lz4 for skippable frames (per @Cyan4973 and docs)\r\nlz4 utility is skipping skippable frames, but zstd does not.\r\nI created 48-byte file with one skippable frame:\r\n\r\n hexdump -C /tmp/test.zst\r\...
diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 96fc6090896..caeafc255fe 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -2555,17 +2555,21 @@ size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inB /* fa...
diff --git a/tests/fuzzer.c b/tests/fuzzer.c index e40f1997826..be9dc3e062e 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -525,7 +525,7 @@ static int basicUnitTests(U32 seed, double compressibility) off += r; if (i == segs/2) { /* insert skippable frame */ - ...
{"testInvalid": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "testOrder": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{}
{}
{}
{"testInvalid": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "testOrder": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"passed_count": 2, "failed_count": 0, "skipped_count": 0, "passed_tests": ["testInvalid", "testOrder"], "failed_tests": [], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 2, "failed_count": 0, "skipped_count": 0, "passed_tests": ["testInvalid", "testOrder"], "failed_tests": [], "skipped_tests": []}
facebook__zstd-905
c
mswebench/facebook_m_zstd:pr-905
fluent
fluent-bit
10007
closed
ra: add support for direct array access notation
# Description This PR fixes an issue where the Record Accessor API couldn't handle direct array access patterns like `$array[0]`. The fix changes the condition that checks if a lookup succeeded by replacing `!found` with `matched == 0`, which properly tracks array element access. Added test cases to verify array...
{"label": "fluent:master", "ref": "master", "sha": "9f2502b99db98e26efe9ac27bb0cf43a453f108b"}
[{"number": 9958, "title": "Record Accessor does not support direct array access notation", "body": "## Bug Report\n\nThe Record Accessor API currently cannot handle direct array access patterns like $[0] or $array[0]. It requires the array to be nested within a map first, like $data.array[0].\n\n```yaml\n# This doesn'...
diff --git a/src/flb_cfl_ra_key.c b/src/flb_cfl_ra_key.c index 5282557df09..68107077e3c 100644 --- a/src/flb_cfl_ra_key.c +++ b/src/flb_cfl_ra_key.c @@ -131,7 +131,6 @@ static int subkey_to_variant(struct cfl_variant *vobj, struct mk_list *subkeys, { int levels; int matched = 0; - cfl_sds_t found = NULL; ...
diff --git a/tests/internal/cfl_record_accessor.c b/tests/internal/cfl_record_accessor.c index 43498d391aa..5fa25b6ad0d 100644 --- a/tests/internal/cfl_record_accessor.c +++ b/tests/internal/cfl_record_accessor.c @@ -1477,6 +1477,229 @@ void cb_add_root_key_val() cfl_variant_destroy(vobj); } +void cb_direct_arr...
{"flb-it-cfl_record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS"...
{"flb-it-cfl_record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 131, "failed_count": 15, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 129, "failed_count": 17, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 131, "failed_count": 15, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-10007
c
mswebench/fluent_m_fluent-bit:pr-10007
fluent
fluent-bit
9590
closed
in_http: use 'tag_key' option when json array is received
When a json array is received by http input, it doesn't use the 'tag_key' option and always sets the tag to 'http.N'. So this fixes the bug and also adds test cases to test for both json object and json array. <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> Fixes #9589 ---- Enter `[...
{"label": "fluent:master", "ref": "master", "sha": "faf7da1de816144a17d63cb6d3abc0ead86fda93"}
[{"number": 9589, "title": "tag_key doesn't work when sending json array to http input", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n`tag_key` doesn't work when sending json array to http input.\r\n\r\n**To Reproduce**\r\n- Run fluent-bit with the following configuration.\r\n ```conf\r\n [INPUT]\r\n na...
diff --git a/plugins/in_http/http_prot.c b/plugins/in_http/http_prot.c index 175fe4461e1..4e2aa6a761c 100644 --- a/plugins/in_http/http_prot.c +++ b/plugins/in_http/http_prot.c @@ -843,6 +843,11 @@ static int process_pack_ng(struct flb_http *ctx, flb_sds_t tag, char *buf, size_ { record = ...
diff --git a/tests/runtime/in_http.c b/tests/runtime/in_http.c index d4d88faadf8..66ddaea5230 100644 --- a/tests/runtime/in_http.c +++ b/tests/runtime/in_http.c @@ -588,7 +588,7 @@ void flb_test_http_failure_400_bad_disk_write() test_ctx_destroy(ctx); } -void flb_test_http_tag_key() +void test_http_tag_key(char...
{"flb-rt-filter_lua": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS"...
{}
{}
{"flb-rt-filter_lua": {"run": "PASS", "test": "NONE", "fix": "PASS"}}
{"passed_count": 125, "failed_count": 14, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 124, "failed_count": 14, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 125, "failed_count": 14, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-9590
c
mswebench/fluent_m_fluent-bit:pr-9590
fluent
fluent-bit
8474
closed
in_tail: skip_empty_line supports CRLF line
Fixes #8313 This patch is to ignore `\r\n` lines when skip_empty_line is true. ---- 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: - [X] Example configuration file for the change - [X] Debug ...
{"label": "fluent:master", "ref": "master", "sha": "9652b0dc6fd9e59ef87c3bdc59c89da9abed995b"}
[{"number": 8313, "title": "Skip_Empty_Lines does not work for CR LF. ", "body": "I have encountered similar issue mentioned here - https://github.com/fluent/fluent-bit/issues/4215\r\n\r\n`Skip_Empty_Lines` works only for `LF` empty lines. So in case you are running container on windows and while testing you manually c...
diff --git a/plugins/in_tail/tail_file.c b/plugins/in_tail/tail_file.c index 84f3d76d26f..b3774753396 100644 --- a/plugins/in_tail/tail_file.c +++ b/plugins/in_tail/tail_file.c @@ -477,11 +477,17 @@ static int process_content(struct flb_tail_file *file, size_t *bytes) * property to revert this behavior if som...
diff --git a/tests/runtime/in_tail.c b/tests/runtime/in_tail.c index ee5fba88744..a5ce9e70b55 100644 --- a/tests/runtime/in_tail.c +++ b/tests/runtime/in_tail.c @@ -1144,6 +1144,75 @@ void flb_test_skip_empty_lines() test_tail_ctx_destroy(ctx); } +void flb_test_skip_empty_lines_crlf() +{ + struct flb_lib_out...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 120, "failed_count": 12, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-r...
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-8474
c
mswebench/fluent_m_fluent-bit:pr-8474
fluent
fluent-bit
8279
closed
filter_kubernetes: add kubernetes_namespace metadata
<!-- Provide summary of changes --> This provides the ability to have the filter_kubernetes plugin fetch namespace labels & annotations and add them to the record under a `kubernetes_namespace` key. - Added 3 new configuration options: - `kube_meta_namespace_cache_ttl` - `FLB_CONFIG_MAP_TIME` - the TTL for t...
{"label": "fluent:master", "ref": "master", "sha": "9652b0dc6fd9e59ef87c3bdc59c89da9abed995b"}
[{"number": 6544, "title": "Add namespace_labels to kubernetes metadata", "body": "What is the problem:\r\nWe are using fluentbit for our logcollection. The output flows through fluentd to logstash to ES. In ES we find that we only get a subset of kubernetes metadata in the index. We are using the kubernetes.namespace_...
diff --git a/plugins/filter_kubernetes/kube_conf.c b/plugins/filter_kubernetes/kube_conf.c index 9dc360b48ec..1592377e504 100644 --- a/plugins/filter_kubernetes/kube_conf.c +++ b/plugins/filter_kubernetes/kube_conf.c @@ -89,17 +89,6 @@ struct flb_kube *flb_kube_conf_create(struct flb_filter_instance *ins, if (ctx-...
diff --git a/tests/runtime/data/kubernetes/log/core/core_base-with-namespace-labels-and-annotations_fluent-bit.log b/tests/runtime/data/kubernetes/log/core/core_base-with-namespace-labels-and-annotations_fluent-bit.log new file mode 100644 index 00000000000..259723131be --- /dev/null +++ b/tests/runtime/data/kubernetes...
{"flb-rt-filter_kubernetes": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS"...
{"flb-rt-filter_kubernetes": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 120, "failed_count": 12, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-8279
c
mswebench/fluent_m_fluent-bit:pr-8279
fluent
fluent-bit
8209
closed
out_stackdriver: add project_id_key override to allow specifying gcp project id from the record
<!-- Provide summary of changes --> A new configuration option for the out_stackdriver plugin `project_id_key` allows you to specify a key within the jsonPayload that will be used to set the GCP Project ID to export to. This allows a stackdriver out plugin that has logWriter permissions in multiple projects to write t...
{"label": "fluent:master", "ref": "master", "sha": "8733b25df17b74fd3b2aa7594594451db79d1b25"}
[{"number": 8195, "title": "Stackdriver Output Plugin - allow export_to_project_id to be set from a record similar to severity_key & labels_key", "body": "**Is your feature request related to a problem? Please describe.**\r\nI am running fluentbit using the stackdriver output plugin set with a google credential that ha...
diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c index 23d31ad4f0a..11194414c3f 100644 --- a/plugins/out_stackdriver/stackdriver.c +++ b/plugins/out_stackdriver/stackdriver.c @@ -1509,6 +1509,7 @@ static int pack_json_payload(int insert_id_extracted, { monitored_r...
diff --git a/tests/runtime/data/stackdriver/stackdriver_test_log_name.h b/tests/runtime/data/stackdriver/stackdriver_test_log_name.h index 4d39e242e46..cd8f5be6744 100644 --- a/tests/runtime/data/stackdriver/stackdriver_test_log_name.h +++ b/tests/runtime/data/stackdriver/stackdriver_test_log_name.h @@ -8,3 +8,15 @@ ...
{"flb-rt-out_stackdriver": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS"...
{"flb-rt-out_stackdriver": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 120, "failed_count": 12, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-8209
c
mswebench/fluent_m_fluent-bit:pr-8209
fluent
fluent-bit
8062
closed
in_tail: Preventing incorrect inode usage from db. #8025
<!-- Provide summary of changes --> Preventing incorrect inode usage from db. The first commit involves deleting items that are not being monitored by Fluent-Bit when it starts. The second commit involves considering already running Fluent-Bit instances, preventing incorrect inode usage during execution. This...
{"label": "fluent:master", "ref": "master", "sha": "3a308f3e947cdb92dd82fcc7772a82fe0c4b7914"}
[{"number": 8025, "title": "in_tail: missing log for offset processing due to non-existent old inodes in sqlite.", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nWhen Fluent-bit is monitoring a file that gets deleted after it has been shutdown, and if the inode exists in the SQLite file, it may result in log los...
diff --git a/plugins/in_tail/tail.c b/plugins/in_tail/tail.c index 34a0fec3dbd..52bf2ed6d40 100644 --- a/plugins/in_tail/tail.c +++ b/plugins/in_tail/tail.c @@ -372,6 +372,15 @@ static int in_tail_init(struct flb_input_instance *in, /* Scan path */ flb_tail_scan(ctx->path_list, ctx); +#ifdef FLB_HAVE_SQLDB ...
diff --git a/tests/runtime/in_tail.c b/tests/runtime/in_tail.c index ee5fba88744..90d8832bc79 100644 --- a/tests/runtime/in_tail.c +++ b/tests/runtime/in_tail.c @@ -1545,6 +1545,341 @@ void flb_test_db() test_tail_ctx_destroy(ctx); unlink(db); } + +void flb_test_db_delete_stale_file() +{ + struct flb_lib_...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 120, "failed_count": 12, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-r...
{"passed_count": 121, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-8062
c
mswebench/fluent_m_fluent-bit:pr-8062
fluent
fluent-bit
8028
closed
sp: fix missing key names when query contains GROUP BY
<!-- Provide summary of changes --> Key names are missing from the output record for the keys inside GROUP BY statement. <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> Fixes #7459 ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing** Before we c...
{"label": "fluent:master", "ref": "master", "sha": "8401076f11b5cc0ee2bfe6539d835ffeac575784"}
[{"number": 7459, "title": "Fluent Bit stream processor returning empty Keys after processing a message", "body": "## Bug Report\r\n\r\n**Description:** \r\nBefore updating to version 2.1.2, we were using Fluent Bit version 1.7, and the stream processor worked perfectly. We were obtaining satisfactory results from the ...
diff --git a/src/stream_processor/flb_sp.c b/src/stream_processor/flb_sp.c index 00eb2f18b78..41a7ac8f432 100644 --- a/src/stream_processor/flb_sp.c +++ b/src/stream_processor/flb_sp.c @@ -266,8 +266,8 @@ static int sp_cmd_aggregated_keys(struct flb_sp_cmd *cmd) } /* - * if some aggregated function is r...
diff --git a/tests/internal/include/sp_cb_functions.h b/tests/internal/include/sp_cb_functions.h index aee3fb393e6..346a4bb7e12 100644 --- a/tests/internal/include/sp_cb_functions.h +++ b/tests/internal/include/sp_cb_functions.h @@ -535,6 +535,20 @@ static void cb_select_groupby(int id, struct task_check *check, r...
{"flb-it-stream_processor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_forward": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-regex": {"run": "PASS"...
{"flb-it-stream_processor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 119, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 118, "failed_count": 12, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 119, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-8028
c
mswebench/fluent_m_fluent-bit:pr-8028
fluent
fluent-bit
7891
closed
lua: support metatable to save table type
Fixes #7708 ## Issue Fluent-bit converts empty array into empty map. Lua table represents array and map and we can't determine when a table is empty. ## Solution Lua supports metatable and this patch is to append metatable to save data type. https://www.lua.org/manual/5.1/manual.html#2.8 1. Fluent-bit...
{"label": "fluent:master", "ref": "master", "sha": "f7731f3f81b1b32eef36aaa6786d82593d35a841"}
[{"number": 7708, "title": "filter_lua changes the JSON schema", "body": "## Bug Report\r\n\r\nI have JSON logs in my project, and I've tested the **Fluent Bit 2.1.7** version on **Debian**. The Linux version is `5.10.0-19-cloud-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (G...
diff --git a/include/fluent-bit/flb_lua.h b/include/fluent-bit/flb_lua.h index b2787430284..fb4ad99b49d 100644 --- a/include/fluent-bit/flb_lua.h +++ b/include/fluent-bit/flb_lua.h @@ -33,7 +33,8 @@ enum flb_lua_l2c_type_enum { FLB_LUA_L2C_TYPE_INT, - FLB_LUA_L2C_TYPE_ARRAY + FLB_LUA_L2C_TYPE_ARRAY, + ...
diff --git a/tests/runtime/filter_lua.c b/tests/runtime/filter_lua.c index 9f694377eae..afdf8200af1 100644 --- a/tests/runtime/filter_lua.c +++ b/tests/runtime/filter_lua.c @@ -753,6 +753,151 @@ void flb_test_split_record(void) flb_sds_destroy(outbuf); } +void flb_test_empty_array(void) +{ + int ret; + fl...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 116, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 115, "failed_count": 12, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 116, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-7891
c
mswebench/fluent_m_fluent-bit:pr-7891
fluent
fluent-bit
7879
closed
config_format: yaml: add support for idiomatic Yaml camelCase (fix #7593)
The current Yaml reader is agnostic from the keys format, it only cares to convert them to lower case so the backend layer can configure the properties properly. The following is an non-idiomatic example: ```yaml env: flushInterval: 1 service: flush: ${flushInterval} pipeline: ...
{"label": "fluent:master", "ref": "master", "sha": "1a68244d137ae89e45987fbc1dd3eab3f172bb61"}
[{"number": 7593, "title": "YAML configuration should be idiomatic", "body": "**Is your feature request related to a problem? Please describe.**\r\nI'd like the Fluent Bit [YAML](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/yaml/configuration-file) configuration to be idiomatic as otherwise it...
diff --git a/include/fluent-bit/config_format/flb_cf.h b/include/fluent-bit/config_format/flb_cf.h index 4240f539930..752e333b4a3 100644 --- a/include/fluent-bit/config_format/flb_cf.h +++ b/include/fluent-bit/config_format/flb_cf.h @@ -50,6 +50,8 @@ enum cf_file_format { #endif }; +#define FLB_CF_CLASSIC FLB_CF_FL...
diff --git a/tests/internal/config_format_fluentbit.c b/tests/internal/config_format_fluentbit.c index 5104ae62032..3f158573963 100644 --- a/tests/internal/config_format_fluentbit.c +++ b/tests/internal/config_format_fluentbit.c @@ -262,7 +262,6 @@ void not_current_dir_files() /* data/config_format/nolimitline.conf */...
{"flb-rt-in_tail": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{}
{}
{}
{"flb-rt-in_tail": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"passed_count": 115, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 115, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
fluent__fluent-bit-7879
c
mswebench/fluent_m_fluent-bit:pr-7879
fluent
fluent-bit
7609
closed
config_format: yaml: fix 'customs' section handling(#7559)
Fixes #7559 This patch is to fix yaml config file parser to handle 'customs' section. ---- 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: - [X] Example configuration file for the change - [X] D...
{"label": "fluent:master", "ref": "master", "sha": "c4cfc1babe27a4c4583f0f21e13a6a433a46f6ae"}
[{"number": 7559, "title": "Custom sections cause YAML parser error", "body": "## Steps to reproduce.\r\n\r\nSpecify a custom entry in the configuration.\r\n\r\n```yaml\r\ncustoms:\r\n - name: calyptia\r\n\r\npipeline:\r\n inputs:\r\n - name: fluentbit_metrics\r\n scrape_interval: 30\r\n scrape_on_start:...
diff --git a/src/config_format/flb_cf_yaml.c b/src/config_format/flb_cf_yaml.c index 3daad835202..172d700d8e8 100644 --- a/src/config_format/flb_cf_yaml.c +++ b/src/config_format/flb_cf_yaml.c @@ -169,6 +169,9 @@ static int add_section_type(struct flb_cf *cf, struct parser_state *s) else if (s->section == SECTION_...
diff --git a/tests/internal/config_format_yaml.c b/tests/internal/config_format_yaml.c index 4bcae842012..126cb4f0899 100644 --- a/tests/internal/config_format_yaml.c +++ b/tests/internal/config_format_yaml.c @@ -11,6 +11,7 @@ #include "flb_tests_internal.h" #define FLB_000 FLB_TESTS_DATA_PATH "/data/config_format/...
{"flb-it-config_format_yaml": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-config_format_yaml": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 113, "failed_count": 10, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-7609
c
mswebench/fluent_m_fluent-bit:pr-7609
fluent
fluent-bit
7504
closed
in_podman_metrics: Fixed reading undefined PID
In case of not found pid file, it took a form of UINT64_MAX, after that plugin tried to read from it (from /proc). Fixed it; Also added alternative path for cgroupsv2 pid file <!-- Provide summary of changes --> I've added a security check for pid == max uint64 (in case of not found pid). In that case all pid-rela...
{"label": "fluent:master", "ref": "master", "sha": "13e9a90946e4cce8f4dfeb77134cca259968752c"}
[{"number": 7340, "title": "Podman input plugin errors because of undefined pointer", "body": "## Bug Report\r\n\r\nI am testing the podman metric plugin on Ubuntu 22.04 and it has errors when trying to gather data. The biggest issue is the undefined pointer that then shows in the logs.\r\n[2023/05/08 15:23:55] [ warn]...
diff --git a/plugins/in_podman_metrics/podman_metrics_config.h b/plugins/in_podman_metrics/podman_metrics_config.h index b7b653ac6f9..fabdc0a8ddb 100644 --- a/plugins/in_podman_metrics/podman_metrics_config.h +++ b/plugins/in_podman_metrics/podman_metrics_config.h @@ -106,6 +106,7 @@ #define V2_SYSFS_FILE_MEMORY_LIMIT...
diff --git a/tests/runtime/data/podman/cgroupv2/18446744073709551615/net/dev b/tests/runtime/data/podman/cgroupv2/42/net/dev similarity index 100% rename from tests/runtime/data/podman/cgroupv2/18446744073709551615/net/dev rename to tests/runtime/data/podman/cgroupv2/42/net/dev diff --git a/tests/runtime/data/podman/cg...
{"flb-rt-in_podman_metrics": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-rt-in_podman_metrics": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 113, "failed_count": 10, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-7504
c
mswebench/fluent_m_fluent-bit:pr-7504
fluent
fluent-bit
7477
closed
multiline: remove incorrect flush
<!-- Provide summary of changes --> we are flushing the stream buffer in case it is different in two consecutive runs, which leads to incorrect parsing of multiline logs where we have messages from different streams (stderr & stdout for ex) interleaved we also update the test case to match the expected output ...
{"label": "fluent:2.0", "ref": "2.0", "sha": "bf20c16ea4a773e2f747ee8353c4386a2af751f0"}
[{"number": 4387, "title": "Multiline feature with built-in CRI parser does not separate streams", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n\r\nWhen a container application produces log messages that are split by the container runtime into multiple parts, and there are log messages written to stdout and st...
diff --git a/src/multiline/flb_ml.c b/src/multiline/flb_ml.c index 5b4ed877fb9..d25db29d33c 100644 --- a/src/multiline/flb_ml.c +++ b/src/multiline/flb_ml.c @@ -232,7 +232,6 @@ static int package_content(struct flb_ml_stream *mst, } else { if (mst->last_stream_group != stream_group) { - fl...
diff --git a/tests/internal/multiline.c b/tests/internal/multiline.c index 667be3237c5..3b7a2916a53 100644 --- a/tests/internal/multiline.c +++ b/tests/internal/multiline.c @@ -110,8 +110,8 @@ struct record_check container_mix_input[] = { struct record_check container_mix_output[] = { {"a1\n"}, {"a2\n"}, - {"bb...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 110, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 109, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-rt-f...
{"passed_count": 110, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-7477
c
mswebench/fluent_m_fluent-bit:pr-7477
fluent
fluent-bit
7378
closed
filter_modify: fix clean up function for cond/rule(#7368)
Fixes #7368 This patch is to - Add `rule_free` to release `struct modify_rule` - Check if valid pointer before releasing - Use `flb_calloc` to initialize members of struct - Add test code for #7368 ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing** Before we can ap...
{"label": "fluent:master", "ref": "master", "sha": "4398840ed586171a154e992496c4a30ef92e5c55"}
[{"number": 7368, "title": "Segv from simple wildcard", "body": "## Bug Report\r\n\r\n**Describe the bug** \r\nSIGSEGV\r\n\r\n**To Reproduce**\r\n```shell\r\n$ docker run -v `pwd`:/foo --rm -it fluent/fluent-bit -c /foo/conf\r\nFluent Bit v2.1.2\r\n* Copyright (C) 2015-2022 The Fluent Bit Authors\r\n* Fluent Bit is a C...
diff --git a/plugins/filter_modify/modify.c b/plugins/filter_modify/modify.c index a1281a2f98f..4bc1a28514b 100644 --- a/plugins/filter_modify/modify.c +++ b/plugins/filter_modify/modify.c @@ -41,24 +41,69 @@ static void condition_free(struct modify_condition *condition) { - flb_sds_destroy(condition->a); - f...
diff --git a/tests/runtime/filter_modify.c b/tests/runtime/filter_modify.c index 6a54ca6b259..ac5a166be75 100644 --- a/tests/runtime/filter_modify.c +++ b/tests/runtime/filter_modify.c @@ -1594,6 +1594,35 @@ static void flb_test_issue_7075() filter_test_destroy(ctx); } +static void flb_test_issue_7368() +{ + ...
{"flb-rt-filter_modify": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-rt-filter_modify": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 113, "failed_count": 10, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-it-multiline", "flb-rt-filt...
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-7378
c
mswebench/fluent_m_fluent-bit:pr-7378
fluent
fluent-bit
7323
closed
parser_json: keep time key when parsing fails
<!-- Provide summary of changes --> This PR will cause the `json` parser to retain the time field if parsing the time key fails. <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> Resolves #7322 ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing**...
{"label": "fluent:master", "ref": "master", "sha": "7c2feae84dbf007db1f87839f530b1af5802ffee"}
[{"number": 7322, "title": "`Time_Key` is dropped even when not parsed successfully in json parser", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nIn the parser configuration docs: https://github.com/fluent/fluent-bit-docs/blob/4f06d31577aa476cf888d2829f94d84e6d1c323d/pipeline/parsers/configuring-parser.md#conf...
diff --git a/src/flb_parser_json.c b/src/flb_parser_json.c index fbab0c714e1..7add06e94fb 100644 --- a/src/flb_parser_json.c +++ b/src/flb_parser_json.c @@ -204,6 +204,7 @@ int flb_parser_json_do(struct flb_parser *parser, flb_warn("[parser:%s] invalid time format %s for '%s'", parser->name, ...
diff --git a/tests/internal/parser_json.c b/tests/internal/parser_json.c index ea2ad6bd2b8..5a9b6eadbfe 100644 --- a/tests/internal/parser_json.c +++ b/tests/internal/parser_json.c @@ -479,6 +479,62 @@ void test_decode_field_json() flb_config_exit(config); } +void test_time_key_kept_if_parse_fails() +{ + st...
{"flb-it-parser_json": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-parser_json": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 113, "failed_count": 10, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 114, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-7323
c
mswebench/fluent_m_fluent-bit:pr-7323
fluent
fluent-bit
7005
closed
sp: prevent converting from string to num if config is set
This patch is to fix #2498 #5629 TODO: add test code. This patch is to support following configuration. |Key|Description|Default| |--|--|--| |sp.convert_from_str_to_num|If enabled, Stream processor converts from number string to number type.|true| ---- Enter `[N/A]` in the box, if an item is not applicab...
{"label": "fluent:master", "ref": "master", "sha": "7fd995072a0e0591888629b39619c5783a5ea047"}
[{"number": 2498, "title": "Stream Processing converts strings to numbers", "body": "## The issue\r\n\r\n> Version 1.4.6 - Ubuntu 18.04\r\n\r\nWe're using fluent-bit to process some Haproxy logs. Using `[PARSER]`, we extract some fields using a regex. By looking at https://github.com/fluent/fluent-bit/pull/310, it seem...
diff --git a/include/fluent-bit/flb_config.h b/include/fluent-bit/flb_config.h index f46faeda30c..bf9e5ffff03 100644 --- a/include/fluent-bit/flb_config.h +++ b/include/fluent-bit/flb_config.h @@ -235,6 +235,7 @@ struct flb_config { #ifdef FLB_HAVE_STREAM_PROCESSOR char *stream_processor_file; /* SP co...
diff --git a/tests/internal/stream_processor.c b/tests/internal/stream_processor.c index 1d77edf9cce..e8635f38cde 100644 --- a/tests/internal/stream_processor.c +++ b/tests/internal/stream_processor.c @@ -23,10 +23,12 @@ #include <fluent-bit/flb_pack.h> #include <fluent-bit/flb_error.h> #include <fluent-bit/flb_rout...
{"flb-rt-in_tail": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{}
{}
{}
{"flb-rt-in_tail": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"passed_count": 110, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 110, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-7005
c
mswebench/fluent_m_fluent-bit:pr-7005
fluent
fluent-bit
6814
closed
out_opensearch: support logstash_prefix_separator
Fixes #6675 This patch is to support `logstash_prefix_separator` of fluentd's plugin. https://github.com/fluent/fluent-plugin-opensearch#logstash_prefix_separator |Name|Description|Default| |---|---|---| |logstash_prefix_separator|Set a separator between logstash_prefix and date.|-| ---- Enter `[N/A]` in ...
{"label": "fluent:master", "ref": "master", "sha": "645fde6a0de6f11ff8094ead0d3582b1897a26d0"}
[{"number": 6675, "title": "Fluentbit: add a log prefix seperator to the Opensearch plugin", "body": "**Is your feature request related to a problem? Please describe.**\r\nI wanted to apply my separator such as `_` when `Logstash_Prefix` is enabled. If Logstash_Prefix is equal to `myindex` then my index will become `my...
diff --git a/plugins/out_es/es.c b/plugins/out_es/es.c index 1fcfbd375ac..db2bcee5bd7 100644 --- a/plugins/out_es/es.c +++ b/plugins/out_es/es.c @@ -233,6 +233,45 @@ static flb_sds_t es_get_id_value(struct flb_elasticsearch *ctx, return tmp_str; } +static int compose_index_header(struct flb_elasticsearch *ctx, ...
diff --git a/tests/runtime/out_elasticsearch.c b/tests/runtime/out_elasticsearch.c index 69abbda5e32..9efe7610a95 100644 --- a/tests/runtime/out_elasticsearch.c +++ b/tests/runtime/out_elasticsearch.c @@ -94,7 +94,24 @@ static void cb_check_logstash_format(void *ctx, int ffd, char *index_line = "{\"create\":{\"_in...
{"flb-rt-out_elasticsearch": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-out_opensearch": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-rt-out_elasticsearch": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-out_opensearch": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 113, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 111, "failed_count": 11, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-...
{"passed_count": 113, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-6814
c
mswebench/fluent_m_fluent-bit:pr-6814
fluent
fluent-bit
6788
closed
out_syslog: add allow_longer_sd_id property
Fixes #6787 RFC 5424 limits a size of SD-ID and PARAM-NAME to 32 characters. https://www.rfc-editor.org/rfc/rfc5424#section-6 If 'sd_allow_longer_sd_id' is true, Fluent-bit allows a SD-ID and PARAM-NAME that is longer than 32 characters. |Name|Description|Default| |--|--|--| |allow_longer_sd_id|If true, ...
{"label": "fluent:master", "ref": "master", "sha": "4c0ca4fc5f28a34ca7d80e18b0d529bf9d07b1c2"}
[{"number": 6787, "title": "Syslog SD ID size greater than 32 chars", "body": "**Is your feature request related to a problem? Please describe.**\r\nWhen using the syslog output I faced a problem related to the size of the SD ID. In fact, fluentbit is compliant with the RFC5424 and limit the size of the SD ID to 32 cha...
diff --git a/plugins/out_syslog/syslog.c b/plugins/out_syslog/syslog.c index 4d6a647388a..a81cdcde353 100644 --- a/plugins/out_syslog/syslog.c +++ b/plugins/out_syslog/syslog.c @@ -357,7 +357,8 @@ static flb_sds_t syslog_rfc3164 (flb_sds_t *s, struct flb_time *tms, return *s; } -static flb_sds_t msgpack_to_sd(f...
diff --git a/tests/runtime/out_syslog.c b/tests/runtime/out_syslog.c index 39dcfcc3bba..aa9edab33c7 100644 --- a/tests/runtime/out_syslog.c +++ b/tests/runtime/out_syslog.c @@ -1494,6 +1494,120 @@ void flb_test_sd_key_rfc5424() test_ctx_destroy(ctx); } +void flb_test_allow_longer_sd_id_rfc5424() +{ + struct ...
{"flb-rt-out_syslog": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-rt-out_syslog": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 110, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 109, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 110, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-6788
c
mswebench/fluent_m_fluent-bit:pr-6788
fluent
fluent-bit
6784
closed
out_http: Fix keepalive
<!-- Provide summary of changes --> Fixes #6783 ---- 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: - [x] Example configuration file for the change - [x] Debug log output from testing the chang...
{"label": "fluent:master", "ref": "master", "sha": "4c0ca4fc5f28a34ca7d80e18b0d529bf9d07b1c2"}
[{"number": 6783, "title": "fluent-bit does not use HTTP keepalive", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nfluent-bit 2.0.8 will not do HTTP keepalive. It does not include the necessary `Connection: keep-alive` header in the request\r\n\r\n**To Reproduce**\r\n\r\n```\r\n% cat > test.conf << EOF\r\n[Serv...
diff --git a/src/flb_http_client.c b/src/flb_http_client.c index d17c45d6b4d..5cb434abad3 100644 --- a/src/flb_http_client.c +++ b/src/flb_http_client.c @@ -1030,7 +1030,7 @@ static void http_headers_destroy(struct flb_http_client *c) int flb_http_set_keepalive(struct flb_http_client *c) { /* check if 'keepalive...
diff --git a/tests/internal/http_client.c b/tests/internal/http_client.c index 3013c75602b..f6d197cc611 100644 --- a/tests/internal/http_client.c +++ b/tests/internal/http_client.c @@ -34,7 +34,7 @@ struct test_ctx* test_ctx_create() return NULL; } - ret_ctx->u = flb_upstream_create(ret_ctx->config, ...
{"flb-it-http_client": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-http_client": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 110, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 109, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
{"passed_count": 110, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-6784
c
mswebench/fluent_m_fluent-bit:pr-6784
fluent
fluent-bit
6693
closed
install: specify version to install script
Resolves #6692 by adding options to specify version to install as well as disabling install entirely (or adding some other prefix command). ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing** Verified we can install version 2.0.6 (as indicated in the original issue): ```sh...
{"label": "fluent:master", "ref": "master", "sha": "76d2d08fdd97d1b5a0ce5563595bddbf82e4e60b"}
[{"number": 6692, "title": "Linux packages script with specific version", "body": "**Is your feature request related to a problem? Please describe.**\r\n<!--- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->\r\nThere is currently a bug on version `2.0.8` which prevents us...
diff --git a/install.sh b/install.sh index ba712fb76c7..316ce42f879 100755 --- a/install.sh +++ b/install.sh @@ -5,6 +5,11 @@ set -e RELEASE_URL=${FLUENT_BIT_PACKAGES_URL:-https://packages.fluentbit.io} RELEASE_KEY=${FLUENT_BIT_PACKAGES_KEY:-$RELEASE_URL/fluentbit.key} +# Optionally specify the version to install +...
diff --git a/packaging/test-release-packages.sh b/packaging/test-release-packages.sh index 13687939a81..8573a32da17 100755 --- a/packaging/test-release-packages.sh +++ b/packaging/test-release-packages.sh @@ -52,6 +52,8 @@ do $CONTAINER_RUNTIME run --rm -t \ -e FLUENT_BIT_PACKAGES_URL="${FLUENT_BIT_PACKAG...
{"flb-rt-in_tail": {"run": "FAIL", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run...
{"flb-rt-in_tail": {"run": "FAIL", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 109, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt...
{"passed_count": 109, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt...
{"passed_count": 110, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-it-regex", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-m...
fluent__fluent-bit-6693
c
mswebench/fluent_m_fluent-bit:pr-6693
fluent
fluent-bit
6358
closed
workflows: handle windows container release
Resolves #6356 by providing a separate job to do the Windows container release so this can run on a Windows runner. Resolves #6357 by using podman which handles systemd and cgroupsv2 much better. ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing** Before we can approve your ...
{"label": "fluent:master", "ref": "master", "sha": "abb65a1f31d71961e5941c13d10b5f4c799d6d6f"}
[{"number": 6357, "title": "AL2022 packages test issue", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nLooks like another failure due to non-GA `$releasever`: https://github.com/fluent/fluent-bit/actions/runs/3417452510/jobs/5690240070\r\n"}]
diff --git a/.github/workflows/staging-release.yaml b/.github/workflows/staging-release.yaml index a2e681feae4..1eaaa5cd0d4 100644 --- a/.github/workflows/staging-release.yaml +++ b/.github/workflows/staging-release.yaml @@ -24,6 +24,9 @@ on: # We also do not want multiples to run for the same version. concurrency: s...
diff --git a/packaging/testing/smoke/packages/Dockerfile.amazonlinux2 b/packaging/testing/smoke/packages/Dockerfile.amazonlinux2 index b8f04befbf7..c9025da61a4 100644 --- a/packaging/testing/smoke/packages/Dockerfile.amazonlinux2 +++ b/packaging/testing/smoke/packages/Dockerfile.amazonlinux2 @@ -1,11 +1,11 @@ # For st...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 104, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 103, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout",...
{"passed_count": 104, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
fluent__fluent-bit-6358
c
mswebench/fluent_m_fluent-bit:pr-6358
fluent
fluent-bit
6347
closed
env: increase temp buffer size(#6313)
Fixes #6313 The issue exposed by strict checking patch https://github.com/fluent/fluent-bit/pull/6152 However the root cause is small temporary buffer size.(=64 bytes) If a size of environment value name exceeds the buffer size, the variable is not translated. ---- Enter `[N/A]` in the box, if an item i...
{"label": "fluent:master", "ref": "master", "sha": "326c0c1f949d992900b92b93dc8840d8c555e6c5"}
[{"number": 6313, "title": "[2.0.0] length of environment variable keys are limited more restrictiv", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n<!--- A clear and concise description of what the bug is. -->\r\nWith the upgrade to fluentbit 2.0.0 it seems that the variables templating is not working anymore w...
diff --git a/src/flb_env.c b/src/flb_env.c index 019cadd79c6..3b9158095a8 100644 --- a/src/flb_env.c +++ b/src/flb_env.c @@ -168,7 +168,7 @@ flb_sds_t flb_env_var_translate(struct flb_env *env, const char *value) const char *env_var = NULL; char *v_start = NULL; char *v_end = NULL; - char tmp[64]; + ...
diff --git a/tests/internal/CMakeLists.txt b/tests/internal/CMakeLists.txt index 69527589c14..75c96fbfefb 100644 --- a/tests/internal/CMakeLists.txt +++ b/tests/internal/CMakeLists.txt @@ -31,6 +31,7 @@ set(UNIT_TESTS_FILES bucket_queue.c flb_event_loop.c ring_buffer.c + env.c ) # Config format diff --g...
{"flb-it-env": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-env": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 102, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 102, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 103, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
fluent__fluent-bit-6347
c
mswebench/fluent_m_fluent-bit:pr-6347
fluent
fluent-bit
6319
closed
parser: fix time zone offsets being dropped on Windows
<!-- Provide summary of changes --> Fix time zone offsets being lost on Windows when parsing time stamps. <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> Fixes #2941. ---- **Testing** Before we can approve your change; please submit the following in a comment: - [x] Example conf...
{"label": "fluent:master", "ref": "master", "sha": "7634d9f73278e08cbbb52dc90cd34984653173db"}
[{"number": 2941, "title": "Parser ignoring timezone", "body": "I'm using windows release td-agent-bit-1.6.10-win32. The parser is ignoring the timezone set in the logs.\r\n\r\nHere a simple example using the default apache parser:\r\n```\r\n[PARSER]\r\n Name apache\r\n Format regex\r\n Regex ^(?<host>[^ ]*...
diff --git a/include/fluent-bit/flb_parser.h b/include/fluent-bit/flb_parser.h index 869497785ce..eeb7c412bed 100644 --- a/include/fluent-bit/flb_parser.h +++ b/include/fluent-bit/flb_parser.h @@ -73,17 +73,13 @@ enum { FLB_PARSER_TYPE_HEX, }; -static inline time_t flb_parser_tm2time(const struct tm *src) +stat...
diff --git a/tests/runtime/filter_parser.c b/tests/runtime/filter_parser.c index bd0fe8a3bb6..e9cb6d6ec26 100644 --- a/tests/runtime/filter_parser.c +++ b/tests/runtime/filter_parser.c @@ -385,6 +385,86 @@ void flb_test_filter_parser_handle_time_key_with_fractional_timestamp() flb_destroy(ctx); } +void flb_test...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 101, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 100, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout",...
{"passed_count": 101, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
fluent__fluent-bit-6319
c
mswebench/fluent_m_fluent-bit:pr-6319
fluent
fluent-bit
6209
closed
filter_record_modifier: fix ignoring whitelist_keys (#6200)
Fixes #6200 This patch is to allow `Whitelist_keys` for compatibility. ---- 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: - [X] Example configuration file for the change - [X] Debug log output...
{"label": "fluent:master", "ref": "master", "sha": "095d090aeb6d3dffac5d5aca337183b0d9726d1a"}
[{"number": 6200, "title": "Whitelist_key not accepted as an alias for Allowlist_key in Fluent Bit 1.9.6+", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nOur Fluent Bit configuration file includes a **RecordModifier** filter which uses **Whitelist_key** to limit which fields are output. This has worked fine fo...
diff --git a/plugins/filter_record_modifier/filter_modifier.c b/plugins/filter_record_modifier/filter_modifier.c index 078e118bc5e..779018fbb6e 100644 --- a/plugins/filter_record_modifier/filter_modifier.c +++ b/plugins/filter_record_modifier/filter_modifier.c @@ -43,7 +43,7 @@ static int config_allowlist_key(struct re...
diff --git a/tests/runtime/filter_record_modifier.c b/tests/runtime/filter_record_modifier.c index de9b553c9f6..4421593f69d 100644 --- a/tests/runtime/filter_record_modifier.c +++ b/tests/runtime/filter_record_modifier.c @@ -224,6 +224,52 @@ static void flb_allowlist_keys() filter_test_destroy(ctx); } +static v...
{"flb-rt-filter_record_modifier": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-rt-filter_record_modifier": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 101, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 100, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 101, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
fluent__fluent-bit-6209
c
mswebench/fluent_m_fluent-bit:pr-6209
fluent
fluent-bit
6169
closed
multiline: ruby: support built-in ruby parser
Fixes #6050 This patch is to support multiline parser for ruby backtrace. ---- 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: - [X] Example configuration file for the change - [X] Debug log o...
{"label": "fluent:master", "ref": "master", "sha": "e7c567cfc861e0f658ddb234db6c3c065144383e"}
[{"number": 6050, "title": "Documentation shows built-in parser for ruby but this does not work", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nDocumentation shows built-in parser for `ruby` but this is not the case for `multiline.parser`\r\n\r\n**To Reproduce**\r\n1. https://docs.fluentbit.io/manual/pipeline/f...
diff --git a/include/fluent-bit/multiline/flb_ml_parser.h b/include/fluent-bit/multiline/flb_ml_parser.h index c1fbd73bafb..e1c3a52847f 100644 --- a/include/fluent-bit/multiline/flb_ml_parser.h +++ b/include/fluent-bit/multiline/flb_ml_parser.h @@ -52,6 +52,7 @@ struct flb_ml_parser *flb_ml_parser_docker(struct flb_con...
diff --git a/tests/internal/multiline.c b/tests/internal/multiline.c index c909c1bbda1..660be62326c 100644 --- a/tests/internal/multiline.c +++ b/tests/internal/multiline.c @@ -146,6 +146,28 @@ struct record_check java_output[] = { } }; +struct record_check ruby_input[] = { + {"/app/config/routes.rb:6:in `/': ...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 100, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 99, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-rt-filter_stdout", "f...
{"passed_count": 100, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
fluent__fluent-bit-6169
c
mswebench/fluent_m_fluent-bit:pr-6169
fluent
fluent-bit
6040
closed
out_loki: support label_map_path
Fixes #5996 See also https://github.com/grafana/loki/issues/4648#issuecomment-1223622156 This patch is to port `LabelMapPath` of go-loki plugin. https://grafana.com/docs/loki/latest/clients/fluentbit/#labelmappath This patch is to 1. Adds `flb_sds_list` to handle a string list 2. Loads json file and conver...
{"label": "fluent:master", "ref": "master", "sha": "e2c524ba7bf0487ba3df569cce8855cb753f084a"}
[{"number": 5996, "title": "out_loki: support LabelMapPath ", "body": "**Is your feature request related to a problem? Please describe.**\r\n<!--- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->\r\n\r\nRequested at \r\nhttps://github.com/grafana/loki/issues/4648#issuecom...
diff --git a/include/fluent-bit/flb_record_accessor.h b/include/fluent-bit/flb_record_accessor.h index 4687642fb96..e35923e52c7 100644 --- a/include/fluent-bit/flb_record_accessor.h +++ b/include/fluent-bit/flb_record_accessor.h @@ -22,6 +22,8 @@ #include <fluent-bit/flb_info.h> #include <fluent-bit/flb_regex.h> +#...
diff --git a/tests/internal/CMakeLists.txt b/tests/internal/CMakeLists.txt index 37c941ffba8..f3bf217e18f 100644 --- a/tests/internal/CMakeLists.txt +++ b/tests/internal/CMakeLists.txt @@ -6,6 +6,7 @@ set(UNIT_TESTS_FILES pack.c pipe.c sds.c + sds_list.c hmac.c crypto.c hash.c diff --git a/tests/inte...
{"flb-rt-in_tail": {"run": "FAIL", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{}
{}
{}
{"flb-rt-in_tail": {"run": "FAIL", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"passed_count": 99, "failed_count": 10, "skipped_count": 0, "passed_tests": ["flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-m...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 101, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-conf...
fluent__fluent-bit-6040
c
mswebench/fluent_m_fluent-bit:pr-6040
fluent
fluent-bit
5956
closed
backports: small backports for v1.9.8
null
{"label": "fluent:1.9", "ref": "1.9", "sha": "36c36d2a3f1c4c3b5ed79ecb91333bf127e01c01"}
[{"number": 5504, "title": "Multiline last line doesn't get flushed", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nI am using Forward input with Multiline to parse together a stacktrace in a single message. Once the stacktrace is done being parsed, a new log entry is sent (being matched by the parser `start_st...
diff --git a/include/fluent-bit/multiline/flb_ml.h b/include/fluent-bit/multiline/flb_ml.h index bae7acccba7..19f8d90942d 100644 --- a/include/fluent-bit/multiline/flb_ml.h +++ b/include/fluent-bit/multiline/flb_ml.h @@ -258,7 +258,7 @@ struct flb_ml_group { struct flb_ml { flb_sds_t name; /* name ...
diff --git a/tests/internal/multiline.c b/tests/internal/multiline.c index 02a3a257f9d..c909c1bbda1 100644 --- a/tests/internal/multiline.c +++ b/tests/internal/multiline.c @@ -1287,6 +1287,90 @@ static void test_issue_4034() flb_config_exit(config); } +static void test_issue_5504() +{ + uint64_t last_flush;...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-filter_multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-filter_multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 95, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 93, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp",...
{"passed_count": 95, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5956
c
mswebench/fluent_m_fluent-bit:pr-5956
fluent
fluent-bit
5944
closed
ra_key: save value when the data type is array(#5936)
Fixes #5936 `subkey_to_object` doesn't save a value if the last element is an array. Therefore, we can't get like `$key['nest'][1]` This patch is to save it. ---- 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 follo...
{"label": "fluent:master", "ref": "master", "sha": "a04fa91dfdffcd76735032d73edd4453edade947"}
[{"number": 5936, "title": "[Filter Grep] Does not work with string array", "body": "Hi. I filter with grep as below\r\n\r\nInput\r\n\r\n```\r\n{\r\n \"method\": \"GET\",\r\n \"requestHeader\": {\r\n \"User-Agent\": [\r\n \"mydevice\"\r\n ]\r\n }\r\n}\r\n```\r\n\r\nFilter\r\n\r\n```\r\n[FILTER]\r\n Name...
diff --git a/src/flb_ra_key.c b/src/flb_ra_key.c index f133b5a002b..613e02ce834 100644 --- a/src/flb_ra_key.c +++ b/src/flb_ra_key.c @@ -150,7 +150,9 @@ static int subkey_to_object(msgpack_object *map, struct mk_list *subkeys, return -1; } - cur = cur.via.array.ptr[entry->arra...
diff --git a/tests/internal/record_accessor.c b/tests/internal/record_accessor.c index 49e812ac7be..16b31495dce 100644 --- a/tests/internal/record_accessor.c +++ b/tests/internal/record_accessor.c @@ -1496,6 +1496,71 @@ void cb_ra_translate_check() msgpack_unpacked_destroy(&result); } +/* + * https://github.com...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 99, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 98, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 99, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5944
c
mswebench/fluent_m_fluent-bit:pr-5944
fluent
fluent-bit
5937
closed
multiline: fix flush timeout logic (fixes #5504)
Logic for checking if it is too early to flush in the multiline timer callback was inverted. You want to ignore flushing in the timer callback if the last flush plus the timeout is after now time and not before. fixes #5504 ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing...
{"label": "fluent:master", "ref": "master", "sha": "dbabb729006f923583dd1efd89d8565ee20fed4a"}
[{"number": 5504, "title": "Multiline last line doesn't get flushed", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nI am using Forward input with Multiline to parse together a stacktrace in a single message. Once the stacktrace is done being parsed, a new log entry is sent (being matched by the parser `start_st...
diff --git a/src/multiline/flb_ml.c b/src/multiline/flb_ml.c index b7f59cd62e0..1961c07e9b1 100644 --- a/src/multiline/flb_ml.c +++ b/src/multiline/flb_ml.c @@ -151,7 +151,7 @@ static void cb_ml_flush_timer(struct flb_config *ctx, void *data) struct flb_ml *ml = data; now = time_ms_now(); - if (ml->last_...
diff --git a/tests/internal/multiline.c b/tests/internal/multiline.c index 02a3a257f9d..c909c1bbda1 100644 --- a/tests/internal/multiline.c +++ b/tests/internal/multiline.c @@ -1287,6 +1287,90 @@ static void test_issue_4034() flb_config_exit(config); } +static void test_issue_5504() +{ + uint64_t last_flush;...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-filter_multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-filter_multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 99, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 97, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp",...
{"passed_count": 99, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5937
c
mswebench/fluent_m_fluent-bit:pr-5937
fluent
fluent-bit
5881
closed
cf_fluentbit: report undefined value error(#5880)
Fixes #5880 This patch is to report undefined value error. ---- 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: - [X] Example configuration file for the change - [X] Debug log output from test...
{"label": "fluent:master", "ref": "master", "sha": "50087cac0af5d771cdd07401e4178c9f0cdf8354"}
[{"number": 5880, "title": "1.9.7 config errors are misleading and mention classic mode unnecessarily", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n\r\nIf you have an invalid config you get this error now:\r\n\r\n```\r\n[2022/08/12 21:32:51] [error] [config] error in /fluent-bit/etc/fluent-bit.conf:9: undefin...
diff --git a/src/config_format/flb_cf_fluentbit.c b/src/config_format/flb_cf_fluentbit.c index a10af7c7640..9dffc285343 100644 --- a/src/config_format/flb_cf_fluentbit.c +++ b/src/config_format/flb_cf_fluentbit.c @@ -603,10 +603,14 @@ static int read_config(struct flb_cf *cf, struct local_ctx *ctx, key = buf +...
diff --git a/tests/internal/config_format_fluentbit.c b/tests/internal/config_format_fluentbit.c index f2a368f0b50..2791793c433 100644 --- a/tests/internal/config_format_fluentbit.c +++ b/tests/internal/config_format_fluentbit.c @@ -4,10 +4,15 @@ #include <fluent-bit/flb_mem.h> #include <fluent-bit/flb_kv.h> #includ...
{"flb-it-config_format_fluentbit": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-it-config_format_fluentbit": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 98, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 97, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 98, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5881
c
mswebench/fluent_m_fluent-bit:pr-5881
fluent
fluent-bit
5623
closed
out_stackdriver: introduce an API for generically assigning resource labels
<!-- Provide summary of changes --> In the past, supporting a new monitored resource type required writing a LUA script or adding a specific configuration parameter with custom logic in the plugin. This process can be tedious and often results in redundant code. This change introduces a configuration parameter `res...
{"label": "fluent:master", "ref": "master", "sha": "0c41d2bf1a63a1b83a0323b2c87024537cbaad59"}
[{"number": 5525, "title": "out_stackdriver: Introduce an API for Generically Assigning Resource Labels", "body": "**Objective**\r\n\r\nTo introduce a generic mechanism for assigning fields into the resource/labels section with different ways to the Stackdriver output plugin by adding a configuration parameter.\r\n\r\n...
diff --git a/plugins/out_stackdriver/CMakeLists.txt b/plugins/out_stackdriver/CMakeLists.txt index 9c80c7a2d9e..2d7fa71bb70 100644 --- a/plugins/out_stackdriver/CMakeLists.txt +++ b/plugins/out_stackdriver/CMakeLists.txt @@ -7,6 +7,7 @@ set(src stackdriver_http_request.c stackdriver_timestamp.c stackdriver_hel...
diff --git a/tests/runtime/data/stackdriver/stackdriver_test_resource_labels.h b/tests/runtime/data/stackdriver/stackdriver_test_resource_labels.h new file mode 100644 index 00000000000..a65a4714049 --- /dev/null +++ b/tests/runtime/data/stackdriver/stackdriver_test_resource_labels.h @@ -0,0 +1,37 @@ +/* -*- Mode: C; t...
{"flb-rt-out_stackdriver": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-rt-out_stackdriver": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 94, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 93, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 94, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5623
c
mswebench/fluent_m_fluent-bit:pr-5623
fluent
fluent-bit
5590
closed
mp: sort flb_record_accessor by a number of subkeys(#5546)
Fixes #5546 out_loki tries to remove key/value using flb_mp_accessor_keys_remove. The API needs a key lists to indicate which key should be removed. I tested the API and I found that the list should be sorted if it is passed nested key/value. However the lists is not sorted at current master. It may not work i...
{"label": "fluent:master", "ref": "master", "sha": "5706adb7ee3391decf0d750673b4042cb407df3e"}
[{"number": 5546, "title": "Loki Output - remove_keys skipped if used in labels", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nUsing Loki output, `remove_keys` don't work as expected when values within `remove_keys` are used by `labels`\r\n\r\nusing `fluent/fluent-bit:1.9.4`\r\n\r\n**To Reproduce**\r\n\r\n```y...
diff --git a/include/fluent-bit/flb_record_accessor.h b/include/fluent-bit/flb_record_accessor.h index e35923e52c7..8dbcce3ea88 100644 --- a/include/fluent-bit/flb_record_accessor.h +++ b/include/fluent-bit/flb_record_accessor.h @@ -34,6 +34,7 @@ struct flb_record_accessor { struct mk_list _head; /* Head to...
diff --git a/tests/internal/mp.c b/tests/internal/mp.c index e41a7a92a75..3d04d0fa663 100644 --- a/tests/internal/mp.c +++ b/tests/internal/mp.c @@ -145,9 +145,209 @@ void test_accessor_keys_remove() msgpack_unpacked_destroy(&result); } +/* https://github.com/fluent/fluent-bit/issues/5546 */ +void test_keys_rem...
{"flb-it-mp": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "in_syslog_tcp_tls_expect.sh": {"run"...
{"flb-it-mp": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 102, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 101, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
{"passed_count": 102, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "in_syslog_tcp_tls_expect.sh", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-...
fluent__fluent-bit-5590
c
mswebench/fluent_m_fluent-bit:pr-5590
fluent
fluent-bit
5534
closed
utils: seek atmark from tail (#5530)
Fixes #5530. User can set a password that contains '@'. If we seek '@' from head to get proxy host, we will fail to split password. e.g. `http://example_user:example_pass_w_@_char@proxy.com:8080` The password should be `example_pass_w_@_char`. However fluent-bit get 'example_pass_w_' as a password. Th...
{"label": "fluent:master", "ref": "master", "sha": "dc2570cf45e3e309f1b17bf8858dd3d47438cdbe"}
[{"number": 5530, "title": "Unable to use @ character in proxy password - url-encoding not supported", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nIf a user wishes to use Fluent-Bit through a proxy with basic authentication, this can be set through the HTTP_PROXY environment variable. This can be seen from th...
diff --git a/src/flb_utils.c b/src/flb_utils.c index 0c18f91e941..6905ed97cab 100644 --- a/src/flb_utils.c +++ b/src/flb_utils.c @@ -1037,7 +1037,7 @@ int flb_utils_proxy_url_split(const char *in_url, char **out_protocol, proto_sep += 3; /* Seperate `username:password` and `host:port` */ - at_sep = strch...
diff --git a/tests/internal/utils.c b/tests/internal/utils.c index 41a7ab89676..eb875cf8032 100644 --- a/tests/internal/utils.c +++ b/tests/internal/utils.c @@ -375,6 +375,9 @@ struct proxy_url_check proxy_url_checks[] = { "http", "proxy.com", "80", NULL, NULL}, {0, "http://proxy.com:8080", "http", "pr...
{"flb-it-utils": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-it-utils": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 92, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 91, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 92, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5534
c
mswebench/fluent_m_fluent-bit:pr-5534
fluent
fluent-bit
5511
closed
in_forward: support unix_perm
Fixes #5483 This patch is to support `unix_perm` to set a permission for unix socket like `in_syslog`. Default value is not set since default permission depends on OS default in the current implementation. | Key | Description ...
{"label": "fluent:master", "ref": "master", "sha": "1e6fe03f5c4596d53e178c0fc15de158be07cb79"}
[{"number": 5483, "title": "in_forward unix socket default permission", "body": "I want to set the permissions of the in_forward socket file in the same way as the in_syslog \"unix_perm\" option.\r\n\r\nCurrently, the permissions are changed from 755 to 666 after startup.\r\n\r\n**Expected behavior**\r\n```\r\n[INPUT]\...
diff --git a/plugins/in_forward/fw.c b/plugins/in_forward/fw.c index 9fd969cd05f..0c2ef0737ff 100644 --- a/plugins/in_forward/fw.c +++ b/plugins/in_forward/fw.c @@ -26,6 +26,7 @@ #ifdef FLB_HAVE_UNIX_SOCKET #include <sys/socket.h> #include <sys/un.h> +#include <sys/stat.h> #endif #include "fw.h" @@ -60,6 +61,16 ...
diff --git a/tests/runtime/in_forward.c b/tests/runtime/in_forward.c index 60ca03efda5..fdf61da78fc 100644 --- a/tests/runtime/in_forward.c +++ b/tests/runtime/in_forward.c @@ -459,6 +459,110 @@ void flb_test_unix_path() flb_socket_close(fd); test_ctx_destroy(ctx); } + + +void flb_test_unix_perm() +{ + st...
{"flb-rt-in_forward": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-rt-in_forward": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 91, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 90, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", ...
{"passed_count": 91, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5511
c
mswebench/fluent_m_fluent-bit:pr-5511
fluent
fluent-bit
5503
closed
filter_lua: Fix record split in mpack implementation
Fix the mpack implementation of lua, which didn't handle record splitting. Fix #5496 Signed-off-by: Thiago Padilha <thiago@calyptia.com>
{"label": "fluent:master", "ref": "master", "sha": "1e6fe03f5c4596d53e178c0fc15de158be07cb79"}
[{"number": 5496, "title": "Can't split record with lua filter", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nThe record split on lua filter isn't working for me. I tried to follow the steps on [docs](https://docs.fluentbit.io/manual/pipeline/filters/lua#record-split) to return a list of records, but it's alwa...
diff --git a/include/fluent-bit/flb_lua.h b/include/fluent-bit/flb_lua.h index 067613513e0..390a3bcba10 100644 --- a/include/fluent-bit/flb_lua.h +++ b/include/fluent-bit/flb_lua.h @@ -47,6 +47,7 @@ struct flb_lua_l2c_config { struct mk_list l2c_types; /* data types (lua -> C) */ }; +int flb_lua_arraylength(lu...
diff --git a/tests/runtime/filter_lua.c b/tests/runtime/filter_lua.c index 6115498e4d8..a0663a2d6d2 100644 --- a/tests/runtime/filter_lua.c +++ b/tests/runtime/filter_lua.c @@ -97,6 +97,18 @@ int callback_test(void* data, size_t size, void* cb_data) return 0; } +int callback_cat(void* data, size_t size, void* c...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 91, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 90, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 91, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5503
c
mswebench/fluent_m_fluent-bit:pr-5503
fluent
fluent-bit
5412
closed
pack: modify to determine how many JSON messages are OK(#5336)
Fixes #5336 Root cause: https://github.com/fluent/fluent-bit/issues/5336#issuecomment-1115513183 `jsmn_parse` updates `jsmn_parser` members even if a JSON is incomplete. (state->parser is updated) In this case, a member `toknext` points next incomplete object token. This patch is to use `toknext` as an index o...
{"label": "fluent:master", "ref": "master", "sha": "26926608acf30e438ba0b84b1ed1dc3554c557b3"}
[{"number": 5336, "title": "TCP input plugin dropping records", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nThe 1.9.x releases contain a regression that makes TCP input plugin dropping records. The actual breaking commit is [f3ac138b0](https://github.com/fluent/fluent-bit/commit/f3ac138b0)\r\n\r\n**To Reprodu...
diff --git a/src/flb_pack.c b/src/flb_pack.c index 1adea691ede..249b075ee94 100644 --- a/src/flb_pack.c +++ b/src/flb_pack.c @@ -361,24 +361,33 @@ int flb_pack_json_state(const char *js, size_t len, * are OK in the array of tokens, if any, process them and adjust * the JSMN context/buffers. ...
diff --git a/tests/internal/pack.c b/tests/internal/pack.c index 4b635394c00..4b1ec0d6dc5 100644 --- a/tests/internal/pack.c +++ b/tests/internal/pack.c @@ -634,6 +634,154 @@ void test_json_pack_bug1278() } } +static int check_msgpack_val(msgpack_object obj, int expected_type, char *expected_val) +{ + int le...
{"flb-it-pack": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-in_tcp": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-it-pack": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-rt-in_tcp": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 90, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 88, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 90, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5412
c
mswebench/fluent_m_fluent-bit:pr-5412
fluent
fluent-bit
5271
closed
filter_lua: add return for discarding all records (#5251)
Fixes #5251 If a length of ctx->packbuf is 0, it means all records are dropped. In this case, the plugin should return FLB_FILTER_MODIFIED and out_bytes should be 0. ---- 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...
{"label": "fluent:master", "ref": "master", "sha": "39e6797bc802a08fa6fecc129f49dd6a3ce87690"}
[{"number": 5251, "title": "Lua Filter produces \"failed to allocate outbuf\"", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nUsing the debug container in combination with a LUA filter (including the script example) produces an error:\r\n```\r\n[2022/04/06 12:49:40] [error] [filter:lua:lua.0] failed to allocate...
diff --git a/plugins/filter_lua/lua.c b/plugins/filter_lua/lua.c index 76ef0afebdd..af08e134db2 100644 --- a/plugins/filter_lua/lua.c +++ b/plugins/filter_lua/lua.c @@ -263,6 +263,13 @@ static int cb_lua_filter_mpack(const void *data, size_t bytes, mpack_writer_destroy(&writer); } + if (flb_sds_len(c...
diff --git a/tests/runtime/filter_lua.c b/tests/runtime/filter_lua.c index 4a564634d92..fa2b070438a 100644 --- a/tests/runtime/filter_lua.c +++ b/tests/runtime/filter_lua.c @@ -28,6 +28,7 @@ pthread_mutex_t result_mutex = PTHREAD_MUTEX_INITIALIZER; char *output = NULL; +int num_output = 0; void set_output(char ...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 88, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 87, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 88, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-5271
c
mswebench/fluent_m_fluent-bit:pr-5271
fluent
fluent-bit
5234
closed
time: set ext type 0 as event time(#5215)
Fixes #5215 filter_lua uses mpack as backend from v1.9.0 Then it uses `flb_time_append_to_mpack` to write flb_time. However `flb_time_append_to_mpack` uses ext type and its type is 8. The type of event time should be 0. https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#eventtime-ext-for...
{"label": "fluent:master", "ref": "master", "sha": "3adc7df7cceeeec67597d9e7d6c5c03741000026"}
[{"number": 5215, "title": "lua script from https://docs.fluentbit.io/manual/pipeline/filters/lua generate broken msgpack", "body": "## Bug Report\r\n\r\n\r\nA simple lua script in FILTER section results the data sent via OUTPUT forward section to fluentd error \r\n\r\n`error_class=MessagePack::UnknownExtTypeError ...
diff --git a/src/flb_time.c b/src/flb_time.c index 545e5bc8442..ac064b8f773 100644 --- a/src/flb_time.c +++ b/src/flb_time.c @@ -183,7 +183,9 @@ int flb_time_append_to_mpack(mpack_writer_t *writer, struct flb_time *tm, int fm memcpy(&ext_data, &tmp, 4); tmp = htonl((uint32_t)tm->tm.tv_nsec);/* nanosec...
diff --git a/tests/internal/flb_time.c b/tests/internal/flb_time.c index 46709a2b785..6fca4833397 100644 --- a/tests/internal/flb_time.c +++ b/tests/internal/flb_time.c @@ -20,6 +20,7 @@ #include <fluent-bit.h> #include <fluent-bit/flb_time.h> +#include <mpack/mpack.h> #include "flb_tests_internal.h" @@ -38,7 ...
{"flb-it-flb_time": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS"...
{"flb-it-flb_time": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 84, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
{"passed_count": 83, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
{"passed_count": 84, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
fluent__fluent-bit-5234
c
mswebench/fluent_m_fluent-bit:pr-5234
fluent
fluent-bit
5230
closed
filter_grep: support config map(#5209)
Fixes #5209 This is to fix regression issue #5209. Previous config map patch #4872 ignores /REGEX/ style. This patch is * Revert previous config map patch #4872 * Modify to support the above style * Enrich test cases. ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing...
{"label": "fluent:master", "ref": "master", "sha": "3adc7df7cceeeec67597d9e7d6c5c03741000026"}
[{"number": 5209, "title": "Grep filter error: invalid regex, expected field and regular expression", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n<!--- A clear and concise description of what the bug is. -->\r\n\r\nUsing grep filter that worked before version 1.9 now throws an error:\r\n```\r\n[2022/03/29 12:...
diff --git a/plugins/filter_grep/grep.c b/plugins/filter_grep/grep.c index ab3d8af0158..e23700d2761 100644 --- a/plugins/filter_grep/grep.c +++ b/plugins/filter_grep/grep.c @@ -51,76 +51,94 @@ static void delete_rules(struct grep_ctx *ctx) } } -static int set_rules(struct grep_ctx *ctx, struct flb_filter_instan...
diff --git a/tests/runtime/filter_grep.c b/tests/runtime/filter_grep.c index 9eeb4218dcd..39b107445dd 100644 --- a/tests/runtime/filter_grep.c +++ b/tests/runtime/filter_grep.c @@ -11,6 +11,47 @@ void flb_test_filter_grep_regex(void); void flb_test_filter_grep_exclude(void); void flb_test_filter_grep_invalid(void); ...
{"flb-rt-filter_grep": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS"...
{"flb-rt-filter_grep": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 84, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
{"passed_count": 83, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
{"passed_count": 84, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
fluent__fluent-bit-5230
c
mswebench/fluent_m_fluent-bit:pr-5230
fluent
fluent-bit
4990
closed
multiline: java: modify start_state to ignore 'Exception:' at the beginning of line.
Fixes #4949 This patch is to ignore 'Exception:' at the beginning of line. I'm not familiar with java exception logs. If it outputs 'Exception:' at the begging of line, this patch makes ignoring such java real exception log. ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **T...
{"label": "fluent:master", "ref": "master", "sha": "cc1280b161c0e9249deb9eee5b51dd5c86f6f299"}
[{"number": 4949, "title": "multiline parser missbehave on mixed logs", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nWhen mixed langs (i.e., java + python) are consumed from a log file, the parser fails.\r\n\r\n**To Reproduce**\r\n\r\n- Example log message if applicable:\r\n```\r\nJul 09, 2015 3:23:29 PM com.g...
diff --git a/src/multiline/flb_ml_parser_java.c b/src/multiline/flb_ml_parser_java.c index 58ae82beaa6..4df5a00f744 100644 --- a/src/multiline/flb_ml_parser_java.c +++ b/src/multiline/flb_ml_parser_java.c @@ -58,7 +58,7 @@ struct flb_ml_parser *flb_ml_parser_java(struct flb_config *config, char *key) ret = rule(...
diff --git a/tests/internal/multiline.c b/tests/internal/multiline.c index b24e8285330..02a3a257f9d 100644 --- a/tests/internal/multiline.c +++ b/tests/internal/multiline.c @@ -728,6 +728,73 @@ static void test_parser_python() flb_config_exit(config); } +static void test_issue_4949() +{ + int i; + int len...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_placeholder": {"run": "PASS", "test":...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 82, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
{"passed_count": 81, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-f...
{"passed_count": 82, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-i...
fluent__fluent-bit-4990
c
mswebench/fluent_m_fluent-bit:pr-4990
fluent
fluent-bit
4935
closed
record_accessor: revert record_accessor: allow dot
Fixes #4917 This patch is to revert https://github.com/fluent/fluent-bit/commit/9dd1cbc6527b0f5cd162c0885d36e3dbfd44de76. The commit is one of #4619 and it causes regression #4917. The commit is to fix #4370 so if this PR is merged #4370 will be re-opened. We need to take care #4616 or other way to fix #4370. ...
{"label": "fluent:master", "ref": "master", "sha": "1602d81664c69dcb79c9459bbf32fbbb0a13a093"}
[{"number": 4370, "title": "Record Accessor not recognize key that contains special characters", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nRecord Accessor not recognize key that contains special characters, e.g. `logging.googleapis.com/severity`\r\nhttps://docs.fluentbit.io/manual/administration/configuring...
diff --git a/src/flb_record_accessor.c b/src/flb_record_accessor.c index 3ee3e4f2bd3..287e6f9a24b 100644 --- a/src/flb_record_accessor.c +++ b/src/flb_record_accessor.c @@ -181,7 +181,7 @@ static int ra_parse_buffer(struct flb_record_accessor *ra, flb_sds_t buf) /* ignore '.' if it is inside a string/s...
diff --git a/tests/internal/record_accessor.c b/tests/internal/record_accessor.c index bf3f88af3fe..9b80b8328cd 100644 --- a/tests/internal/record_accessor.c +++ b/tests/internal/record_accessor.c @@ -616,15 +616,92 @@ void cb_key_order_lookup() flb_free(out_buf); } +void cb_issue_4917() +{ + int len; + i...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_placeholder": {"run": "PASS", "test":...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 80, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-filt...
{"passed_count": 79, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-filt...
{"passed_count": 80, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-filt...
fluent__fluent-bit-4935
c
mswebench/fluent_m_fluent-bit:pr-4935
fluent
fluent-bit
4799
closed
filter_rewrite_tag: keep not matched record (#4793)
Fixes #4793. This patch is - Add test code for filter_rewrite_tag - Fix #4793 We drops some records when `keep` is `FLB_FALSE` and the records don't match regex. https://github.com/fluent/fluent-bit/commit/711da35fb12890625e0e51c3d2caf0a9e649aedd However we should keep them to pass next plugin. On the ...
{"label": "fluent:master", "ref": "master", "sha": "66a6938ea12d42f45718155ab9cac72f0d62cba7"}
[{"number": 4793, "title": "rewrite_tag behaviour broken after 1.8.8", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n**rewrite_tag** filter when used with Rule that drops matched records from further processing also drops other records that were not matched. This happens only after version 1.8.8 . With \r\n\r\n...
diff --git a/plugins/filter_rewrite_tag/rewrite_tag.c b/plugins/filter_rewrite_tag/rewrite_tag.c index 03d617bbe45..93645414df9 100644 --- a/plugins/filter_rewrite_tag/rewrite_tag.c +++ b/plugins/filter_rewrite_tag/rewrite_tag.c @@ -312,7 +312,7 @@ static int cb_rewrite_tag_init(struct flb_filter_instance *ins, */ s...
diff --git a/tests/runtime/CMakeLists.txt b/tests/runtime/CMakeLists.txt index 1b918298560..7d41cba41fa 100644 --- a/tests/runtime/CMakeLists.txt +++ b/tests/runtime/CMakeLists.txt @@ -38,6 +38,7 @@ if(FLB_IN_LIB AND FLB_OUT_LIB) FLB_RT_TEST(FLB_FILTER_THROTTLE "filter_throttle.c") FLB_RT_TEST(FLB_FILTER_T...
{"flb-rt-filter_rewrite_tag": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_placeholder": {"run": "PASS", "test":...
{"flb-rt-filter_rewrite_tag": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 77, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-filt...
{"passed_count": 77, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-filt...
{"passed_count": 78, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-config_map", "flb-it-mp", "flb-rt-out_stdout", "flb-it-signv4", "flb-rt-filt...
fluent__fluent-bit-4799
c
mswebench/fluent_m_fluent-bit:pr-4799
fluent
fluent-bit
4619
closed
ra: allow / and .
Fixes #4370 This patch is to allow / and . as a record accessor key character. e.g. `logging.googleapis.com/severity` Fluentd also allows dot(.) as a key. https://github.com/fluent/fluentd/blob/c297456eedf046bd352e7438002d855c1fbfb30c/test/plugin_helper/test_record_accessor.rb#L23 Fluentd may allow slash(/)....
{"label": "fluent:master", "ref": "master", "sha": "e0afffe6b821971a553a3127ac57b9b9989c7330"}
[{"number": 4370, "title": "Record Accessor not recognize key that contains special characters", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nRecord Accessor not recognize key that contains special characters, e.g. `logging.googleapis.com/severity`\r\nhttps://docs.fluentbit.io/manual/administration/configuring...
diff --git a/src/flb_record_accessor.c b/src/flb_record_accessor.c index d643b4ee514..50d868595bf 100644 --- a/src/flb_record_accessor.c +++ b/src/flb_record_accessor.c @@ -182,7 +182,7 @@ static int ra_parse_buffer(struct flb_record_accessor *ra, flb_sds_t buf) /* ignore '.' if it is inside a string/s...
diff --git a/tests/internal/record_accessor.c b/tests/internal/record_accessor.c index 72f3d6ff999..b3296b2ff3f 100644 --- a/tests/internal/record_accessor.c +++ b/tests/internal/record_accessor.c @@ -469,9 +469,74 @@ void cb_dash_key() msgpack_unpacked_destroy(&result); } +void cb_dot_and_slash_key() +{ + i...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS", "test": "PASS"...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 71, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 70, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 71, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
fluent__fluent-bit-4619
c
mswebench/fluent_m_fluent-bit:pr-4619
fluent
fluent-bit
4510
closed
filter: allow case-insensitive plugin name
Fixes #4509 I added test case to filter_stdout testcase. It is not specific for filter_stdout, but it easy to add test case... ---- 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: - [X] Example ...
{"label": "fluent:master", "ref": "master", "sha": "b3857f4961216b87e61dc49c388ac99f605aed39"}
[{"number": 4509, "title": "Filter plugin name is case sensitive", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n<!--- A clear and concise description of what the bug is. -->\r\n\r\nFluent-bit allows case-sensitive filter plugin name.\r\ne.g. `recOrd_ModiFier` is not allowed.\r\n\r\nOn the other hand, fluent-bi...
diff --git a/src/flb_filter.c b/src/flb_filter.c index 3afbadfdfd6..43af1e14731 100644 --- a/src/flb_filter.c +++ b/src/flb_filter.c @@ -316,7 +316,7 @@ struct flb_filter_instance *flb_filter_new(struct flb_config *config, mk_list_foreach(head, &config->filter_plugins) { plugin = mk_list_entry(head, str...
diff --git a/tests/runtime/filter_stdout.c b/tests/runtime/filter_stdout.c index 886faf8a193..8d75c155a6e 100644 --- a/tests/runtime/filter_stdout.c +++ b/tests/runtime/filter_stdout.c @@ -7,13 +7,36 @@ /* Test functions */ void flb_test_filter_stdout_json_multiple(void); +void flb_test_filter_stdout_case_insensiti...
{"flb-rt-filter_stdout": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS", "test": "PASS"...
{"flb-rt-filter_stdout": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 69, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 68, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 69, "failed_count": 6, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
fluent__fluent-bit-4510
c
mswebench/fluent_m_fluent-bit:pr-4510
fluent
fluent-bit
4375
closed
ml: support FLB_ML_TYPE_MAP to parse(#4034)
Fixes #4034 `ml_append_try_parser` calls flb_parser_do only if a type is `FLB_ML_TYPE_TEXT`. The type will be `FLB_ML_TYPE_MAP` in case of Config 2. https://github.com/fluent/fluent-bit/issues/4034#issue-984274462 So incoming record may not be parsed. This patch is to support `FLB_ML_TYPE_MAP`. ## Diff - ...
{"label": "fluent:master", "ref": "master", "sha": "9ccc6f89171d6792f9605b77b4efd27bc28f472a"}
[{"number": 4034, "title": "Multiline Parser: Built-in CRI parser does not work in multiline filter", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nThe [built-in CRI multiline parser](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/multiline-parsing) only works when it is part of the _tai...
diff --git a/src/multiline/flb_ml.c b/src/multiline/flb_ml.c index b9b0f71392b..255398a2de6 100644 --- a/src/multiline/flb_ml.c +++ b/src/multiline/flb_ml.c @@ -439,7 +439,12 @@ static int process_append(struct flb_ml_parser_ins *parser_i, } else if (type == FLB_ML_TYPE_MAP) { full_map = obj; - ...
diff --git a/tests/internal/multiline.c b/tests/internal/multiline.c index b31bff3e9a9..84fde3558b8 100644 --- a/tests/internal/multiline.c +++ b/tests/internal/multiline.c @@ -1128,6 +1128,98 @@ void test_issue_3817_1() flb_config_exit(config); } +static void test_issue_4034() +{ + int i; + int len; + ...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS", "test": "PASS"...
{"flb-it-multiline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 64, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 63, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 64, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
fluent__fluent-bit-4375
c
mswebench/fluent_m_fluent-bit:pr-4375
fluent
fluent-bit
4321
closed
filter_modify: check if key exists for not conditions (#4319)
Fixes #4319 `evaluate_condition_KEY_VALUE_MATCHES` checks if key exists and returns false when key doesn't exist. On the other hand `evaluate_condition_KEY_VALUE_DOES_NOT_MATCH` returns `!evaluate_condition_KEY_VALUE_MATCHES`. So, `evaluate_condition_KEY_VALUE_DOES_NOT_MATCH` will return true when key doesn't ex...
{"label": "fluent:master", "ref": "master", "sha": "4c508471f363abaff9b317f617a1a82128184567"}
[{"number": 4319, "title": "Key_value_does_not_match is true if the key does not exist", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nWhen using `Condition Key_value_does_not_match` or `Condition Key_value_does_not_equal` in a `modify` filter, it will return `true` even if the key does not exist.\r\n\r\n**To R...
diff --git a/plugins/filter_modify/modify.c b/plugins/filter_modify/modify.c index ca8507dd760..f2656c9b954 100644 --- a/plugins/filter_modify/modify.c +++ b/plugins/filter_modify/modify.c @@ -681,6 +681,9 @@ bool evaluate_condition_KEY_VALUE_DOES_NOT_EQUAL(struct filter_modify_ctx *ctx, ...
diff --git a/tests/runtime/filter_modify.c b/tests/runtime/filter_modify.c index ecb4ec65089..1741f0ade3a 100644 --- a/tests/runtime/filter_modify.c +++ b/tests/runtime/filter_modify.c @@ -1405,6 +1405,104 @@ static void flb_test_not_drop_multi_event() } +/* to check issue https://github.com/fluent/fluent-bit/issu...
{"flb-rt-filter_modify": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-input_chunk": {"run": "FAIL", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS", "test": "PASS"...
{"flb-rt-filter_modify": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-input_chunk": {"run": "FAIL", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 63, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 62, "failed_count": 9, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 64, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
fluent__fluent-bit-4321
c
mswebench/fluent_m_fluent-bit:pr-4321
fluent
fluent-bit
4263
closed
ra: allow dash as an IDENTIFIER(#4236)
Fixes #4236 This patch is to allow a key name which contains '-'. ---- 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: - [X] Example configuration file for the change - [X] Debug log output from...
{"label": "fluent:master", "ref": "master", "sha": "6307a9df72aed44a197e14f6f1da25ea63138d89"}
[{"number": 4236, "title": "Record Accessor syntax to extract a key with dashes?", "body": "I have an input JSON like:\r\n\r\n```json\r\n{\r\n \"talos-service\": \"service name\"\r\n}\r\n```\r\n\r\nI've tried to parse it with:\r\n\r\n```\r\n[INPUT]\r\n name tcp\r\n\r\n[OUTPUT]\r\n name loki\r\n host 127.0.0.1...
diff --git a/src/record_accessor/ra.l b/src/record_accessor/ra.l index 6027467aca3..375aaa1c694 100644 --- a/src/record_accessor/ra.l +++ b/src/record_accessor/ra.l @@ -53,7 +53,7 @@ static inline char *remove_dup_quotes(const char *s, size_t n) [1-9][0-9]*|0 { yylval->integer = atoi(yytext); return INTE...
diff --git a/tests/internal/record_accessor.c b/tests/internal/record_accessor.c index 80675b96f5c..72f3d6ff999 100644 --- a/tests/internal/record_accessor.c +++ b/tests/internal/record_accessor.c @@ -409,8 +409,69 @@ void cb_get_kv_pair() msgpack_unpacked_destroy(&result); } +void cb_dash_key() +{ + int len...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS", "test": "PASS"...
{"flb-it-record_accessor": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 64, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 63, "failed_count": 8, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
{"passed_count": 64, "failed_count": 7, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-rt-out_datadog", "flb-it-network", "flb-rt-out_counter", "flb-it-f...
fluent__fluent-bit-4263
c
mswebench/fluent_m_fluent-bit:pr-4263
fluent
fluent-bit
4060
closed
filter_lua: calculate table size using table.maxn(#3433)
Fixes #3433. Lua5.1 can't get the size of table which contains null using operator '#'. We can get the size using table.maxn. Note: table.maxn is deprecated from Lua5.2. https://www.lua.org/manual/5.2/manual.html#8.2 ``` Function table.maxn is deprecated. Write it in Lua if you really need it. ``` ```lua ...
{"label": "fluent:master", "ref": "master", "sha": "26c796fc6fb6b65a1a4ec92acf272e763a756c80"}
[{"number": 3433, "title": "lua filters return broken output given an array with a null element as input", "body": "## Bug Report\r\n\r\nIf a lua filter is given an input with an array that contains a null element, the array will be transformed into an object with integer keys that is not valid JSON in its output and b...
diff --git a/plugins/filter_lua/lua.c b/plugins/filter_lua/lua.c index bf870cb32c9..881354dbbef 100644 --- a/plugins/filter_lua/lua.c +++ b/plugins/filter_lua/lua.c @@ -116,11 +116,58 @@ static void lua_pushmsgpack(lua_State *l, msgpack_object *o) } +/* + * This function is to call lua function table.maxn. + * CAU...
diff --git a/tests/runtime/filter_lua.c b/tests/runtime/filter_lua.c index c494c661f5b..44c2adc9513 100644 --- a/tests/runtime/filter_lua.c +++ b/tests/runtime/filter_lua.c @@ -436,11 +436,87 @@ void flb_test_type_array_key(void) flb_destroy(ctx); } +/* https://github.com/fluent/fluent-bit/issues/3433 */ +void ...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 66, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-4060
c
mswebench/fluent_m_fluent-bit:pr-4060
fluent
fluent-bit
3982
closed
filter_record_modifier: allocate bool_map dynamically(#3968)
<!-- Provide summary of changes --> Fixes #3968 Currently, the size of `bool_map` is fixed. If the map size of incoming record exceeds `bool_map` size, it breaks stack. This patch is to allocate `bool_map` dynamically. <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> ---- ...
{"label": "fluent:master", "ref": "master", "sha": "ae4cb02af25d403a3e660be1e9233fc1ebed780d"}
[{"number": 3968, "title": "Fluent Bit restarts if a json message has large number of keys", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nFluent Bit restarts if a json message has large number of keys. \r\n\r\nMessage: {\"message\":\"DDP connection failed.\",\"timestamp\":\"2021-08-03T13:33:23.413Z\",\"level\"...
diff --git a/plugins/filter_record_modifier/filter_modifier.c b/plugins/filter_record_modifier/filter_modifier.c index d0d5d84bac3..e287095b157 100644 --- a/plugins/filter_record_modifier/filter_modifier.c +++ b/plugins/filter_record_modifier/filter_modifier.c @@ -249,6 +249,7 @@ static int make_bool_map(struct record_...
diff --git a/tests/runtime/CMakeLists.txt b/tests/runtime/CMakeLists.txt index f83cc3d5551..74078a0651b 100644 --- a/tests/runtime/CMakeLists.txt +++ b/tests/runtime/CMakeLists.txt @@ -33,15 +33,16 @@ endif() # Filter Plugins if(FLB_IN_LIB AND FLB_OUT_LIB) - FLB_RT_TEST(FLB_FILTER_STDOUT "filter_stdout.c") - ...
{"flb-rt-filter_record_modifier": {"run": "NONE", "test": "NONE", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{}
{}
{"flb-rt-filter_record_modifier": {"run": "NONE", "test": "NONE", "fix": "PASS"}}
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 68, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3982
c
mswebench/fluent_m_fluent-bit:pr-3982
fluent
fluent-bit
3951
closed
in_tail: initialize crlf to prevent sigsegv (#3943)
Fixes #3943 Cached `crlf` causes SIGSEGV. It is caused by below log. ``` some messageCRLF LF ``` `crlf` is 1 by `some message CRLF` . Next line `LF` means `len=0` and `crlf` is not updated. Then `line_len = len - crlf` causes underflow. ---- Enter `[N/A]` in the box, if an item is not applicable to you...
{"label": "fluent:master", "ref": "master", "sha": "d89bbaa92e7181f8fef7d8444b7253b67b05bfdd"}
[{"number": 3943, "title": "SIGSEGV in msgpack_sbuffer_write()", "body": "## Bug Report\r\n\r\n### Describe the bug\r\nfluent-bit (1.8.3) crashes in `msgpack_sbuffer_write()` during a multi-line tail\r\n\r\n### To Reproduce\r\n\r\nParser:\r\n```\r\n[PARSER]\r\n Name shib-sp-shibd\r\n Format regex\r\n Regex ^...
diff --git a/plugins/in_tail/tail_file.c b/plugins/in_tail/tail_file.c index 79807a54484..958bd58d9a5 100644 --- a/plugins/in_tail/tail_file.c +++ b/plugins/in_tail/tail_file.c @@ -326,6 +326,7 @@ static int process_content(struct flb_tail_file *file, size_t *bytes) while (data < end && (p = memchr(data, '\n', e...
diff --git a/tests/runtime/data/tail/log/3943.log b/tests/runtime/data/tail/log/3943.log new file mode 100644 index 00000000000..8f3d91d9cd0 --- /dev/null +++ b/tests/runtime/data/tail/log/3943.log @@ -0,0 +1,2 @@ +bbb + diff --git a/tests/runtime/data/tail/out/3943.out b/tests/runtime/data/tail/out/3943.out new file ...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_loki": {"run": "PASS", "test":...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 66, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "f...
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3951
c
mswebench/fluent_m_fluent-bit:pr-3951
fluent
fluent-bit
3906
closed
out_loki: remove kv only if remove_keys enabled(#3867)
Fixes #3867 Current loki plugin removes key/value even if `remove_keys` is not set. 1. `remove_keys_derived` is updated at `flb_loki_kv_append` if record accessor is used. 2. `remove_keys_derived` is used to create `remove_mpa` even if `remove_keys` is not set at `prepare_remove_keys`. 3. Remove key/value when `r...
{"label": "fluent:master", "ref": "master", "sha": "a2e1c4753ddd7a912f8890df0ad84608b30cb422"}
[{"number": 3867, "title": "loki output labels with Record Accessor causes given fields to be removed", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nWhen using labels in loki output (official plugin) to create them using Record Accessor then labels are created but given fields are removed.\r\n\r\n**To Reproduc...
diff --git a/plugins/out_loki/loki.c b/plugins/out_loki/loki.c index 7c72821a0f7..fa587b43cab 100644 --- a/plugins/out_loki/loki.c +++ b/plugins/out_loki/loki.c @@ -577,14 +577,13 @@ static int prepare_remove_keys(struct flb_loki *ctx) return -1; } } - } - - size = mk_list_s...
diff --git a/tests/runtime/out_loki.c b/tests/runtime/out_loki.c index 938e7a35b84..d7b11f8c1aa 100644 --- a/tests/runtime/out_loki.c +++ b/tests/runtime/out_loki.c @@ -154,7 +154,7 @@ static void cb_check_label_keys(void *ctx, int ffd, flb_sds_destroy(out_js); } -#define JSON_LABEL_KEYS "[12345678, {\"key\":\"...
{"flb-rt-out_loki": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-input_chunk": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-rt-out_loki": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-input_chunk": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 65, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3906
c
mswebench/fluent_m_fluent-bit:pr-3906
fluent
fluent-bit
3898
closed
pack_gelf: make time precision explicit(#3727)
Fixes #3727 ---- 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: - [X] Example configuration file for the change - [X] Debug log output from testing the change <!-- Invoke Fluent Bit and Valgrind ...
{"label": "fluent:master", "ref": "master", "sha": "b7335ab31b859b677db0bbebb15771c0c4e70eb0"}
[{"number": 3727, "title": "GELF output writes subsecond portion of timestamp incorrectly, losing leading zeros", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nGiven a timestamp in fluent-bit of the form e.g. `2021-07-05T12:34:56.012345678`, the GELF output will render that to a timestamp as `1625488496.12` rat...
diff --git a/src/flb_pack_gelf.c b/src/flb_pack_gelf.c index 241f2c24320..7077fb3b7e4 100644 --- a/src/flb_pack_gelf.c +++ b/src/flb_pack_gelf.c @@ -762,7 +762,8 @@ flb_sds_t flb_msgpack_to_gelf(flb_sds_t *s, msgpack_object *o, } *s = tmp; - tmp = flb_sds_printf(s, "%" PRIu32".%lu", + ...
diff --git a/tests/internal/gelf.c b/tests/internal/gelf.c index fa2ac7ab4e3..0a3b21e68d0 100644 --- a/tests/internal/gelf.c +++ b/tests/internal/gelf.c @@ -50,7 +50,52 @@ void test_gelf_pack() msgpack_sbuffer_destroy(&mp_sbuf); } +#define EXPECTED_OUT_MSEC \ + "{\"version\":\"1.1\", \"short_message\":\"true...
{"flb-it-gelf": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-it-gelf": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 66, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 66, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3898
c
mswebench/fluent_m_fluent-bit:pr-3898
fluent
fluent-bit
3896
closed
ra_key: check subkeys length
Fixes #3875 The issue is caused by `subkey_to_object`. The API expects a length of subkeys > 0. However some APIs invokes `subkey_to_object` even if the length is 0. e.g. Only the root key of record accessor `$key` ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing**...
{"label": "fluent:master", "ref": "master", "sha": "fd882da88c88bb54fc520959d0843d0cf61ce4dc"}
[{"number": 3875, "title": "Loki output plugin - remove labels from Loki fields still doesn't work", "body": "Hi, is this feature released in version 1.7? I tried 1.7.7, it seems the `remove_keys` doesn't work.\r\n\r\nfluent-bit version:\r\n\r\n```\r\nFluent Bit v1.7.7\r\n* Copyright (C) 2019-2021 The Fluent Bit Author...
diff --git a/src/flb_ra_key.c b/src/flb_ra_key.c index d50c7919e5e..7e7632a005c 100644 --- a/src/flb_ra_key.c +++ b/src/flb_ra_key.c @@ -225,7 +225,7 @@ struct flb_ra_value *flb_ra_key_to_value(flb_sds_t ckey, result->o = val; if ((val.type == MSGPACK_OBJECT_MAP || val.type == MSGPACK_OBJECT_ARRAY) - ...
diff --git a/tests/runtime/out_loki.c b/tests/runtime/out_loki.c index d7b11f8c1aa..b291b1cc1b7 100644 --- a/tests/runtime/out_loki.c +++ b/tests/runtime/out_loki.c @@ -73,7 +73,8 @@ void flb_test_basic() TEST_CHECK(ret == 0); /* Ingest data sample */ - flb_lib_push(ctx, in_ffd, (char *) JSON_BASIC, size...
{"flb-rt-out_loki": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-rt-out_loki": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 66, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 67, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3896
c
mswebench/fluent_m_fluent-bit:pr-3896
fluent
fluent-bit
3706
closed
aws: add support for credential_process
Signed-off-by: Jesse Rittner <rittneje@gmail.com> <!-- Provide summary of changes --> Adds support for credential_process in the AWS config file. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html This implementation adds support for Linux only. cc @PettitWesley <!-- I...
{"label": "fluent:master", "ref": "master", "sha": "f9c5a6e9a16e09a45d804f4fe0ff8e08d8d53a15"}
[{"number": 3621, "title": "Support AWS profile credential_process", "body": "As best I can tell, currently Fluent Bit only supports AWS profiles that directly specify `aws_access_key_id`, `aws_secret_access_key`, and `aws_session_token` in the ~/.aws/credentials file. https://github.com/fluent/fluent-bit/blob/master/s...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b212ba87d9..10f1cb2f9d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,7 @@ option(FLB_BACKTRACE "Enable stacktrace support" Yes) option(FLB_LUAJIT "Enable Lua Scripting support" Yes) option(FLB_RECORD_ACCESSOR "Enable re...
diff --git a/tests/internal/CMakeLists.txt b/tests/internal/CMakeLists.txt index f49930e1bfc..3b5d3223f3e 100644 --- a/tests/internal/CMakeLists.txt +++ b/tests/internal/CMakeLists.txt @@ -83,6 +83,12 @@ if(FLB_AWS) aws_credentials_http.c aws_credentials_profile.c ) + if(FLB_HAVE_AWS_CREDENTIAL_PROCESS)...
{"flb-it-aws_credentials_process": {"run": "NONE", "test": "NONE", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{}
{}
{"flb-it-aws_credentials_process": {"run": "NONE", "test": "NONE", "fix": "PASS"}}
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 66, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3706
c
mswebench/fluent_m_fluent-bit:pr-3706
fluent
fluent-bit
3663
closed
out_stackdriver: add prefix check to tag matching with regex
<!-- Provide summary of changes --> Add prefix check to tag matching when parsing local_resource_id. The condition to run the tag match is that the prefix of tag should match and this is currently missing in the out_stackdriver. <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> Fixes #366...
{"label": "fluent:master", "ref": "master", "sha": "b0f0b290375ecac2e3b1979ffb4b42331d58367a"}
[{"number": 3662, "title": "out_stackdriver: incorrect node_name when custom_k8s_regex is being used", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n<!--- A clear and concise description of what the bug is. -->\r\nWith the follow config:\r\n```\r\n[SERVICE]\r\n Flush 1\r\n Log_Level ...
diff --git a/plugins/out_stackdriver/stackdriver.c b/plugins/out_stackdriver/stackdriver.c index cb0ac7fc792..16d64b438f3 100644 --- a/plugins/out_stackdriver/stackdriver.c +++ b/plugins/out_stackdriver/stackdriver.c @@ -812,9 +812,13 @@ static int is_tag_match_regex(struct flb_stackdriver *ctx, const char *tag_st...
diff --git a/tests/runtime/out_stackdriver.c b/tests/runtime/out_stackdriver.c index ac588b21ba4..9966af07154 100644 --- a/tests/runtime/out_stackdriver.c +++ b/tests/runtime/out_stackdriver.c @@ -3606,6 +3606,50 @@ void flb_test_resource_k8s_node_custom_k8s_regex_with_dot() flb_destroy(ctx); } +void flb_test_r...
{"flb-rt-out_stackdriver": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-rt-out_stackdriver": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 64, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3663
c
mswebench/fluent_m_fluent-bit:pr-3663
fluent
fluent-bit
3574
closed
out_file: exit when format is unknown (#3573)
Fixes #3573 This patch is to exit when format is unknown. <!-- 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 su...
{"label": "fluent:master", "ref": "master", "sha": "99c2f68b92e43d01924bddc1c770542ff9df3f5f"}
[{"number": 3573, "title": "Invalid \"Format\" values in \"file\" output module are silently ignored", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\n\r\nWhen, in the `file` output module, `Format` is set to an unknown value, fluent-bit assumes `out_file` instead of reporting an error.\r\n\r\n**To Reproduce**\r\...
diff --git a/plugins/out_file/file.c b/plugins/out_file/file.c index 1e209022f95..731229eb538 100644 --- a/plugins/out_file/file.c +++ b/plugins/out_file/file.c @@ -122,6 +122,11 @@ static int cb_file_init(struct flb_output_instance *ins, else if (!strcasecmp(tmp, "template")) { ctx->format = F...
diff --git a/tests/runtime/out_file.c b/tests/runtime/out_file.c index b98eecd0514..0bbac339485 100644 --- a/tests/runtime/out_file.c +++ b/tests/runtime/out_file.c @@ -266,10 +266,7 @@ void flb_test_file_format_ltsv(void) void flb_test_file_format_invalid(void) { - int i; int ret; - int bytes; - char...
{"flb-rt-out_file": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-rt-out_file": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 64, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3574
c
mswebench/fluent_m_fluent-bit:pr-3574
fluent
fluent-bit
3487
closed
filter_lua: support new option "type_array_key"
Fixes #3343 This PR is to support new option "type_array_key". If set, the value of the key is treated as array. It is useful to handle empty array. |key|description| |----|------------| |type_array_key|If these keys are matched, the fields are handled as array. If more than one key, delimit by space. It i...
{"label": "fluent:master", "ref": "master", "sha": "22720e72fce46dfd6320069db9eeb5c0f9ffc38b"}
[{"number": 3343, "title": "Fluent treats empty array as object when using Lua", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nI'm using Lua post-processing which is configured to run immediately after JSON parser. After JSON parsing, some fields in the log may have empty array as a value:\r\n```json\r\n{\r\n ...
diff --git a/plugins/filter_lua/lua.c b/plugins/filter_lua/lua.c index 22592c8759f..bf870cb32c9 100644 --- a/plugins/filter_lua/lua.c +++ b/plugins/filter_lua/lua.c @@ -142,6 +142,23 @@ static int lua_arraylength(lua_State *l) } static void lua_tomsgpack(struct lua_filter *lf, msgpack_packer *pck, int index); +stat...
diff --git a/tests/runtime/filter_lua.c b/tests/runtime/filter_lua.c index 93d92a28549..c494c661f5b 100644 --- a/tests/runtime/filter_lua.c +++ b/tests/runtime/filter_lua.c @@ -92,7 +92,7 @@ void flb_test_type_int_key(void) char *script_body = "" "function lua_main(tag, timestamp, record)\n" " new...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-out_cloudwatch": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-pack": {"run": "PASS", "test": ...
{"flb-rt-filter_lua": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 64, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
{"passed_count": 65, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-out_splunk", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "f...
fluent__fluent-bit-3487
c
mswebench/fluent_m_fluent-bit:pr-3487
fluent
fluent-bit
3401
closed
pack: new option "json.convert_nan_to_null"
<!-- Provide summary of changes --> Fixes #1588 This patch is to add `json.convert_nan_to_null` (Default: false) | name | description | default| |-------|-------------|----------| |json.convert_nan_to_null| If enabled, NaN is converted to null when fluent-bit converts msgpack to json|false| <!-- Issue nu...
{"label": "fluent:master", "ref": "master", "sha": "1e6fe03f5c4596d53e178c0fc15de158be07cb79"}
[{"number": 1588, "title": "Handle NaN in JSON when converting from message pack in msgpack2json function", "body": "**Is your feature request related to a problem? Please describe.**\r\n\r\nSay we have an message pack message with an `NaN`. When output to HTTP JSON, it's converted to JSON end up like this:\r\n\r\n```\...
diff --git a/include/fluent-bit/flb_config.h b/include/fluent-bit/flb_config.h index cd6635dbc4e..10aaaed9668 100644 --- a/include/fluent-bit/flb_config.h +++ b/include/fluent-bit/flb_config.h @@ -50,6 +50,7 @@ struct flb_config { int grace; /* Maximum grace time on shutdown */ int grace_count;...
diff --git a/tests/internal/pack.c b/tests/internal/pack.c index 4b1ec0d6dc5..b447106e990 100644 --- a/tests/internal/pack.c +++ b/tests/internal/pack.c @@ -12,6 +12,7 @@ #include <dirent.h> #include <fcntl.h> #include <unistd.h> +#include <math.h> /* for NAN */ #include "flb_tests_internal.h" @@ -634,6 +635,53...
{"flb-rt-in_tail": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{}
{}
{}
{"flb-rt-in_tail": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_checklist": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-in_netif": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "flb-it-aws_util": {"run": "PASS", "t...
{"passed_count": 91, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 91, "failed_count": 5, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_checklist", "flb-rt-in_forward", "flb-rt-out_loki", "flb-it-pipe", "flb-rt-core_engine", "flb-it-parser", "flb-it-bucket_queue", "flb-rt-filter_modify", "flb-it-multiline", "flb-rt-filter_stdout", "flb-it-confi...
fluent__fluent-bit-3401
c
mswebench/fluent_m_fluent-bit:pr-3401
fluent
fluent-bit
3320
closed
out_es: support 'id_key' to get id from record(#3303)
<!-- Provide summary of changes --> Fixes #3303 New property `id_key` is supported by this patch. It is to get id from record and to set id dynamically. If this option is enabled, `generate_id` is disabled. ---- Enter `[N/A]` in the box, if an item is not applicable to your change. **Testing** Before ...
{"label": "fluent:master", "ref": "master", "sha": "99f75bcb012e800cadd4d7d2dac0d474d014c9c6"}
[{"number": 3303, "title": "id_key ElasticSearch Support", "body": "**Is your feature request related to a problem? Please describe.**\r\nI need to set up my keys as the _id keys on ElasticSearch and I can't do it with this agent. FluentD supports it https://github.com/uken/fluent-plugin-elasticsearch#id_key\r\n\r\n**D...
diff --git a/plugins/out_es/es.c b/plugins/out_es/es.c index 590a5b083db..6abb4b78e28 100644 --- a/plugins/out_es/es.c +++ b/plugins/out_es/es.c @@ -27,6 +27,7 @@ #include <fluent-bit/flb_signv4.h> #include <fluent-bit/flb_aws_credentials.h> #include <fluent-bit/flb_record_accessor.h> +#include <fluent-bit/flb_ra_ke...
diff --git a/tests/runtime/out_elasticsearch.c b/tests/runtime/out_elasticsearch.c index 0687cb4af76..d420e11dd76 100644 --- a/tests/runtime/out_elasticsearch.c +++ b/tests/runtime/out_elasticsearch.c @@ -73,6 +73,18 @@ static void cb_check_replace_dots(void *ctx, int ffd, flb_free(res_data); } +static void cb_...
{"flb-rt-out_elasticsearch": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-random": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_head": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-unit_sizes": {"run": "PASS", "test": "PA...
{"flb-rt-out_elasticsearch": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 61, "failed_count": 2, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
{"passed_count": 60, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
{"passed_count": 61, "failed_count": 2, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
fluent__fluent-bit-3320
c
mswebench/fluent_m_fluent-bit:pr-3320
fluent
fluent-bit
3284
closed
utils: not to convert codepoint string (#3280)
<!-- Provide summary of changes --> Fixes #3280 <!-- 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: - [X] Example...
{"label": "fluent:master", "ref": "master", "sha": "54de98b34aa660d38fd777e189621b2c91ae6115"}
[{"number": 3280, "title": "Fluent Bit mishandles japanese characters", "body": "## Bug Report\r\n\r\nHere's my config:\r\n\r\n```\r\n[INPUT]\r\n Name tail\r\n Path /home/ec2-user/config/logs/japan.log\r\n Read_from_Head On\r\n\r\n[OUTPUT]\r\n Name stdout\r\n Match *\r\n Format json_line...
diff --git a/src/flb_utils.c b/src/flb_utils.c index ac5b0ae8d69..d7a082d463d 100644 --- a/src/flb_utils.c +++ b/src/flb_utils.c @@ -716,29 +716,11 @@ int flb_utils_write_str(char *buf, int *off, size_t size, if (i + hex_bytes > str_len) { break; /* skip truncated UTF-8 */ } -...
diff --git a/tests/internal/data/pack/mixed_002.json b/tests/internal/data/pack/mixed_002.json index d1afe50ace3..e32314b0aa9 100644 --- a/tests/internal/data/pack/mixed_002.json +++ b/tests/internal/data/pack/mixed_002.json @@ -1,1 +1,1 @@ -"mixed_002 =>\n\n \u00e1\u00e9\u00ed\u00f3\u00fa\n\n\n'\n\\t\n" \ No newline ...
{"flb-it-pack": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-utils": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-in_tail": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-random": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_head": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-unit_sizes": {"run": "PASS", "test": "PA...
{"flb-it-pack": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "flb-it-utils": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 60, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
{"passed_count": 59, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
{"passed_count": 61, "failed_count": 2, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
fluent__fluent-bit-3284
c
mswebench/fluent_m_fluent-bit:pr-3284
fluent
fluent-bit
2623
closed
in_tail: Do not concatenate multiline logs in docker mode until first line is detected
Do not concatenate multiline logs in docker mode until first line is detected Update runtime tests with additional test for this change Fixes #2585 ---- 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 co...
{"label": "fluent:master", "ref": "master", "sha": "0f6b4a7d2f71a86cd9067a654d57f6f59f87cbcb"}
[{"number": 2585, "title": "Tail Docker Support detects multilines too eagerly", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nWe do observe that the tail input plugin with enabled Docker Support, joins log lines to eagerly.\r\nIt doesn't respect the given regex for first line detection.\r\n\r\nThis leads from ...
diff --git a/plugins/in_tail/tail_dockermode.c b/plugins/in_tail/tail_dockermode.c index 168203a23f4..86912a54501 100644 --- a/plugins/in_tail/tail_dockermode.c +++ b/plugins/in_tail/tail_dockermode.c @@ -254,12 +254,22 @@ int flb_tail_dmode_process_content(time_t now, flb_sds_t tmp_copy; #ifdef FLB_HAVE_REGEX ...
diff --git a/tests/runtime/data/tail/log/dockermode_firstline_detection.log b/tests/runtime/data/tail/log/dockermode_firstline_detection.log new file mode 100644 index 00000000000..56a2711aa89 --- /dev/null +++ b/tests/runtime/data/tail/log/dockermode_firstline_detection.log @@ -0,0 +1,9 @@ +{"log":"Single log\n"} +{"l...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-it-random": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_head": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-unit_sizes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_mem": {"run": "PASS", "test": "PAS...
{"flb-rt-in_tail": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 57, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
{"passed_count": 56, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-it-gelf", "flb-it-...
{"passed_count": 57, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-it-random", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-rt-out_cloudwatch", "flb-rt-out_datadog", "flb-it-slist", "flb-rt-out_counter", "flb-it-network", "flb-...
fluent__fluent-bit-2623
c
mswebench/fluent_m_fluent-bit:pr-2623
fluent
fluent-bit
2255
closed
filter_parser: cancel parsing if one parser is matched when Reserve_Data is enabled
<!-- Provide summary of changes --> <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, #77" --> To fix #2250 filter_parser supports multiple parsers. However the behavior is different depending on `Reserve_Data` property when some parsers matched. If `Reserve_Data` is enabled, filter_parser tr...
{"label": "fluent:master", "ref": "master", "sha": "46e479eb2d1d5f6fe57b1ad7bd395abb5e7bdb34"}
[{"number": 2250, "title": "Filter Parser Regex seems works improperly", "body": "FluentBit fluent/fluent-bit:1.4.6 - official Docker image\r\nI have this parser section:\r\n\r\n```\r\n [PARSER]\r\n Name replicaset\r\n Format regex\r\n Regex ^\\/var\\/log\\/pods\\/(?<k8s_namespace>.+?)_(?<k8s...
diff --git a/plugins/filter_parser/filter_parser.c b/plugins/filter_parser/filter_parser.c index 16812c70727..68f3295ba00 100644 --- a/plugins/filter_parser/filter_parser.c +++ b/plugins/filter_parser/filter_parser.c @@ -295,8 +295,8 @@ static int cb_parser_filter(const void *data, size_t bytes, ...
diff --git a/tests/runtime/filter_parser.c b/tests/runtime/filter_parser.c index ea26db06e77..f1c015042c0 100644 --- a/tests/runtime/filter_parser.c +++ b/tests/runtime/filter_parser.c @@ -509,11 +509,97 @@ void flb_test_filter_parser_preserve_original_field() flb_destroy(ctx); } +// https://github.com/fluent/f...
{"flb-rt-filter_parser": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_head": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-unit_sizes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_disk": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_mem": {"run": "PASS", "test": "PA...
{"flb-rt-filter_parser": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 49, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-it-network", "flb-it-aws_util", "flb-rt-out_counter", "flb-it-gelf", "flb-it-pack", "flb-it-pipe", "flb-rt-core_engine", "...
{"passed_count": 48, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-it-network", "flb-it-aws_util", "flb-rt-out_counter", "flb-it-gelf", "flb-it-pack", "flb-it-pipe", "flb-rt-core_engine", "...
{"passed_count": 49, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-slist", "flb-it-network", "flb-it-aws_util", "flb-rt-out_counter", "flb-it-gelf", "flb-it-pack", "flb-it-pipe", "flb-rt-core_engine", "...
fluent__fluent-bit-2255
c
mswebench/fluent_m_fluent-bit:pr-2255
fluent
fluent-bit
2043
closed
in_tail: Support multiline functionality (not filter) in dockermode
Use Parser to verify if line is valid first line while using dockermode. For example input: ``` {"log":"2020-03-24 Test line of first log\n"} {"log":" Another line of first log\n"} {"log":"2020-03-24 Test line of second log\n"} ``` And regex: `Regex (?<log>^{"log":"\d{4}-\d{2}-\d{2}.*)` Will o...
{"label": "fluent:master", "ref": "master", "sha": "a23882f49ca49317c749600036c6bd2b19ceb0cf"}
[{"number": 1115, "title": "Docker_mode to recombine multiline records in json-log from docker", "body": "**Problem**\r\nIf the application in kubernetes logs multiline messages, docker split this message to multiple json-log messages. \r\n\r\nThe actual output from the application\r\n```log\r\n[2019-02-15 10:36:31.224...
diff --git a/plugins/in_tail/tail.c b/plugins/in_tail/tail.c index a1fa86b0a0f..6fcad289c40 100644 --- a/plugins/in_tail/tail.c +++ b/plugins/in_tail/tail.c @@ -405,6 +405,13 @@ static struct flb_config_map config_map[] = { "wait period time in seconds to flush queued unfinished split lines." }, +#ifdef FL...
diff --git a/tests/runtime/CMakeLists.txt b/tests/runtime/CMakeLists.txt index 119125f8482..78637f682c4 100644 --- a/tests/runtime/CMakeLists.txt +++ b/tests/runtime/CMakeLists.txt @@ -28,6 +28,7 @@ if(FLB_OUT_LIB) FLB_RT_TEST(FLB_IN_HEAD "in_head.c") FLB_RT_TEST(FLB_IN_DUMMY "in_dummy.c") FLB...
{"flb-rt-in_tail": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_head": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-unit_sizes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_mem": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_disk": {"run": "PASS", "test": "PA...
{"flb-rt-in_tail": {"run": "NONE", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 51, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-it-network", "flb-it-aws_util", "flb-rt-out_counter", "flb-it-gelf", "flb-rt-out_cloudwatch", "flb-it-pack", "flb-it-pipe"...
{"passed_count": 51, "failed_count": 4, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-it-network", "flb-it-aws_util", "flb-rt-out_counter", "flb-it-gelf", "flb-rt-out_cloudwatch", "flb-it-pack", "flb-it-pipe"...
{"passed_count": 52, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-in_tail", "flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-slist", "flb-it-network", "flb-it-aws_util", "flb-rt-out_counter", "flb-it-gelf", "flb-rt-out_cloudwatch", "flb-it-pa...
fluent__fluent-bit-2043
c
mswebench/fluent_m_fluent-bit:pr-2043
fluent
fluent-bit
1437
closed
filter_nest: copy original event if condition is not mached
To fix #1434 The issue #1434 is similar to #1077 . filter plugin drops some events if they are not matched condition. test data: ``` $ for i in `seq 6 1 10`;do echo '{"key'$i'": "somevalue"}';done | tee bad_batch.log {"key6": "somevalue"} {"key7": "somevalue"} {"key8": "somevalue"} {"key9": "somevalue"} ...
{"label": "fluent:master", "ref": "master", "sha": "eb1029b3942d437eae1e08f2fc440c638ff77da6"}
[{"number": 1434, "title": "Nest filter (and maybe others) drop untouched events in a batch when at least one of the events in the batch is modified by the filter", "body": "## Bug Report\r\n\r\n**Describe the bug**\r\nNest filter (and maybe other filters) drop events that are not altered in a batch. If no event in a b...
diff --git a/plugins/filter_nest/nest.c b/plugins/filter_nest/nest.c index 67416b2be27..158ea339ca9 100644 --- a/plugins/filter_nest/nest.c +++ b/plugins/filter_nest/nest.c @@ -557,6 +557,7 @@ static int cb_nest_filter(const void *data, size_t bytes, struct filter_nest_ctx *ctx = context; int modified_recor...
diff --git a/tests/runtime/filter_nest.c b/tests/runtime/filter_nest.c index e09caca5855..8bd9073d7d0 100644 --- a/tests/runtime/filter_nest.c +++ b/tests/runtime/filter_nest.c @@ -5,19 +5,56 @@ pthread_mutex_t result_mutex = PTHREAD_MUTEX_INITIALIZER; char *output = NULL; +int num_output = 0; /* Test data */ ...
{"flb-rt-filter_nest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"flb-rt-filter_throttle": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_head": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-it-unit_sizes": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_disk": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "flb-rt-in_mem": {"run": "PASS", "test": "PA...
{"flb-rt-filter_nest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 36, "failed_count": 2, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-network", "flb-rt-out_counter", "flb-it-pack", "flb-it-pipe", "flb-rt-core_engine", "flb-rt-filter_modify", "flb-rt-out_exit", "flb-rt-...
{"passed_count": 35, "failed_count": 3, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_mem", "flb-rt-in_disk", "flb-it-network", "flb-rt-out_counter", "flb-it-pack", "flb-it-pipe", "flb-rt-core_engine", "flb-rt-filter_modify", "flb-rt-out_exit", "flb-rt-...
{"passed_count": 36, "failed_count": 2, "skipped_count": 0, "passed_tests": ["flb-rt-filter_throttle", "flb-rt-in_head", "flb-it-unit_sizes", "flb-rt-in_disk", "flb-rt-in_mem", "flb-it-network", "flb-rt-out_counter", "flb-it-pack", "flb-it-pipe", "flb-rt-core_engine", "flb-rt-filter_modify", "flb-rt-out_exit", "flb-rt-...
fluent__fluent-bit-1437
c
mswebench/fluent_m_fluent-bit:pr-1437
jqlang
jq
3242
closed
fix: preserve numerical precision on unary negation
This commit fixes #2704. ``` $ ./jq -n '[1234567890987654321,-1234567890987654321 | tojson]' [ "1234567890987654321", "-1234567890987654321" ] ```
{"label": "jqlang:master", "ref": "master", "sha": "d0adcbfebbbb6257db49ec4bd7cfcef31d8983c5"}
[{"number": 2704, "title": "bug: preservation of literal numbers ", "body": "The literal representation of certain negative numbers is not being properly preserved.\r\n \r\nConsider:\r\n```\r\n./jq --version\r\njq-1.6-268-gc99981c-dirty\r\n\r\n./jq -nM '1E1000'\r\n1E+1000\r\n\r\n./jq -nM '-1E1000'\r\n-1.797693134862315...
diff --git a/docs/content/manual/dev/manual.yml b/docs/content/manual/dev/manual.yml index 08ad00132e..12e1837cf2 100644 --- a/docs/content/manual/dev/manual.yml +++ b/docs/content/manual/dev/manual.yml @@ -373,10 +373,7 @@ sections: such `1E1234567890`, precision will be lost if the exponent is t...
diff --git a/tests/jq.test b/tests/jq.test index b9b1f8d2c4..d8758b431e 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1985,6 +1985,19 @@ true {"x":13911860366432393} 13911860366432382 +# Unary negation preserves numerical precision +-. | tojson == if have_decnum then "-13911860366432393" else "-139118603664323...
{"tests/mantest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/mantest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 30, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 28, "failed_count": 2, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 30, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-3242
c
mswebench/jqlang_m_jq:pr-3242
jqlang
jq
3179
closed
fix: make last(empty) yield no output values
This patch fixes `last/1` to produce no output value when the argument yields nothing. For example, `[last(empty)]` and `[last(range(0))]` now produce `[]` instead of `[null]`. I fixed the issue using byte-coded definition, to avoid unnecessary value boxing. This closes #1869 and closes #3177.
{"label": "jqlang:master", "ref": "master", "sha": "562d5c52226e27f5b422c83ec0c97ff9ba305399"}
[{"number": 3177, "title": "[Docs] Clarify the behvior of first, last, and nth on empty generators", "body": "I was confused by this behavior so thought it might be good to document it."}]
diff --git a/docs/content/manual/dev/manual.yml b/docs/content/manual/dev/manual.yml index 60debde5e5..6cdff2ae71 100644 --- a/docs/content/manual/dev/manual.yml +++ b/docs/content/manual/dev/manual.yml @@ -3067,9 +3067,12 @@ sections: Note that `nth(n; expr)` doesn't support negative values of `n`. ...
diff --git a/tests/jq.test b/tests/jq.test index 404994e268..5c1b81d3ff 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -362,6 +362,10 @@ null 10 [0,9] +[first(range(.)), last(range(.))] +0 +[] + [nth(0,5,9,10,15; range(.)), try nth(-1; range(.)) catch .] 10 [0,5,9,"nth doesn't support negative indices"] diff ...
{"tests/mantest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/mantest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}, "tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 30, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 28, "failed_count": 2, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 30, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-3179
c
mswebench/jqlang_m_jq:pr-3179
jqlang
jq
2964
closed
Return error for string literal beginning with single quote
## Summary In order for a string literal to be valid in JSON, the value must be surrounded by double quotes. This PR updates the literal validation function to return an error message when the literal begins with a single quote. I'm not sure if this is the best solution since the line/col that gets reported is at...
{"label": "jqlang:master", "ref": "master", "sha": "95c50a2d0d9a982d348aa772d32d3b4352227cdc"}
[{"number": 501, "title": "\"Invalid Numeric Literal\" on colon following a single-quoted string (incorrect parser error message)", "body": "**EDIT (20150416): I KNOW IT'S INVALID JSON. THE BUG IS ABOUT THE NONSENSICAL ERROR MESSAGE**\n\nI get this from absent-mindedly and incorrectly using single-quotes:\n\n```\n$ ec...
diff --git a/src/jv_parse.c b/src/jv_parse.c index 9755b8ac47..519c2047f2 100644 --- a/src/jv_parse.c +++ b/src/jv_parse.c @@ -512,6 +512,8 @@ static pfunc check_literal(struct jv_parser* p) { switch (p->tokenbuf[0]) { case 't': pattern = "true"; plen = 4; v = jv_true(); break; case 'f': pattern = "false"; ple...
diff --git a/tests/jq.test b/tests/jq.test index 7036df2c9e..e2f1ef11b7 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -2103,6 +2103,9 @@ try ["ok", setpath([1]; 1)] catch ["ko", .] {"hi":"hello"} ["ko","Cannot index object with number"] +try fromjson catch . +"{'a': 123}" +"Invalid string literal; expected \", ...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 28, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-2964
c
mswebench/jqlang_m_jq:pr-2964
jqlang
jq
2945
closed
refactor: move bsearch function to C-code
This commit fixes issue #527 and move the bsearch function to a native C-code. The performance is a bit better: Testing script: ```bash clear if [[ `uname` == Darwin ]]; then MAX_MEMORY_UNITS=KB else MAX_MEMORY_UNITS=MB fi export TIMEFMT='%J %U user %S system %P cpu %*E total'$'\n'\ 'avg sha...
{"label": "jqlang:master", "ref": "master", "sha": "588ff1874c8c394253c231733047a550efe78260"}
[{"number": 527, "title": "bsearch as C-coded builtin", "body": "As best I can tell, based on my timings on a Mac, a jq-coded binary search algorithm on a sorted array can't compete even with the C-coded linear search. The jq version of bsearch that I used is appended.\n\nThus I would like to request a C-coded bsearch...
diff --git a/src/builtin.c b/src/builtin.c index d9dfdf427c..717a07528a 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -835,6 +835,40 @@ static jv f_sort_by_impl(jq_state *jq, jv input, jv keys) { } } +/* + * Assuming the input array is sorted, bsearch/1 returns + * the index of the target if the target is in ...
diff --git a/tests/jq.test b/tests/jq.test index b430348ab2..b9b1f8d2c4 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1642,12 +1642,22 @@ ascii_upcase "useful but not for é" "USEFUL BUT NOT FOR é" -bsearch(0,2,4) +bsearch(0,1,2,3,4) [1,2,3] -1 +0 1 +2 -4 +bsearch({x:1}) +[{ "x": 0 },{ "x": 1 },{ "x": 2 }...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 30, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 29, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 30, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-2945
c
mswebench/jqlang_m_jq:pr-2945
jqlang
jq
2904
closed
Fix the default colors to use 39, the default foreground color
This reverts commit 07b18a33feb6ccab08be221657e19b82abf0d84e, and fix #2903. According to Linux manpage `console_codes(4)`, "color 39" is not a undefined value: ``` 39 set default foreground color (before Linux 3.16: set underscore off, set default foreground color) ``` I'm afraid that what in https:...
{"label": "jqlang:master", "ref": "master", "sha": "de1c10ca8a5e333102a00bfcb06ff98f40c774c3"}
[{"number": 2903, "title": "Default color of jq is indistinguishable under Solarized Light background", "body": "<!--\r\nREAD THIS FIRST!\r\n\r\nIf you have a usage question, please ask us on [Stack Overflow](https://stackoverflow.com/questions/tagged/jq), in the [#jq channel](https://web.libera.chat/#jq) on [Libera.Ch...
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index ac1abad2b2..6ce8233c7d 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -3677,7 +3677,7 @@ sections: - color for object keys The default color scheme is the same as setting - `JQ_...
diff --git a/tests/shtest b/tests/shtest index ee060e2e08..8a7ba07700 100755 --- a/tests/shtest +++ b/tests/shtest @@ -438,18 +438,18 @@ cmp $d/color $d/expect ## Default colors, complex input $JQ -Ccn '[{"a":true,"b":false},123,null]' > $d/color { - printf '\033[1;37m[\033[1;37m{' + printf '\033[1;39m[\033[1;39m{...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 28, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-2904
c
mswebench/jqlang_m_jq:pr-2904
jqlang
jq
2752
closed
Fix --stream-errors w/o --stream, and doc+test (close #2748)
null
{"label": "jqlang:master", "ref": "master", "sha": "575372222a7aced6153df416c1abd92abd050b5e"}
[{"number": 2748, "title": "Remove undocumented and untested --stream-errors option", "body": "This PR drops `--stream-errors` option. This option is undocumented, and untested. Also buggy; `printf '[' | jq --stream-errors .` aborts with assertion error."}]
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index ff68482a3d..e36cfea920 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -130,6 +130,16 @@ sections: conjunction with filtering and the `reduce` and `foreach` syntax to reduce large inp...
diff --git a/tests/shtest b/tests/shtest index b2b8571d86..1ee84d3ac4 100755 --- a/tests/shtest +++ b/tests/shtest @@ -180,6 +180,11 @@ $VALGRIND $Q $JQ -c '. as $d|path(..) as $p|$d|getpath($p)|select((type|. != "ar $VALGRIND $Q $JQ --stream -c '.|select(length==2)' < "$JQTESTDIR/torture/input0.json" > $d/out1 diff ...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 28, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-2752
c
mswebench/jqlang_m_jq:pr-2752
jqlang
jq
2720
closed
Make stream parser error when a non-empty object or array is used as key
Fixes #2463
{"label": "jqlang:master", "ref": "master", "sha": "e79335e3a587d77954face2137fc3d4b5482129e"}
[{"number": 2463, "title": "jq is partially laxer in what it parses when used with `--stream` flag", "body": "**Describe the bug**\r\nWhen jq is used to validate any json input of arbitrary size to ensure there are no syntax errors inside, we would like to favor `--stream` flag to enable validation of files the interna...
diff --git a/src/jv_parse.c b/src/jv_parse.c index 2caf330b29..3a8718ae82 100644 --- a/src/jv_parse.c +++ b/src/jv_parse.c @@ -246,6 +246,17 @@ static pfunc stream_token(struct jv_parser* p, char ch) { case '[': if (jv_is_valid(p->next)) return "Expected a separator between values"; + if (p->last_seen...
diff --git a/tests/shtest b/tests/shtest index 8af791ae2e..a7fba4451d 100755 --- a/tests/shtest +++ b/tests/shtest @@ -222,6 +222,16 @@ fi echo '{"a":1,"b",' | $JQ --stream > /dev/null 2> $d/err || true grep 'Objects must consist of key:value pairs' $d/err > /dev/null +## Regression tests for issue #2463 assert wh...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2720
c
mswebench/jqlang_m_jq:pr-2720
jqlang
jq
2718
closed
Fix indices/1 and rindex/1 in case of overlapping matches in strings
Fixes #2433
{"label": "jqlang:master", "ref": "master", "sha": "24871fb4a384d65683c6dae5c095ac2405fb3675"}
[{"number": 2433, "title": "rindex yields wrong results on overlapped occurrence", "body": "**Describe the bug**\r\n`s | rindex(t)` yields wrong results when `t` appears in `s` with overlapped occurrence.\r\n\r\n**To Reproduce**\r\n```sh\r\n % jq -n '\"ababa\" | rindex(\"aba\")' \r\n0\r\n```\r\n**E...
diff --git a/src/jv.c b/src/jv.c index facc59609a..498a14149d 100644 --- a/src/jv.c +++ b/src/jv.c @@ -1296,7 +1296,7 @@ jv jv_string_indexes(jv j, jv k) { p = jstr; while ((p = _jq_memmem(p, (jstr + jlen) - p, idxstr, idxlen)) != NULL) { a = jv_array_append(a, jv_number(p - jstr)); - p += idxlen;...
diff --git a/tests/jq.test b/tests/jq.test index 4a8bfeee0c..ebaefdb8cd 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1265,6 +1265,10 @@ split("") "a,bc,def,ghij,klmno" [1,13,[1,4,8,13]] +[ index("aba"), rindex("aba"), indices("aba") ] +"xababababax" +[1,7,[1,3,5,7]] + indices(1) [0,1,1,2,3,4,1,5] [1,2,6]
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2718
c
mswebench/jqlang_m_jq:pr-2718
jqlang
jq
2712
closed
Parse nan in JSON as NaN instead of triggering a parse error
Fixes #2021
{"label": "jqlang:master", "ref": "master", "sha": "092fef740a0d1a0ddf61cf9e7af88915071c0705"}
[{"number": 2021, "title": "Inconsistent behavior with NaN", "body": "**Describe the bug**\r\nJq does not accept `nan`, but accepts `-nan`.\r\n\r\n**To Reproduce**\r\n```\r\necho nan | jq .\r\nparse error: Invalid literal at line 2, column 0\r\n\r\necho -nan | jq .\r\nnull\r\n\r\necho NaN | jq .\r\nnull\r\n\r\necho -Na...
diff --git a/src/jv_aux.c b/src/jv_aux.c index 3153d6e61b..6a5efa9432 100644 --- a/src/jv_aux.c +++ b/src/jv_aux.c @@ -215,6 +215,7 @@ jv jv_has(jv t, jv k) { } else if (jv_get_kind(t) == JV_KIND_ARRAY && jv_get_kind(k) == JV_KIND_NUMBER) { if (jvp_number_is_nan(k)) { + jv_free(t); ret...
diff --git a/tests/jq.test b/tests/jq.test index 3182c1f362..4a8bfeee0c 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1799,6 +1799,18 @@ reduce .[] as $then (4 as $else | $else; . as $elif | . + $then * $elif) # { $__loc__ } works + { a, $__loc__, c } {"a":[1,2,3],"b":"foo","c":{"hi":"hey"}} {"a":[1,2,3],"...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2712
c
mswebench/jqlang_m_jq:pr-2712
jqlang
jq
2684
closed
Rename --nul-output to --raw-output0, abort on string containing NUL
The option naming --nul-output was confusing, especially when we have a similar option for input stream in the future (--nul-input vs --null-input). Based on the observation of other command line tools, we rename the option to --raw-output0. We also drop the short option -0 to avoid confusion on introducing the NUL...
{"label": "jqlang:master", "ref": "master", "sha": "13fbe98dff927dbe6a3eddd89e4487af3f009185"}
[{"number": 2683, "title": "Consider removing `-0`/`--nul-output` before releasing 1.7", "body": "See #1271. @vdukhovni [believes](https://github.com/jqlang/jq/issues/1271#issuecomment-1627791117) we should remove it, and explains [why](https://github.com/jqlang/jq/issues/1271#issuecomment-945051603) in the comments."...
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index a2ff8a763b..5479f98bc4 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -136,14 +136,15 @@ sections: formatted as a JSON string with quotes. This can be useful for making jq filters ta...
diff --git a/tests/shtest b/tests/shtest index 6cc428ca2a..a644b5742d 100755 --- a/tests/shtest +++ b/tests/shtest @@ -165,12 +165,20 @@ cmp $d/out $d/expected printf "[1,2][3,4]\n" | $JQ -cs add > $d/out 2>&1 cmp $d/out $d/expected -# Regression test for -0 / --nul-output +# Regression test for --raw-output0 prin...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 28, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
{"passed_count": 29, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "tests/manonigtest", "test_regset", "testcu", "count", "syntax", "test_option...
jqlang__jq-2684
c
mswebench/jqlang_m_jq:pr-2684
jqlang
jq
2650
closed
Support .a.[] and .a.[]? each syntax
Fixes #1699
{"label": "jqlang:master", "ref": "master", "sha": "7d424fd52ea9ea642dbb3283c07314fa3cbb550d"}
[{"number": 1699, "title": "`.foo.[]` is a syntax error (but not `.foo | .[]` or `.foo[]`)", "body": "Hello,\r\n\r\nFirst, thank you for your work on jq!\r\n\r\nAs I couldn't find any issue matching \u201c.[]\u201d, I thought I'd open this: `jq '.foo | .[]'` works as expected, but `jq '.foo.[]'` barfs out a syntax erro...
diff --git a/src/parser.c b/src/parser.c index 66469b5cdf..8bcaebeb3d 100644 --- a/src/parser.c +++ b/src/parser.c @@ -893,16 +893,16 @@ union yyalloc /* YYFINAL -- State number of the termination state. */ #define YYFINAL 27 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 2093 +#define YYLAST 2159 ...
diff --git a/tests/jq.test b/tests/jq.test index e62949b735..9715ef6cf2 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -173,6 +173,11 @@ jq: error: Cannot use number (0) as object key at <top-level>, line 1: [1,null,true,false,"abcdef",{},{"a":1,"b":2},[],[1,2,3,4,5],[1,2]] [null,"bc",[],[2,3],[2]] +# chaining/s...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2650
c
mswebench/jqlang_m_jq:pr-2650
jqlang
jq
2642
closed
Setup path correctly after stream parsing a key:value object pair
Fixes #2378 (assert on parsing invalid object)
{"label": "jqlang:master", "ref": "master", "sha": "7d424fd52ea9ea642dbb3283c07314fa3cbb550d"}
[{"number": 2378, "title": "jq: src/jv_parse.c:305: stream_token: Assertion `k == JV_KIND_NULL' failed.", "body": "<!--\r\nREAD THIS FIRST!\r\n\r\nIf you have a usage question, please ask us on either Stack Overflow (https://stackoverflow.com/questions/tagged/jq) or in the #jq channel (http://irc.lc/freenode/%23jq/) on...
diff --git a/src/jv_parse.c b/src/jv_parse.c index 9ced9f6d23..e91f65d02b 100644 --- a/src/jv_parse.c +++ b/src/jv_parse.c @@ -299,7 +299,7 @@ static pfunc stream_token(struct jv_parser* p, char ch) { p->output = JV_ARRAY(jv_copy(p->path), p->next); p->next = jv_invalid(); } - p->path = jv...
diff --git a/tests/shtest b/tests/shtest index 4a4f855a64..4cffb1f821 100755 --- a/tests/shtest +++ b/tests/shtest @@ -203,6 +203,10 @@ else echo "Not doing torture tests" fi +## Regression test for issue #2378 assert when stream parse broken object pair +echo '{"a":1,"b",' | $JQ --stream > /dev/null 2> $d/err...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/shtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2642
c
mswebench/jqlang_m_jq:pr-2642
jqlang
jq
2598
closed
Support optional else-branch for if-then-elif-end
Fixes #2481
{"label": "jqlang:master", "ref": "master", "sha": "edb0d88e3bb563bbc671c87d139d3c051987e77c"}
[{"number": 2481, "title": "Elif and optional else not working", "body": "**Describe the bug**\r\n\r\n`if` has an optional `else` clause but it seems to not work in combination with one or more `elif` clauses.\r\n\r\n**To Reproduce**\r\n\r\n```sh\r\n$ jq --version\r\njq-1.6-159-gcff5336\r\n\r\n$ jq -n '1,2,3 | if . == ...
diff --git a/docs/content/manual/manual.yml b/docs/content/manual/manual.yml index f9bdb1022e..091142848f 100644 --- a/docs/content/manual/manual.yml +++ b/docs/content/manual/manual.yml @@ -2147,7 +2147,7 @@ sections: `if A then B end` is the same as `if A then B else . end`. That is, the `els...
diff --git a/tests/jq.test b/tests/jq.test index ca8e27059f..8426628aea 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1116,6 +1116,13 @@ null 7 [7] +[if false then 3 elif false then 4 end] +7 +[7] + +[if false then 3 elif false then 4 else . end] +7 +[7] [.[] | [.foo[] // .bar]] [{"foo":[1,2], "bar": 42}, ...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2598
c
mswebench/jqlang_m_jq:pr-2598
jqlang
jq
2254
closed
Fix number lexer to avoid conflict with object indexing
This fixes #1526, also fixes #1651. Currently jq does not correctly handle indexing like `.e0`. It tries to parse as numeric literal even if it does not accept it. I fixed the lexer to consider `.e0` (and alike; `.E1`, `.E-1`) as object indexing, not invalid numeric literal. ``` % echo '{"e0": 1, "E1": 2, "E": 3}' ...
{"label": "jqlang:master", "ref": "master", "sha": "6864aa8630237836f31c99a2bc47ca99fdec3f56"}
[{"number": 1651, "title": "Strange behaviour when a key is like E[0-9]*", "body": "Hi,\r\n\r\nIt seems that if a key starts with the letter \"E\" and the rest of the key name consists of numbers that key is processed as an error.\r\n\r\n```\r\n$ jq --version\r\njq-1.5\r\n$ echo \"{\\\"S0\\\":\\\"bar\\\"}\" | jq .S0\r\...
diff --git a/src/lexer.c b/src/lexer.c index cd2012f1ab..3745819a45 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -582,7 +582,7 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static const flex_int16_t yy_accept[157] = +static const flex_int16_t yy_accept[158] = { 0, 0, ...
diff --git a/tests/jq.test b/tests/jq.test index 9aa435a2ea..ec88849c19 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -146,6 +146,13 @@ jq: error: Cannot use number (0) as object key at <top-level>, line 1: {"foo": {"bar": 20}} 20 +.e0, .E1, .E-1, .E+1 +{"e0": 1, "E1": 2, "E": 3} +1 +2 +2 +4 + [.[]|.foo?] [1,...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"test_options": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "regset": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "callback_each_match": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "te...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 27, "failed_count": 1, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
{"passed_count": 28, "failed_count": 0, "skipped_count": 0, "passed_tests": ["regset", "callback_each_match", "names", "test_utf8", "testc", "test_syntax", "sql", "bug_fix", "scan", "tests/onigtest", "encode", "listcap", "tests/optionaltest", "test_regset", "testcu", "count", "syntax", "test_options", "tests/utf8test",...
jqlang__jq-2254
c
mswebench/jqlang_m_jq:pr-2254
jqlang
jq
1825
closed
Support "if" without "else" clause
This implements #1824. I decided to take a stab at it to see how difficult it was, and it wasn't so difficult. Currently this PR only contains changes to the yacc file because my yacc is quite newer and I'm seeing a lot of extraneous changes to the `parser.c` and `parser.h` files. Defaults the else clause to the ...
{"label": "jqlang:master", "ref": "master", "sha": "e843a4fdf9f6f446f5ddebf2c108cb7d4dda867b"}
[{"number": 1824, "title": "Feature request: making \"else\" optional", "body": "I think it would really help shorten expressions if the `else` clause inside an `if` could be omitted, returning `.` by default.\r\n\r\nFor example the following two programs would be considered equivalent:\r\n\r\n```\r\nif .foo then\r\n ...
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index e6d4e57a1f..150565b45b 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -2044,13 +2044,16 @@ sections: produces a value other than false or null, but act the same as `C` ot...
diff --git a/tests/jq.test b/tests/jq.test index 1572043e14..e58ae2188b 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1036,6 +1036,19 @@ null null [5,6] +[if true then 3 end] +7 +[3] + +[if false then 3 end] +7 +[7] + +[if false then 3 else . end] +7 +[7] + + [.[] | [.foo[] // .bar]] [{"foo":[1,2], "bar": 42...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"tests/utf8test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "names": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "simple": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/base64test": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "tests/mantest": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "test...
{"tests/jqtest": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 19, "failed_count": 0, "skipped_count": 0, "passed_tests": ["names", "testc", "bug_fix", "tests/onigtest", "encode", "listcap", "testp", "tests/optionaltest", "testcu", "syntax", "tests/utf8test", "simple", "tests/base64test", "tests/mantest", "tests/jqtest", "tests/shtest", "posix", "user_property", "...
{"passed_count": 18, "failed_count": 1, "skipped_count": 0, "passed_tests": ["tests/onigtest", "tests/shtest", "posix", "encode", "tests/utf8test", "names", "listcap", "simple", "testp", "user_property", "tests/optionaltest", "tests/base64test", "testcu", "testc", "tests/mantest", "syntax", "sql", "bug_fix"], "failed_t...
{"passed_count": 19, "failed_count": 0, "skipped_count": 0, "passed_tests": ["names", "testc", "bug_fix", "tests/onigtest", "encode", "listcap", "testp", "tests/optionaltest", "testcu", "syntax", "tests/utf8test", "simple", "tests/base64test", "tests/mantest", "tests/jqtest", "tests/shtest", "posix", "user_property", "...
jqlang__jq-1825
c
mswebench/jqlang_m_jq:pr-1825
libgit2
libgit2
6944
closed
object: git_object_short_id fails with core.abbrev string values
Fixes #6878. Not sure if I went to far here, I noticed core.abbrev was used by diff_print.c. If the user sets core.abbrev to an integer outside of the allowed range that will now error. I also added GIT_ABBREV_MINIMUM, which Git sets to 4. libgit2 was allowing anything above zero.
{"label": "libgit2:main", "ref": "main", "sha": "c6111ec06cc0b0126cd67bdab78f8091e4cfaa10"}
[{"number": 6878, "title": "git_object_short_id fails with core.abbrev string values", "body": "### Reproduction steps\r\n\r\n1. Set up a global config setting `core.abbrev` to a string value: `git config --global core.abbrev no`\r\n2. Run a program that uses `git_object_short_id`.\r\n\r\n```c\r\n#include <assert.h>\r\...
diff --git a/src/libgit2/config_cache.c b/src/libgit2/config_cache.c index 4bb91f52b9f..05d9d5828e0 100644 --- a/src/libgit2/config_cache.c +++ b/src/libgit2/config_cache.c @@ -64,11 +64,10 @@ static git_configmap _configmap_logallrefupdates[] = { {GIT_CONFIGMAP_STRING, "always", GIT_LOGALLREFUPDATES_ALWAYS}, }; -...
diff --git a/tests/libgit2/object/shortid.c b/tests/libgit2/object/shortid.c index 69fceeedaf0..3657a419884 100644 --- a/tests/libgit2/object/shortid.c +++ b/tests/libgit2/object/shortid.c @@ -4,13 +4,12 @@ git_repository *_repo; void test_object_shortid__initialize(void) { - cl_git_pass(git_repository_open(&_repo,...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"gitdaemon_namespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon_sha256": {"run": "PASS", "test": "PASS", "fix...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["offline", "online"], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6944
c
mswebench/libgit2_m_libgit2:pr-6944
libgit2
libgit2
6788
closed
Allow more control over the user-agent
Users can now override the "product" portion of the user-agent (via `GIT_OPT_SET_USER_AGENT_PRODUCT`). This continues to default to "git/2.0", but users may define their own string, or may opt out of sending a user-agent entirely (by passing an empty string). Similarly, users may now also opt-out of sending any additio...
{"label": "libgit2:main", "ref": "main", "sha": "4bb051adec18a10b7efbb4a612a83c1c1b8d38a0"}
[{"number": 6780, "title": "Unable to completely override User-Agent", "body": "I want to make libgit2 use standard git-for-windows UA so that the firewall do not complain.\r\n#3448 apparently prohibits me from doing this.\r\n\r\n### Reproduction steps\r\n\r\n```\r\nGlobalSettings.SetUserAgent(\"git/2.43.0.windows.1\")...
diff --git a/include/git2/common.h b/include/git2/common.h index 0f42c34f683..b7cf20b31c9 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -228,7 +228,9 @@ typedef enum { GIT_OPT_SET_SERVER_CONNECT_TIMEOUT, GIT_OPT_GET_SERVER_CONNECT_TIMEOUT, GIT_OPT_SET_SERVER_TIMEOUT, - GIT_OPT_GET_SERVER_TIMEO...
diff --git a/tests/libgit2/core/useragent.c b/tests/libgit2/core/useragent.c index a4ece902fd9..2e119de4490 100644 --- a/tests/libgit2/core/useragent.c +++ b/tests/libgit2/core/useragent.c @@ -1,17 +1,52 @@ #include "clar_libgit2.h" #include "settings.h" -void test_core_useragent__get(void) +static git_buf default_...
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{}
{}
{}
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6788
c
mswebench/libgit2_m_libgit2:pr-6788
libgit2
libgit2
6761
closed
Fix message trailer parsing
Update message trailer parsing to match git behavior for ignoring patch attachments. Fixes #6760
{"label": "libgit2:main", "ref": "main", "sha": "bad5620e04cd5bc36b7e9a20b11a1cb493b12ad7"}
[{"number": 6760, "title": "`----` in commit message breaks trailer parsing", "body": "`git_message_trailers` fails to return trailers when the commit message contains 3 or more dashes, because `find_patch_start` erroneously just looks for `---` instead of `--- ` (with a trailing space, like Git does).\r\n\r\n### Repro...
diff --git a/src/libgit2/trailer.c b/src/libgit2/trailer.c index 4761c9922f2..52e655914b0 100644 --- a/src/libgit2/trailer.c +++ b/src/libgit2/trailer.c @@ -158,7 +158,7 @@ static size_t find_patch_start(const char *str) const char *s; for (s = str; *s; s = next_line(s)) { - if (git__prefixcmp(s, "---") == 0) + ...
diff --git a/tests/libgit2/message/trailer.c b/tests/libgit2/message/trailer.c index 919e10a499c..09e8f6115a7 100644 --- a/tests/libgit2/message/trailer.c +++ b/tests/libgit2/message/trailer.c @@ -3,19 +3,22 @@ static void assert_trailers(const char *message, git_message_trailer *trailers) { git_message_trailer_arr...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"gitdaemon_namespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon_sha256": {"run": "PASS", "test": "PASS", "fix...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["offline", "online"], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6761
c
mswebench/libgit2_m_libgit2:pr-6761
libgit2
libgit2
6749
closed
Fix broken regexp that matches submodule names containing ".path"
fixes #6580
{"label": "libgit2:main", "ref": "main", "sha": "8fd4f83e8acf5ee813191f08c3433e77200ea38b"}
[{"number": 6580, "title": "git_submodule_foreach() fails for certain submodules names", "body": "For certain repos `git_submodule_foreach` seems to not work without any reason or error.\r\n\r\nI can't narrow down what causes this; it happens for `.gitmodules`, for example certain names with a dot icw/ `shallow = true`...
diff --git a/src/libgit2/submodule.c b/src/libgit2/submodule.c index 95ea84fc233..830d41c7d22 100644 --- a/src/libgit2/submodule.c +++ b/src/libgit2/submodule.c @@ -196,7 +196,7 @@ static void free_submodule_names(git_strmap *names) */ static int load_submodule_names(git_strmap **out, git_repository *repo, git_confi...
diff --git a/tests/libgit2/submodule/lookup.c b/tests/libgit2/submodule/lookup.c index febb7dfad7d..14a624badef 100644 --- a/tests/libgit2/submodule/lookup.c +++ b/tests/libgit2/submodule/lookup.c @@ -401,6 +401,24 @@ void test_submodule_lookup__prefix_name(void) git_submodule_free(sm); } +/* ".path" in name of su...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"gitdaemon_namespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon_sha256": {"run": "PASS", "test": "PASS", "fix...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["offline", "online"], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6749
c
mswebench/libgit2_m_libgit2:pr-6749
libgit2
libgit2
6742
closed
revparse: ensure bare '@' is truly bare
Support a revspec of '@' to mean 'HEAD', but ensure that it's at the start of the revspec. Previously we were erroneously allowing 'foo@' to mean 'HEAD' as well. Instead, 'foo@' should be rejected. Fixes #6735
{"label": "libgit2:main", "ref": "main", "sha": "c2247bf267c8f03a6cb11edc87522a3164a44e38"}
[{"number": 6735, "title": "git_revparse_single ignores content before trailing `@`", "body": "The `git_revparse_single` function seems to ignore any content before the `@` symbol if it is the last character in the string. It treats this as the bare `@` alias for `HEAD`. I would expect it to fail with a bad revision.\r...
diff --git a/src/libgit2/revparse.c b/src/libgit2/revparse.c index 06d92f82bf2..08237628793 100644 --- a/src/libgit2/revparse.c +++ b/src/libgit2/revparse.c @@ -817,6 +817,12 @@ static int revparse( base_rev = temp_object; break; } else if (spec[pos+1] == '\0') { + if (pos) { + git_error_set(GIT_E...
diff --git a/tests/libgit2/refs/revparse.c b/tests/libgit2/refs/revparse.c index d2f464840a0..3fe07811796 100644 --- a/tests/libgit2/refs/revparse.c +++ b/tests/libgit2/refs/revparse.c @@ -889,3 +889,15 @@ void test_refs_revparse__parses_at_head(void) test_id("@{0}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750", NULL, ...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"gitdaemon_namespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon_sha256": {"run": "PASS", "test": "PASS", "fix...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["offline", "online"], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6742
c
mswebench/libgit2_m_libgit2:pr-6742
libgit2
libgit2
6723
closed
config: properly delete or rename section containing multivars
Renaming a config section or deleting its content removes each entry after copying it in its new place if needed. However, since each entry may be part of a multivar, deletion must only remove the exact entry that has just been copied. Fix #6722
{"label": "libgit2:main", "ref": "main", "sha": "25e2b9d8c217e92eb70cde85bb4007a3dec0428d"}
[{"number": 6722, "title": "Cannot delete or rename a branch whose config section contains multivar entries", "body": "If a branch configuration contains duplicated variables (multivar), the branch can neither be removed nor renamed using `libgit2`. This has been noticed using `git branchless` which uses `git2-rs` whic...
diff --git a/src/libgit2/config.c b/src/libgit2/config.c index 23a8f9ffad1..04f3ec2fee2 100644 --- a/src/libgit2/config.c +++ b/src/libgit2/config.c @@ -1509,19 +1509,32 @@ static int rename_config_entries_cb( int error = 0; struct rename_data *data = (struct rename_data *)payload; size_t base_len = git_str_len(d...
diff --git a/tests/libgit2/config/multivar.c b/tests/libgit2/config/multivar.c index 244e3755965..3ed846012fa 100644 --- a/tests/libgit2/config/multivar.c +++ b/tests/libgit2/config/multivar.c @@ -1,4 +1,6 @@ #include "clar_libgit2.h" +#include "config.h" +#include "config/config_helpers.h" static const char *_name...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"gitdaemon_namespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon_sha256": {"run": "PASS", "test": "PASS", "fix...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["offline", "online"], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6723
c
mswebench/libgit2_m_libgit2:pr-6723
libgit2
libgit2
6625
closed
errors: refactoring - never return `NULL` in `git_error_last()`
As a consumer, you often just want to print `git_error_last()->message` on an error. This would be irresponsible since `git_error_last()` can return `NULL`. Instead, always return `no error` when there's no error. Fixes #6618
{"label": "libgit2:main", "ref": "main", "sha": "f51e70dc50927a2ba5c2e2c7c22478e38a96cc28"}
[{"number": 6618, "title": "git_error_last() should never return NULL", "body": "It's very frustrating to have to call git_error_last() and test to see if it's NULL before dereferencing. It should always return a non-NULL - either a static \"no error\" or a static \"unknown error\"."}]
diff --git a/include/git2/errors.h b/include/git2/errors.h index 7180852f95c..face0898a12 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -118,63 +118,22 @@ typedef enum { * Return the last `git_error` object that was generated for the * current thread. * - * The default behaviour of this functi...
diff --git a/tests/libgit2/config/include.c b/tests/libgit2/config/include.c index 1b55fdc86fd..ba8bcad4387 100644 --- a/tests/libgit2/config/include.c +++ b/tests/libgit2/config/include.c @@ -111,7 +111,7 @@ void test_config_include__missing(void) git_error_clear(); cl_git_pass(git_config_open_ondisk(&cfg, "incl...
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{}
{}
{}
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6625
c
mswebench/libgit2_m_libgit2:pr-6625
libgit2
libgit2
6614
closed
Backports for v1.7
Backporting #6597, #6599, #6600, #6608, #6610
{"label": "libgit2:maint/v1.7", "ref": "maint/v1.7", "sha": "3e2baa6d0bfb42f9016e24cba1733a6ae26a8ae6"}
[{"number": 6607, "title": "1.7.0: missing import for git_oidarray", "body": "Hi! I'm currently attempting the rebuild of projects against libgit2 1.7.0 on Arch Linux (https://archlinux.org/todo/libgit2-17/).\r\n\r\n### Reproduction steps\r\n\r\nAttempting to build recent jami-daemon against libgit2 (see https://git.ja...
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h index 96a35d08cb2..370ca45d570 100644 --- a/include/git2/sys/transport.h +++ b/include/git2/sys/transport.h @@ -9,6 +9,7 @@ #define INCLUDE_sys_git_transport_h #include "git2/net.h" +#include "git2/oidarray.h" #include "git2/proxy.h" #includ...
diff --git a/tests/libgit2/online/clone.c b/tests/libgit2/online/clone.c index dbcac50ae6e..5789e9654c3 100644 --- a/tests/libgit2/online/clone.c +++ b/tests/libgit2/online/clone.c @@ -43,7 +43,6 @@ static char *_github_ssh_privkey = NULL; static char *_github_ssh_passphrase = NULL; static char *_github_ssh_remotehos...
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{}
{}
{}
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6614
c
mswebench/libgit2_m_libgit2:pr-6614
libgit2
libgit2
6521
closed
Ensure that `git_index_add_all` handles ignored directories
When all files beneath a directory are ignored, our diff machinery will return the directory itself. Obviously we do not operate on directories in the index, so `git_index_add_all` should ignore this case. Fixes #6517
{"label": "libgit2:main", "ref": "main", "sha": "af12fc11c520b58fe548a5ff736812462c269685"}
[{"number": 6517, "title": ".gitignore breaks git_index_add_all in certain cases", "body": "### Reproduction steps\r\n\r\nAdd `.gitignore` containing the following specification\r\n\r\n```\r\n.idea\r\n```\r\n\r\nCreate a directory with ignore name.\r\nCreate a file inside it.\r\n\r\nConstruct a `git_repository` from th...
diff --git a/src/libgit2/index.c b/src/libgit2/index.c index 195ec1d5a2f..d4532c005d0 100644 --- a/src/libgit2/index.c +++ b/src/libgit2/index.c @@ -3509,7 +3509,8 @@ static int index_apply_to_wd_diff(git_index *index, int action, const git_strarr GIT_DIFF_RECURSE_UNTRACKED_DIRS; if (flags == GIT_INDEX_ADD_FOR...
diff --git a/tests/libgit2/index/addall.c b/tests/libgit2/index/addall.c index 6f95f6386f4..e76b6e81d89 100644 --- a/tests/libgit2/index/addall.c +++ b/tests/libgit2/index/addall.c @@ -441,6 +441,52 @@ void test_index_addall__callback_filtering(void) git_index_free(index); } +void test_index_addall__handles_ignore...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{"gitdaemon_namespace": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "PASS", "fix": "PASS"}, "gitdaemon_sha256": {"run": "PASS", "test": "PASS", "fix...
{"offline": {"run": "PASS", "test": "FAIL", "fix": "PASS"}}
{}
{}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["offline", "online"], "skipped_tests": []}
{"passed_count": 11, "failed_count": 1, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "util", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["online"], "skipped_tests": []}
libgit2__libgit2-6521
c
mswebench/libgit2_m_libgit2:pr-6521
libgit2
libgit2
6520
closed
odb: restore `git_odb_open`
`git_odb_open` was erroneously removed during a refactoring; add it back. Fixes #6519
{"label": "libgit2:main", "ref": "main", "sha": "25ec37379ed07b10c4ecc6143cf6018cabc8f857"}
[{"number": 6519, "title": "1.6.2: git_odb_open symbol was removed", "body": "git_odb_open is missing in the 1.6.2 release. It was there in 1.5.1.\r\n\r\nIn 1.5.1:\r\n```\r\n# nm /usr/pkg/lib/libgit2.so | grep git_odb_open \r\n00000000000c6a0c T git_odb_open\r\n00000000000c93dd T git_odb_open_rstream\r\n00000000000c8e5...
diff --git a/src/libgit2/odb.c b/src/libgit2/odb.c index 1a02cbad974..0fc48035af2 100644 --- a/src/libgit2/odb.c +++ b/src/libgit2/odb.c @@ -856,6 +856,25 @@ int git_odb__open( return 0; } +#ifdef GIT_EXPERIMENTAL_SHA256 + +int git_odb_open( + git_odb **out, + const char *objects_dir, + const git_odb_options *opts...
diff --git a/tests/libgit2/odb/open.c b/tests/libgit2/odb/open.c new file mode 100644 index 00000000000..395406d0f3c --- /dev/null +++ b/tests/libgit2/odb/open.c @@ -0,0 +1,34 @@ +#include "clar_libgit2.h" + +void test_odb_open__initialize(void) +{ + cl_fixture_sandbox("testrepo.git"); +} + +void test_odb_open__cleanup...
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{}
{}
{}
{"gitdaemon_namespace": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "gitdaemon": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "offline": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "auth_clone_and_push": {"run": "PASS", "test": "NONE", "fix": "PASS"}, "invasive": {"run": "PASS", "test": "NONE", "fix": "PASS"...
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["util", "online"], "skipped_tests": []}
{"passed_count": 0, "failed_count": 0, "skipped_count": 0, "passed_tests": [], "failed_tests": [], "skipped_tests": []}
{"passed_count": 10, "failed_count": 2, "skipped_count": 0, "passed_tests": ["gitdaemon_namespace", "gitdaemon", "offline", "auth_clone_and_push", "invasive", "gitdaemon_sha256", "ssh", "online_customcert", "proxy", "auth_clone"], "failed_tests": ["util", "online"], "skipped_tests": []}
libgit2__libgit2-6520
c
mswebench/libgit2_m_libgit2:pr-6520