GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Updating Bigtable stub creation to work with emulator. by dhermes · Pull Request #2249 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Sep 6, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

System test will be updated soon, once some issues with the emulator are worked out.


Message was previously:

Currently does not work as-is since most of the methods (most notable row.commit()) result in UNAVAILABLE from the backend.


Towards #2242.

/cc @garye Could you check out this branch and run tox -e bigtable-emulator to see the failures?

NOTE: Has #2245 as diffbase.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes dhermes added testing api: bigtable Issues related to the Bigtable API. labels Sep 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 6, 2016
@garye

garye commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

I'll take a look

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 6, 2016

Copy link
Copy Markdown
Contributor Author

Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 6, 2016

Copy link
Copy Markdown
Contributor Author

@garye I should note that only the last commit is germane to this PR, the rest are for the two diffbase PRs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 6, 2016

Copy link
Copy Markdown
Contributor Author

@garye I have found the start of a culprit. Some operations accidentally kill the server, causing all subsequent operations to fail. Also the example stack trace refers to a path not on my machine (/usr/local/google/home/garyelliott)

$ gcloud beta emulators bigtable start
Executing: /home/dhermes/google-cloud-sdk/platform/bigtable-emulator/cbtemulator --host=localhost --port=8645
[bigtable] Cloud Bigtable emulator running on 127.0.0.1:8645
[bigtable] panic: runtime error: invalid memory address or nil pointer dereference
[bigtable] [signal 0xb code=0x1 addr=0x48 pc=0x4888c8]
[bigtable] 
[bigtable] goroutine 16 [running]:
[bigtable] panic(0x9348a0, 0xc820010130)
[bigtable]      /usr/local/google/home/garyelliott/dl_go/go/src/runtime/panic.go:481 +0x3e6
[bigtable] cloud.google.com/go/bigtable/bttest.(*server).SampleRowKeys(0xc820013a00, 0xc8201b0c10, 0x7f4c92733130, 0xc8201b0c40, 0x0, 0x0)
[bigtable]      <autogenerated>:3 +0x78
[bigtable] google.golang.org/genproto/googleapis/bigtable/v2._Bigtable_SampleRowKeys_Handler(0x9c5360, 0xc820013a00, 0x7f4c92733098, 0xc8200842d0, 0x0, 0x0)
[bigtable]      /usr/local/google/home/garyelliott/go/src/google.golang.org/genproto/googleapis/bigtable/v2/bigtable.pb.go:817 +0x175
[bigtable] google.golang.org/grpc.(*Server).processStreamingRPC(0xc820017900, 0x7f4c926e7200, 0xc820084240, 0xc8201e23c0, 0xc8201754a0, 0xcf9d80, 0xc8201f68d0, 0x0, 0x0)
[bigtable]      /usr/local/google/home/garyelliott/go/src/google.golang.org/grpc/server.go:686 +0x489
[bigtable] google.golang.org/grpc.(*Server).handleStream(0xc820017900, 0x7f4c926e7200, 0xc820084240, 0xc8201e23c0, 0xc8201f68d0)
[bigtable]      /usr/local/google/home/garyelliott/go/src/google.golang.org/grpc/server.go:770 +0x1151
[bigtable] google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc8201b0ac0, 0xc820017900, 0x7f4c926e7200, 0xc820084240, 0xc8201e23c0)
[bigtable]      /usr/local/google/home/garyelliott/go/src/google.golang.org/grpc/server.go:419 +0xa0
[bigtable] created by google.golang.org/grpc.(*Server).serveStreams.func1
[bigtable]      /usr/local/google/home/garyelliott/go/src/google.golang.org/grpc/server.go:420 +0x9a
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 7, 2016

Copy link
Copy Markdown
Contributor

@dhermes needs rebasing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes force-pushed the add-bigtable-emulator branch from 49c6e7c to 5000ac6 Compare September 7, 2016 23:07
@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

PEP8 failure

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver
tseaver reviewed Sep 8, 2016
View reviewed changes
Comment thread system_tests/bigtable.py Outdated
instances, failed_locations = retry(Config.CLIENT.list_instances)()

if len(failed_locations) != 0:
raise ValueError('List instances failed in module set up.')

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

Would it be simpler to wrap the instance admin / table admin testsuite classes in @unittest.skipIf(IN_EMULATOR)?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 8, 2016

Copy link
Copy Markdown
Contributor Author

Would it be simpler to wrap the instance admin / table admin testsuite classes in @unittest.skipIf(IN_EMULATOR)?

The problem is that IN_EMULATOR is not known at import time, since setting the env. var. happens in Python (via run_emulator.py).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes force-pushed the add-bigtable-emulator branch from 5000ac6 to 191c042 Compare September 8, 2016 02:14
@dhermes dhermes changed the title Updating Bigtable system test to work with emulator. Updating Bigtable stub creation to work with emulator. Sep 8, 2016
@dhermes
Updating Bigtable stub creation to work with emulator.
4191ebf
System test will be updated soon, once some issues with
the emulator are worked out.
@dhermes
dhermes force-pushed the add-bigtable-emulator branch from 191c042 to 4191ebf Compare September 8, 2016 03:04
@dhermes

dhermes commented Sep 8, 2016

Copy link
Copy Markdown
Contributor Author

FWIW the AppVeyor check has been deleted (was created when messing around trying to create https://ci.appveyor.com/project/GoogleCloudPlatform/google-cloud-python/)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 8, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes merged commit 1137e6a into googleapis:master Sep 8, 2016
@dhermes
dhermes deleted the add-bigtable-emulator branch September 8, 2016 18:02
@dhermes dhermes mentioned this pull request Sep 8, 2016
Add support for BIGTABLE_EMULATOR_HOST environment variable #2242
Closed
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigtable Issues related to the Bigtable API. cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dhermes @garye @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.