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

Patching out loadStorage breaks influxql cumulative_sum tests in influxdb #3145

Closed
rockstar opened this issue Aug 25, 2020 · 4 comments
Closed

Comments

@rockstar
Copy link
Contributor

Recently, we changed the implementation of loadStorage to validate the data that's being loaded. To work around the (prevalent) issue of existing bad data, we patched out loadStorage in many tests to bypass that validation, with the intent to come back and fix the data in places where it needed to be fixed.

testing/influxql/cumulative_sum, for instance, needs to be fixed, because the test data is used by influx itself.

@wolffcm
Copy link

wolffcm commented Sep 15, 2020

@rockstar Is the issue here that the test fails with something like this?

      --- FAIL: TestFluxEndToEnd/testing/promql/extrapolatedRate_counter_rate (0.02s)
            end_to_end_test.go:226: @8:1-13:2: option "testing.loadStorage" reassigned

I have seen something similar in tests I'm running in OSS.

@rockstar
Copy link
Contributor Author

Yeah, that’s the exact issue. Looking at the tests themselves, we can’t be overriding loadStorage for those tests because those tests need to set their own implementation.

@wolffcm
Copy link

wolffcm commented Sep 17, 2020

Should this be merged with #3155 then?

Copy link

This issue has had no recent activity and will be closed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants