-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
chore: Reenable SQLite tests which leverage foreign key constraints et al. #24605
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,9 @@ jobs: | |
SUPERSET_CONFIG: tests.integration_tests.superset_test_config | ||
REDIS_PORT: 16379 | ||
SUPERSET__SQLALCHEMY_DATABASE_URI: | | ||
sqlite:///${{ github.workspace }}/.temp/unittest.db | ||
sqlite:///${{ github.workspace }}/.temp/superset.db?check_same_thread=true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This threw me for a curveball. I was able to successfully run the tests locally but they failed remotely with a somewhat cryptic error stating a reference table being specified in this fixture didn't exist. I speculate that this is probably due to a multithreading or connection pooling issue when running via a GitHub workflow. Ensuring a single connection per thread seems to remedy the problem. 🤞 |
||
SUPERSET__SQLALCHEMY_EXAMPLES_URI: | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
sqlite:///${{ github.workspace }}/.temp/examples.db?check_same_thread=true | ||
services: | ||
redis: | ||
image: redis:7-alpine | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird name for a database used for integration (as opposed to unit) tests. Calling this
superset.db
is inline with how the metadata database is named elsewhere—including in this workflow for MySQL and PostgreSQL.