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 — tests: add system tests to check error details by atulep · Pull Request #1076 · googleapis/gapic-generator-python

This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Conversation

@atulep

@atulep atulep commented Nov 8, 2021

Copy link
Copy Markdown
Contributor

System tests to check error details added in googleapis/python-api-core#286.

Sorry, something went wrong.

Uh oh!

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

All reactions
Aza Tulepbergenov and others added 18 commits September 7, 2021 10:58
Aza Tulepbergenov
feat: add support for context manager in client.
fd9148f
Aza Tulepbergenov
chore: remove extra whitespace.
b677108
Aza Tulepbergenov
chore: adds autogenerated unit tests.
15b2533
Aza Tulepbergenov
chore: adds stronger warning.
f5dc286
Aza Tulepbergenov
chore: fixes tests.
c560997
Aza Tulepbergenov
chore: adds auto-generated tests for ads.
983888b
Aza Tulepbergenov
chore: updates golden files.
3e49e1a
Aza Tulepbergenov
chore: refactor.
b00a6a6
Aza Tulepbergenov
chore: refactor.
77d92c7
Aza Tulepbergenov
feat: adds close() to transport and ctx to async client.
4707af5
Aza Tulepbergenov
feat: adds close method and removes ctx from transport in ads.
a136e61
Aza Tulepbergenov
chore: adds warning infobox to docstring.
3ab1200
Aza Tulepbergenov
chore: updates integration tests.
db48daf
Aza Tulepbergenov
chore: fixes typo.
73f162c
@atulep
Merge branch 'master' into master
d169bc2
Aza Tulepbergenov
Merge branch 'master' of github.com:googleapis/gapic-generator-python…
2bb6b49
… into googleapis-master
Aza Tulepbergenov
Merge branch 'googleapis-master'
a8814de
@atulep
Merge branch 'googleapis:master' into master
6edf8b5
@atulep
atulep requested review from a team November 8, 2021 17:52
@atulep atulep changed the title Adds system tests to check error details. feat: Adds system tests to check error details. Nov 8, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 8, 2021
@atulep

atulep commented Nov 8, 2021

Copy link
Copy Markdown
Contributor Author

The commit history in this PR is misleading. It contains some of my older commits unrelated to this PR. Any ideas how to fix it?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver changed the title feat: Adds system tests to check error details. tests: add system tests to check error details Nov 8, 2021
tseaver
tseaver reviewed Nov 8, 2021
View reviewed changes
Comment thread tests/system/test_error_details.py Resolved

Uh oh!

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

tseaver
tseaver reviewed Nov 8, 2021
View reviewed changes

@tseaver tseaver left a comment

Copy link
Copy Markdown
Contributor

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.

In addition to my comments inline, two things:

  • These are unit tests, not system tests (they don't exercise actual over-the-wire API calls).
  • They belong in python-api-core, not in this repository.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread tests/system/test_error_details.py Resolved

Uh oh!

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

Comment thread tests/system/test_error_details.py Resolved

Uh oh!

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

@tseaver tseaver added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 8, 2021
@tseaver

tseaver commented Nov 8, 2021

Copy link
Copy Markdown
Contributor

@atulep For future reference, you can rebase your branch against main (e.g., git rebase main) to clean up the previous history.

All reactions

Sorry, something went wrong.

Uh oh!

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

@atulep

atulep commented Nov 8, 2021

Copy link
Copy Markdown
Contributor Author

In addition to my comments inline, two things:

  • These are unit tests, not system tests (they don't exercise actual over-the-wire API calls).
  • They belong in python-api-core, not in this repository.

@tseaver
Tests send API requests to showcase server and assert errors returned from real server response.

We want gapic clients to have access to error.details, so we should test it here. Additionally,python-api-core doesn't have any existing infrastructure for system tests, which suggested to me it's not a suitable place.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Nov 8, 2021

Copy link
Copy Markdown
Contributor

@atulep I apologize -- I somehow missed seeing that these tests use the echo fixture.

Please do rebase your branch against the current main and force push, e.g.:

$ git fetch --all --prune
$ git checkout main
$ git checkout error_details
$ git rebase main
$ git push -f origin error_details

I would also avoid re-using a branch after merging its PR.

All reactions

Sorry, something went wrong.

Uh oh!

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

@atulep

atulep commented Nov 9, 2021

Copy link
Copy Markdown
Contributor Author

@tseaver, I followed your script, but it gave me:

$ git rebase master
Current branch error_details is up to date.

Maybe it's easier to start a fresh PR with correct history.

All reactions

Sorry, something went wrong.

Uh oh!

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

summer-ji-eng
summer-ji-eng approved these changes Nov 10, 2021
View reviewed changes

@summer-ji-eng summer-ji-eng left a comment

Copy link
Copy Markdown

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.

It's not blocker, but please add a test case for error_info once the feature merged.

Thank you very much. :)

Sorry, something went wrong.

Uh oh!

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

All reactions
Aza Tulepbergenov added 3 commits November 10, 2021 15:27
Aza Tulepbergenov
Merge branch 'master' of github.com:googleapis/gapic-generator-python
aa5a9ee
Aza Tulepbergenov
feat: adds system tests to check error details.
b7363ca
Aza Tulepbergenov
chore: address pr comments.
e219710
@atulep atulep removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 10, 2021
@atulep
atulep merged commit a03bc22 into googleapis:master Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@tseaver tseaver tseaver left review comments
@summer-ji-eng summer-ji-eng summer-ji-eng approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

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.

3 participants

@atulep @tseaver @summer-ji-eng
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.