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

CI build fails as change detected if a new test is added. #332

Closed
shahzadlone opened this issue Apr 7, 2022 · 0 comments · Fixed by #333
Closed

CI build fails as change detected if a new test is added. #332

shahzadlone opened this issue Apr 7, 2022 · 0 comments · Fixed by #333
Assignees
Labels
area/testing Related to any test or testing suite ci/build This is issue is about the build or CI system, and the administration of it.
Milestone

Comments

@shahzadlone
Copy link
Member

Failed
=== RUN   TestRelationalDeletionOfADocumentUsingSingleKey_Success
2022-04-07T22:14:29.315Z, �[33mWARN�[0m, defra.db.tests, tests/utils.go:278, Relational delete mutation where one element exists., {"Database": "badger-file-system"}
2022-04-07T22:14:29.315Z, �[34mINFO�[0m, defra.db, db/db.go:203, Closing DefraDB process...
2022-04-07T22:14:29.320Z, �[34mINFO�[0m, defra.db, db/db.go:208, Successfully closed running process
2022-04-07T22:14:29.320Z, �[31mERROR�[0m, defra.db.tests, tests/utils.go:558, , {"Error": "chdir /tmp/defra/6f56272db758eb6b16addcdac1ae61f45d2430f1/code/db/tests/mutation/relation/delete: no such file or directory"}
--- FAIL: TestRelationalDeletionOfADocumentUsingSingleKey_Success (0.01s)
panic: chdir /tmp/defra/6f56272db758eb6b16addcdac1ae61f45d2430f1/code/db/tests/mutation/relation/delete: no such file or directory [recovered]
	panic: chdir /tmp/defra/6f56272db758eb6b16addcdac1ae61f45d2430f1/code/db/tests/mutation/relation/delete: no such file or directory

goroutine 82 [running]:
testing.tRunner.func1.2({0xbb0300, 0xc00021b7d0})
	/usr/local/go/src/testing/testing.go:1209 +0x24e
testing.tRunner.func1()
	/usr/local/go/src/testing/testing.go:1212 +0x218
panic({0xbb0300, 0xc00021b7d0})
	/usr/local/go/src/runtime/panic.go:1038 +0x215
github.com/sourcenetwork/defradb/db/tests.setupDatabaseUsingTargetBranch({0xd8ae10, 0xc00003c058}, 0xc0002aa680, {{0xc7ae35, 0x12}, {0xc0000f0910, 0x4a}, {0xd9e860, 0xc00016fe30}, {0xd97fd8, ...}}, ...)
	/home/circleci/repo/db/tests/utils.go:559 +0x645
github.com/sourcenetwork/defradb/db/tests.ExecuteQueryTestCase(0xf26db7, {0xc9fb94, 0xf9}, {0xc0001f7cd8, 0x3, 0x3}, {{0xc966ed, 0x34}, {0xc9e59c, 0x6b}, ...})
	/home/circleci/repo/db/tests/utils.go:286 +0x37a
github.com/sourcenetwork/defradb/db/tests/mutation/relation.ExecuteTestCase(...)
	/home/circleci/repo/db/tests/mutation/relation/utils.go:42
github.com/sourcenetwork/defradb/db/tests/mutation/relation/delete.TestRelationalDeletionOfADocumentUsingSingleKey_Success(0x0)
	/home/circleci/repo/db/tests/mutation/relation/delete/single_id_test.go:167 +0x90e
testing.tRunner(0xc0002aa680, 0xca9b00)
	/usr/local/go/src/testing/testing.go:1259 +0x102
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1306 +0x35a
@shahzadlone shahzadlone added area/testing Related to any test or testing suite ci/build This is issue is about the build or CI system, and the administration of it. labels Apr 7, 2022
@shahzadlone shahzadlone added this to the DefraDB v0.3 milestone Apr 7, 2022
@shahzadlone shahzadlone self-assigned this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Related to any test or testing suite ci/build This is issue is about the build or CI system, and the administration of it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant