Skip to content

Remove cyclic import from ignored for tests. - #302

Merged
dhermes merged 3 commits into
googleapis:masterfrom
dhermes:remove-cyclic-twice
Oct 28, 2014
Merged

Remove cyclic import from ignored for tests.#302
dhermes merged 3 commits into
googleapis:masterfrom
dhermes:remove-cyclic-twice

Conversation

@dhermes

Copy link
Copy Markdown
Contributor

It may be worth adding a script to check that our pylint configs don't get out of sync.

I hastily hacked together:
https://gist.github.com/dhermes/8516afb92d14fdc38cb6

@tseaver

Copy link
Copy Markdown
Contributor

LGTM.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 7d27e5c on dhermes:remove-cyclic-twice into d094d30 on GoogleCloudPlatform:master.

@dhermes

Copy link
Copy Markdown
ContributorAuthor

@tseaver WDYT about adding a check to make sure they stay in sync?

@tseaver

Copy link
Copy Markdown
Contributor

I don't know pylint well, but the best way to manage that would be to DRY one file as a delta to another.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 94d9646 on dhermes:remove-cyclic-twice into e1fd94f on GoogleCloudPlatform:master.

@dhermes

Copy link
Copy Markdown
ContributorAuthor

@tseaver I gave it a spin with ConfigParser. PTAL.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling da28005 on dhermes:remove-cyclic-twice into e1fd94f on GoogleCloudPlatform:master.

Comment threadrun_pylint.py Outdated

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Uses ConfigParser to append modifications onto base file and
writes a new config file (which is gitignore-ed) before running
pylint.
@dhermes

Copy link
Copy Markdown
ContributorAuthor

@tseaver I implemented the pragmatic approach we discussed and rebased on top of master. PTAL

@tseaver

Copy link
Copy Markdown
Contributor

LGTM, pending Travis.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling d75091a on dhermes:remove-cyclic-twice into * on GoogleCloudPlatform:master*.

dhermes added a commit that referenced this pull request Oct 28, 2014
Remove cyclic import from ignored for tests.
@dhermes
dhermes merged commit 87cf71d into googleapis:masterOct 28, 2014
@dhermes
dhermes deleted the remove-cyclic-twice branch October 28, 2014 20:39
urshala pushed a commit to urshala/google-cloud-python that referenced this pull request Jan 17, 2020
Now get_message allows to specify an object_id and expands or selects as well.
urshala pushed a commit to urshala/google-cloud-python that referenced this pull request Jan 17, 2020
atulep pushed a commit that referenced this pull request Apr 3, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 6, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 6, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
atulep pushed a commit that referenced this pull request Apr 18, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Jun 4, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Jun 4, 2023
Source-Link: googleapis/synthtool@7ff4aad
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:462782b0b492346b2d9099aaff52206dd30bc8e031ea97082e6facecc2373244
parthea pushed a commit that referenced this pull request Jun 4, 2023
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
* chore: regenerate API index
Source-Link: googleapis/googleapis@40a03de
Source-Link: googleapis/googleapis-gen@6c17328
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmMxNzMyOGU5ZTFjMmI1OGU5NjAwNzIyZThmYzhjYmU4NDYwMGQ3ZiJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
* chore: update Java and Python dependencies
PiperOrigin-RevId: 408420890
Source-Link: googleapis/googleapis@2921f9f
Source-Link: googleapis/googleapis-gen@6598ca8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9
* 🦉 Updates from OwlBot
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
- [ ] Regenerate this pull request now.
PiperOrigin-RevId: 472772457
Source-Link: googleapis/googleapis@855b74d
Source-Link: googleapis/googleapis-gen@b64b1e7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjY0YjFlN2RhM2UxMzhmMTVjYTM2MTU1MmVmMDU0NWU1NDg5MWI0ZiJ9
parthea pushed a commit that referenced this pull request Sep 22, 2023
Source-Link: googleapis/synthtool@050953d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:65e656411895bff71cffcae97246966460160028f253c2e45b7a25d805a5b142
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
- [ ] Regenerate this pull request now.
fix: improper types in pagers generation
PiperOrigin-RevId: 399773015
Source-Link: googleapis/googleapis@410c184
Source-Link: googleapis/googleapis-gen@290e883
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9
parthea pushed a commit that referenced this pull request Oct 21, 2023
Source-Link: googleapis/synthtool@06e8279
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:b3500c053313dc34e07b1632ba9e4e589f4f77036a7cf39e1fe8906811ae0fce
parthea pushed a commit that referenced this pull request Oct 21, 2023
…302)
- [ ] Regenerate this pull request now.
feat: add `tokens_per_project_per_hour` field to `PropertyQuota` type
PiperOrigin-RevId: 479394249
Source-Link: https://togithub.com/googleapis/googleapis/commit/59b73bd6f7c00dc5af895414c444b08055849bdf
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c2f211bcb3cc0b10cb71905185dd740bd26fc372
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzJmMjExYmNiM2NjMGIxMGNiNzE5MDUxODVkZDc0MGJkMjZmYzM3MiJ9
parthea pushed a commit that referenced this pull request Oct 21, 2023
* docs: removed default model comment and added comment to test
* fix: backoff on predict_test.py
* fix: backoff on predict_test.py
* fix: added backoff to predict_test.py
* fix: added backoff to predict_test.py
* fix: added backoff to predict_test.py
parthea pushed a commit that referenced this pull request Oct 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 22, 2023
* feat: enable "rest" transport in Python for services supporting numeric enums
PiperOrigin-RevId: 508143576
Source-Link: googleapis/googleapis@7a702a9
Source-Link: googleapis/googleapis-gen@6ad1279
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* chore: Update gapic-generator-python to v1.8.5
PiperOrigin-RevId: 511892190
Source-Link: googleapis/googleapis@a45d9c0
Source-Link: googleapis/googleapis-gen@1907294
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
parthea pushed a commit that referenced this pull request Jan 10, 2025
Source-Link: googleapis/synthtool@0142f35
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:99ab465187b4891e878ee4f9977b4a6aeeb0ceadf404870c416c50e06500eb42
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 18, 2025
* CLN: remove deprecated private_key auth logic
* remove unnecessary deprecation warning for private_key
* update docstrings for deprecated private_key arg
parthea pushed a commit that referenced this pull request Nov 22, 2025
chore: add SECURITY.md
parthea pushed a commit that referenced this pull request Nov 24, 2025
Nested message definitions may have fields that are types defined in
other modules. These modules need to be imported into the module that
defines the nested message def.
Ancillary changes, useful for debugging, development, and testing:
* generate.py can be used standalone without being invoked by protoc
* Specific testfiles and tests can be passed to pytest via the noxfile
parthea pushed a commit that referenced this pull request Nov 24, 2025
dir(proto.Message) defaults to dir(type)
parthea pushed a commit that referenced this pull request Nov 24, 2025
parthea pushed a commit that referenced this pull request Nov 24, 2025
* chore: use gapic-generator-python 0.65.1
PiperOrigin-RevId: 441524537
Source-Link: googleapis/googleapis@2a27391
Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Source-Link: googleapis/synthtool@bd9ede2
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:04c35dc5f49f0f503a306397d6d043685f8d2bb822ab515818c4208d7fb2db3a
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
* chore: manual synth
* Updated synth to preserve .make gitignore
Co-authored-by: Craig Labenz <craiglabenz@google.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
gcr.io/repo-automation-bots/owlbot-python:latest@sha256:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
parthea pushed a commit that referenced this pull request Nov 24, 2025
The wrapper, `_remote.RemoteCall`, added to help attach debugging into
to gRPC calls, inadvertantly introduced a race condition between the
gRPC thread and the NDB thread, where the gRPC thread might call
`RemoteCall._finish` *during* a call to `RemoteCall.add_done_callback`.
The solution, here, is to turn `RemoteCall.add_done_callback` into a
direct pass-through to `grpc.Future.add_done_callback` on the wrapped
future. The callback which is eventually executed in the gRPC thread,
only pushes the finished RPC onto a `queue.Queue` which is eventually
consumed by the event loop running in the NDB thread.
Fixes#302.
parthea pushed a commit that referenced this pull request Nov 25, 2025
gcr.io/repo-automation-bots/owlbot-python:latest@sha256:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
parthea pushed a commit that referenced this pull request Nov 26, 2025
Clean up temp files at exit.
parthea pushed a commit that referenced this pull request Mar 2, 2026
Closes#181.
**PR checklist:**
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-pubsub/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)
parthea pushed a commit that referenced this pull request Mar 9, 2026
* chore(main): release 2.0.4
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@dhermes@tseaver@coveralls