Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate random fuzzing failures #485

Open
GiedriusS opened this issue Sep 19, 2024 · 0 comments
Open

Investigate random fuzzing failures #485

GiedriusS opened this issue Sep 19, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@GiedriusS
Copy link
Member

GiedriusS commented Sep 19, 2024

Run make fuzz locally and observe failures such as:

--- FAIL: FuzzEnginePromQLSmithInstantQuery (27.14s)
    --- FAIL: FuzzEnginePromQLSmithInstantQuery (0.46s)
        enginefuzz_test.go:450: load 30s
                                http_requests_total{pod="nginx-1", route="/"} 120.00+11.00x40
                                http_requests_total{pod="nginx-2", route="/"} -35+2.00x40
        enginefuzz_test.go:452: sum by (pod, route) (
              count(
                sinh(
                  asin(
                    (
                        avg({__name__="http_requests_total"} @ start())
                      and
                        absent(sort({__name__="http_requests_total",route="/"} offset 2m31s))
                    )
                  )
                )
              )
            )
        enginefuzz_test.go:454: case 21 error mismatch.
            new result: 
            old result: {} => 1 @[7000]
        enginefuzz_test.go:459: failed 1 test cases

Or

--- FAIL: FuzzEnginePromQLSmithInstantQuery (0.43s)
    --- FAIL: FuzzEnginePromQLSmithInstantQuery (0.21s)
        enginefuzz_test.go:450: load 30s
                                http_requests_total{pod="nginx-1", route="/"} -46.00+1.00x40
                                http_requests_total{pod="nginx-2", route="/"}  9+2.00x40
        enginefuzz_test.go:452: count_values without (__name__) ("value", sgn(-ln(idelta({__name__="http_requests_total"}[3m]))))
        enginefuzz_test.go:454: case 53 error mismatch.
            new result: {pod="nginx-1", route="/", value="0"} => 1 @[55000]
            {pod="nginx-2", route="/", value="-1"} => 1 @[55000]
            old result: {pod="nginx-1", route="/", value="-0"} => 1 @[55000]
            {pod="nginx-2", route="/", value="-1"} => 1 @[55000]
        enginefuzz_test.go:459: failed 1 test cases
@GiedriusS GiedriusS added the good first issue Good for newcomers label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant