-
Notifications
You must be signed in to change notification settings - Fork 32
test: add back emulator test workflow #71
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
Conversation
@IlyaFaer would you be able to take this PR and skip the relevant tests to get the workflow green? I tried to see if I can debug it but I'm not sure where the primary key test is failing :( |
@skuruppu, yeah, I'm taking a look. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
Hm-m... Does Spanner emulator support tables with an empty primary key? The error Yeah, that's probably the thing that forced us to use only live service in testing (I don't remember clearly, but the error is definitely looks familiar) - it'll require a long list of overrides, as many tests using these empty primary keys. |
I ran some tests (using the Node.js client) against the emulator and I was able to successfully create a table with no primary key, insert a row and query it back. So I don't think that's it. |
test/test_suite.py
Outdated
@pytest.mark.skipif( | ||
os.getenv("SPANNER_EMULATOR_HOST"), | ||
reason="Numeric type isn't supported by emulator yet", | ||
) |
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.
I don't think these should fail. The latest release of the emulator does support NUMERIC. See googleapis/nodejs-spanner#1358 where we enabled the tests on Node.js.
Returning to this one, taking a closer look... |
This reverts commit 976b730.
Unfortunately, I'm about to disagree. The first test case failing bad with An SQLs without primary key explicitly defined look like this in SQLAlchemy: CREATE TABLE Singers (
SingerId INT64 NOT NULL,
FirstName STRING(1024),
LastName STRING(1024),
SingerInfo BYTES(MAX)
) PRIMARY KEY () Thus, primary key definition is empty. And seems like it's confusing the emulator. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
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.
LGTM
Several tests are failing with |
No description provided.