Skip to content

Commit 500087b

Browse files
dpebotJustinBeckwith
authored andcommitted
Update the kokoro config (#145)
1 parent 365f73e commit 500087b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

packages/google-privacy-dlp/.circleci/npm-install-retry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let spawn = require('child_process').spawn;
66
//USE: ./index.js <ms npm can be idle> <number of attempts> [... NPM ARGS]
77
//
88

9-
let timeout = process.argv[2] || 60000;
9+
let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000;
1010
let attempts = process.argv[3] || 3;
1111
let args = process.argv.slice(4);
1212
if (args.length === 0) {

packages/google-privacy-dlp/src/v2/dlp_service_client_config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"DEADLINE_EXCEEDED",
77
"UNAVAILABLE"
88
],
9-
"non_idempotent": []
9+
"http_get": [
10+
"DEADLINE_EXCEEDED",
11+
"UNAVAILABLE"
12+
],
13+
"non_idempotent": [],
14+
"no_retry": []
1015
},
1116
"retry_params": {
1217
"default": {

packages/google-privacy-dlp/synth.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
"""This script is used to synthesize generated parts of this library."""
1516

1617
import synthtool as s
1718
import synthtool.gcp as gcp
1819
import subprocess
1920

2021
gapic = gcp.GAPICGenerator()
21-
common_templates = gcp.CommonTemplates()
2222

2323
version = 'v2'
2424
library = gapic.node_library(
2525
'dlp', version, config_path='/google/privacy/dlp/artman_dlp_v2.yaml')
2626
s.copy(library, excludes=['src/index.js', 'README.md', 'package.json'])
2727

28-
templates = common_templates.node_library(
29-
package_name="@google-cloud/dlp", repo_name="googleapis/nodejs-dlp")
28+
common_templates = gcp.CommonTemplates()
29+
templates = common_templates.node_library()
3030
s.copy(templates)
31+
3132
'''
3233
Node.js specific cleanup
3334
'''

0 commit comments

Comments
 (0)