8000 build: use new nox, add kokoro, remove samples directory (#144) · googleapis/google-cloud-python@b1d7866 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1d7866

Browse files
authored
build: use new nox, add kokoro, remove samples directory (#144)
1 parent 61fbc38 commit b1d7866

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+888
-3612
lines changed

packages/google-cloud-dialogflow/.circleci/config.yml

Lines changed: 0 additions & 186 deletions
This file was deleted.
Binary file not shown.
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[run]
23
branch = True
3-
omit =
4-
*/proto/*
54

65
[report]
7-
fail_under = 80
6+
fail_under = 100
87
show_missing = True
98
exclude_lines =
109
# Re-enable the standard pragma
1110
pragma: NO COVER
1211
# Ignore debug-only repr
1312
def __repr__
13+
# Ignore abstract methods
14+
raise NotImplementedError
15+
omit =
16+
*/gapic/*.py
17+
*/proto/*.py
18+
*/core/*.py
19+
*/site-packages/*.py
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[flake8]
3+
ignore = E203, E266, E501, W503
24
exclude =
5+
# Exclude generated code.
6+
**/proto/**
7+
**/gapic/**
8+
*_pb2.py
9+
10+
# Standard linting exemptions.
311
__pycache__,
4-
.nox
512
.git,
613
*.pyc,
714
conf.py

packages/google-cloud-dialogflow/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,30 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/dialogflow-python-client-v2/issues
14+
- Check for answers on StackOverflow: http://stackoverflow.com/questions/
1415

1516
If you are still having issues, please be sure to include as much information as possible:
1617

1718
#### Environment details
1819

19-
- OS:
20-
- Python version:
21-
- pip version:
22-
- `dialogflow` version:
20+
1. OS type and version
21+
2. Python version and virtual environment information: `python --version`
22+
3. dialogflow version: `pip show dialogflow` or `pip freeze`
2323

2424
#### Steps to reproduce
2525

2626
1. ?
27-
2. ?
27+
28+
#### Code example
29+
30+
```python
31+
# example
32+
```
33+
34+
#### Stack trace
35+
```
36+
# example
37+
```
2838

2939
Making sure to follow these steps will guarantee the quickest resolution possible.
3040

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
releaseType: python
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
3+
# Copyright 2018 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -eo pipefail
18+
19+
cd github/dialogflow-python-client-v2
20+
21+
# Disable buffering, so that the logs stream through.
22+
export PYTHONUNBUFFERED=1
23+
24+
# Debug: show build environment
25+
env | grep KOKORO
26+
27+
# Setup service account credentials.
28+
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
29+
30+
# Setup project id.
31+
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
32+
33+
# Remove old nox
34+
python3.6 -m pip uninstall --yes --quiet nox-automation
35+
36+
# Install nox
37+
python3.6 -m pip install --upgrade --quiet nox
38+
python3.6 -m nox --version
39+
40+
python3.6 -m nox
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Download trampoline resources.
11+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+
# Download resources for system tests (service account key, etc.)
14+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"
15+
16+
# Use the trampoline script to run in docker.
17+
build_file: "dialogflow-python-client-v2/.kokoro/trampoline.sh"
18+
19+
# Configure the docker image for kokoro-trampoline.
20+
env_vars: {
21+
key: "TRAMPOLINE_IMAGE"
22+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
23+
}
24+
env_vars: {
25+
key: "TRAMPOLINE_BUILD_FILE"
26+
value: "github/dialogflow-python-client-v2/.kokoro/build.sh"
27+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Download trampoline resources.
11+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+
# Use the trampoline script to run in docker.
14+
build_file: "dialogflow-python-client-v2/.kokoro/trampoline.sh"
15+
16+
# Configure the docker image for kokoro-trampoline.
17+
env_vars: {
18+
key: "TRAMPOLINE_IMAGE"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
20+
}
21+
env_vars: {
22+
key: "TRAMPOLINE_BUILD_FILE"
23+
value: "github/dialogflow-python-client-v2/.kokoro/publish-docs.sh"
24+
}
25+
26+
env_vars: {
27+
key: "STAGING_BUCKET"
28+
value: "docs-staging"
29+
}
30+
31+
# Fetch the token needed for reporting release status to GitHub
32+
before_action {
33+
fetch_keystore {
34+
keystore_resource {
35+
keystore_config_id: 73713
36+
keyname: "yoshi-automation-github-key"
37+
}
38+
}
39+
}
40+
41+
before_action {
42+
fetch_keystore {
43+
keystore_resource {
44+
keystore_config_id: 73713
45+
keyname: "docuploader_service_account"
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)
0