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

PromQL tests fail to run on a system with 4gb /tmp space #3299

Closed
grobie opened this Issue Oct 16, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@grobie
Copy link
Member

grobie commented Oct 16, 2017

What did you do?

go test github.com/prometheus/prometheus/promql

What did you expect to see?

Tests to succeed.

What did you see instead? Under which circumstances?

...
--- FAIL: TestEvaluations (7.40s)
        promql_test.go:33: error running test testdata/functions.test: log series: no space left on device
        promql_test.go:33: error running test testdata/histograms.test: log series: no space left on device
        promql_test.go:33: error running test testdata/legacy.test: log series: no space left on device
        promql_test.go:33: error running test testdata/operators.test: log series: no space left on device
        promql_test.go:33: error running test testdata/selectors.test: log series: no space left on device
        promql_test.go:33: error running test testdata/staleness.test: log series: no space left on device
FAIL
FAIL    github.com/prometheus/prometheus/promql 7.861s

Environment

  • System information:

    Linux 4.13.6-1-ARCH x86_64

tmpfs is 4GB: tmpfs on /tmp type tmpfs (rw,nosuid,nodev)

  • Prometheus version:

    master + updated tsdb (commit: 721050c)

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Oct 17, 2017

This has happened with me too but I think I had /tmp with 2G (away from my machine). I think the issue is not that a test can produce 4G but the artifacts from the older tests are not being cleaned. Needs to be investigated, but I think a defer os.RemoveAll() can fix this.

@grobie

This comment has been minimized.

Copy link
Member Author

grobie commented Oct 17, 2017

I actually deleted everything in /tmp and started with 99% free space and still couldn't run the tests.

brian-brazil added a commit that referenced this issue Mar 8, 2018

iobestar pushed a commit to iobestar/prometheus that referenced this issue Apr 10, 2018

sipian pushed a commit to sipian/prometheus that referenced this issue May 18, 2018

Cleanup storage from all tests.
Fixed prometheus#3299

Signed-off-by: sipian <cs15btech11019@iith.ac.in>
@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.