Skip to content

[Xcode 15.1 Beta 2] Two tests failed due to "database is locked Possibly there are two concurrent builds running in the same filesystem location" #894

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

Closed
shahmishal opened this issue Oct 29, 2023 · 4 comments · Fixed by #896

Comments

@shahmishal
Copy link
Member

******************** TEST 'llbuild-unit :: ./CoreTests/19/22' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/build/buildbot_incremental/llbuild-macosx-x86_64/bin/./CoreTests-llbuild-unit-56116-19-22.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=22 GTEST_SHARD_INDEX=19 /Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/build/buildbot_incremental/llbuild-macosx-x86_64/bin/./CoreTests
--

Script:
--
/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/build/buildbot_incremental/llbuild-macosx-x86_64/bin/./CoreTests --gtest_filter=SQLiteBuildDBTest.ErrorHandling
--
using db: /var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-97dbf9.db
/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/llbuild/unittests/Core/SQLiteBuildDBTest.cpp:53: Failure
Expected equality of these values:
  error
    Which is: "error: accessing build database \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-97dbf9.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
  out.str()
    Which is: "error: accessing build database \"/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-97dbf9.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."

/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/llbuild/unittests/Core/SQLiteBuildDBTest.cpp:53
Expected equality of these values:
  error
    Which is: "error: accessing build database \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-97dbf9.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
  out.str()
    Which is: "error: accessing build database \"/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-97dbf9.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."


********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: llbuild-unit :: ./CoreTests/20/22 (216 of 216)
******************** TEST 'llbuild-unit :: ./CoreTests/20/22' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/build/buildbot_incremental/llbuild-macosx-x86_64/bin/./CoreTests-llbuild-unit-56116-20-22.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=22 GTEST_SHARD_INDEX=20 /Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/build/buildbot_incremental/llbuild-macosx-x86_64/bin/./CoreTests
--

Script:
--
/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/build/buildbot_incremental/llbuild-macosx-x86_64/bin/./CoreTests --gtest_filter=SQLiteBuildDBTest.LockedWhileBuilding
--
using db: /var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db
/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/llbuild/unittests/Core/SQLiteBuildDBTest.cpp:90: Failure
Expected equality of these values:
  error
    Which is: "error: accessing build database \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
  out.str()
    Which is: "error: accessing build database \"/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/llbuild/unittests/Core/SQLiteBuildDBTest.cpp:101: Failure
Expected equality of these values:
  error
    Which is: "error: accessing build database \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
  out.str()
    Which is: "error: accessing build database \"/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."

/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/llbuild/unittests/Core/SQLiteBuildDBTest.cpp:90
Expected equality of these values:
  error
    Which is: "error: accessing build database \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
  out.str()
    Which is: "error: accessing build database \"/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
/Users/ec2-user/jenkins/workspace/test-new-xcode-oss-swift-pr-test-macos/llbuild/unittests/Core/SQLiteBuildDBTest.cpp:101
Expected equality of these values:
  error
    Which is: "error: accessing build database \"/private/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."
  out.str()
    Which is: "error: accessing build database \"/var/folders/bb/hcrjxg1s0b96pfst0ymhmp240000gn/T/lit-tmp-73cb8z_f/build-d72b33.db\": database is locked Possibly there are two concurrent builds running in the same filesystem location."


********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (2):
  llbuild-unit :: ./CoreTests/SQLiteBuildDBTest/ErrorHandling
  llbuild-unit :: ./CoreTests/SQLiteBuildDBTest/LockedWhileBuilding
@shahmishal
Copy link
Member Author

@dmbryson Looks like you might have a PR to resolve this issue #829.

@shahmishal
Copy link
Member Author

For now, I have disabled llbuild testing while we wait for fix. swiftlang/swift@5bc7c39

shahmishal added a commit to swiftlang/swift that referenced this issue Nov 6, 2023
@shahmishal
Copy link
Member Author

We are seeing this blocker on release/5.10 too.

@dmbryson
Copy link
Contributor

dmbryson commented Nov 6, 2023

Hmm, that PR is unrelated. The issue is the resolution of the tempdir in the test varies. /private/var/folders vs /var/folders

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

Successfully merging a pull request may close this issue.

2 participants