Skip to content

docs(samples): Document AI - Added Test & Evaluation Samples for v1beta3 2.3.0 #8876

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

Merged
merged 20 commits into from
Jan 19, 2023

Conversation

holtskinner
Copy link
Contributor

@holtskinner holtskinner commented Jan 6, 2023

Checklist

@holtskinner holtskinner requested review from a team as code owners January 6, 2023 18:21
@snippet-bot
Copy link

snippet-bot bot commented Jan 6, 2023

Here is the summary of changes.

You are about to add 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jan 6, 2023
@parthea parthea removed their assignment Jan 7, 2023
@parthea
Copy link
Collaborator

parthea commented Jan 7, 2023

Please resolve the lint failure in Kokoro CI - Lint
https://source.cloud.google.com/results/invocations/40f02f1c-e15e-42d2-a7d0-81e8bc7914f1/log

nox > Running session lint
nox > Creating virtual environment (virtualenv) using python3.7 in .nox/lint
nox > python -m pip install flake8 flake8-import-order
nox > flake8 --show-source --builtin=gettext --max-complexity=20 --import-order-style=google '--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py' --ignore=ANN101,E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202 --max-line-length=88 --application-import-names process_document_processor_version_sample_test,delete_processor_version_sample_test,batch_process_documents_processor_version_sample_test,batch_process_documents_processor_version_sample,process_document_ocr_sample,set_default_processor_version_sample_test,cancel_operation_sample,process_document_splitter_sample_test,undeploy_processor_version_sample,evaluate_processor_version_sample_test,batch_process_documents_sample_test,enable_processor_sample_test,noxfile,resources,fetch_processor_types_sample_test,cancel_operation_sample_test,list_processor_versions_sample_test,delete_processor_version_sample,get_processor_sample_test,disable_processor_sample_test,delete_processor_sample,process_document_processor_version_sample,quickstart_sample,review_document_sample,list_processor_versions_sample,process_document_quality_sample,evaluate_processor_version_sample,disable_processor_sample,get_processor_version_sample,process_document_form_sample_test,set_default_processor_version_sample,poll_operation_sample_test,list_processors_sample,get_evaluation_sample_test,undeploy_processor_version_sample_test,get_processor_version_sample_test,train_processor_version_sample_test,noxfile_config,review_document_sample_test,get_operation_sample_test,process_document_form_sample,process_document_sample,process_document_specialized_sample_test,create_processor_sample,list_evaluations_sample,train_processor_version_sample,list_processors_sample_test,get_processor_sample,get_operation_sample,process_document_ocr_sample_test,__init__,process_document_splitter_sample,delete_processor_sample_test,enable_processor_sample,fetch_processor_types_sample,create_processor_sample_test,batch_process_documents_sample,get_evaluation_sample,process_document_quality_sample_test,list_operations_sample,quickstart_sample_test,list_evaluations_sample_test,process_document_specialized_sample,poll_operation_sample,.nox,list_operations_sample_test,deploy_processor_version_sample_test,process_document_sample_test,deploy_processor_version_sample .
./evaluate_processor_version_sample_test.py:19:1: I100 Import statements are in the wrong order. 'from documentai.snippets import evaluate_processor_version_sample' should be before 'import mock'
from documentai.snippets import evaluate_processor_version_sample
^
./get_evaluation_sample_test.py:19:1: I100 Import statements are in the wrong order. 'from documentai.snippets import get_evaluation_sample' should be before 'import mock'
from documentai.snippets import get_evaluation_sample
^
./train_processor_version_sample_test.py:19:1: I100 Import statements are in the wrong order. 'from documentai.snippets import train_processor_version_sample' should be before 'import mock'
from documentai.snippets import train_processor_version_sample
^
nox > Command flake8 --show-source --builtin=gettext --max-complexity=20 --import-order-style=google '--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py' --ignore=ANN101,E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202 --max-line-length=88 --application-import-names process_document_processor_version_sample_test,delete_processor_version_sample_test,batch_process_documents_processor_version_sample_test,batch_process_documents_processor_version_sample,process_document_ocr_sample,set_default_processor_version_sample_test,cancel_operation_sample,process_document_splitter_sample_test,undeploy_processor_version_sample,evaluate_processor_version_sample_test,batch_process_documents_sample_test,enable_processor_sample_test,noxfile,resources,fetch_processor_types_sample_test,cancel_operation_sample_test,list_processor_versions_sample_test,delete_processor_version_sample,get_processor_sample_test,disable_processor_sample_test,delete_processor_sample,process_document_processor_version_sample,quickstart_sample,review_document_sample,list_processor_versions_sample,process_document_quality_sample,evaluate_processor_version_sample,disable_processor_sample,get_processor_version_sample,process_document_form_sample_test,set_default_processor_version_sample,poll_operation_sample_test,list_processors_sample,get_evaluation_sample_test,undeploy_processor_version_sample_test,get_processor_version_sample_test,train_processor_version_sample_test,noxfile_config,review_document_sample_test,get_operation_sample_test,process_document_form_sample,process_document_sample,process_document_specialized_sample_test,create_processor_sample,list_evaluations_sample,train_processor_version_sample,list_processors_sample_test,get_processor_sample,get_operation_sample,process_document_ocr_sample_test,__init__,process_document_splitter_sample,delete_processor_sample_test,enable_processor_sample,fetch_processor_types_sample,create_processor_sample_test,batch_process_documents_sample,get_evaluation_sample,process_document_quality_sample_test,list_operations_sample,quickstart_sample_test,list_evaluations_sample_test,process_document_specialized_sample,poll_operation_sample,.nox,list_operations_sample_test,deploy_processor_version_sample_test,process_document_sample_test,deploy_processor_version_sample . failed with exit code 1
nox > Session lint failed.
PWD: /workspace/documentai/snippets

 Testing failed: Nox returned a non-zero exit code.

@holtskinner holtskinner force-pushed the documentai-training-samples branch from 467f270 to 622d63d Compare January 10, 2023 15:53
@holtskinner holtskinner force-pushed the documentai-training-samples branch from 08a84bd to 4f9be0f Compare January 10, 2023 21:00
@holtskinner holtskinner added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 11, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 11, 2023
@holtskinner holtskinner force-pushed the documentai-training-samples branch from 7b7de71 to ec59b70 Compare January 13, 2023 15:45
@holtskinner holtskinner force-pushed the documentai-training-samples branch from ec59b70 to b7c74ef Compare January 13, 2023 17:12
@holtskinner holtskinner force-pushed the documentai-training-samples branch from e06b950 to 99e547b Compare January 17, 2023 15:23
@holtskinner holtskinner added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@holtskinner holtskinner added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@kweinmeister kweinmeister added automerge Merge the pull request once unit tests and other checks pass. do not merge Indicates a pull request not ready for merge, due to either quality or timing. and removed automerge Merge the pull request once unit tests and other checks pass. do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Jan 19, 2023
@holtskinner holtskinner added the automerge Merge the pull request once unit tests and other checks pass. label Jan 19, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 0a656b3 into main Jan 19, 2023
@gcf-merge-on-green gcf-merge-on-green bot deleted the documentai-training-samples branch January 19, 2023 18:26
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 19, 2023
telpirion pushed a commit that referenced this pull request Mar 13, 2023
…eta3` 2.3.0 (#8876)

- Replacement for https://github.com/googleapis/python-documentai/pull/417

## Checklist
- [X] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md)
- [X] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#readme-file)
- [X] **Tests** pass:   `nox -s py-3.9` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [X] **Lint** pass:   `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [X] Please **merge** this PR for me once it is approved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants