build(node_library): migrate to Trampoline V2#762
Conversation
| # Defaults to /workspace. | ||
| # Potentially there are some repo specific envvars in .trampolinerc in | ||
| # the project root. | ||
|
|
There was a problem hiding this comment.
Please add:
- A example of a call the this script.
- A description of how it fits into the larger pipeline. Does an automated tool call this script? Or a human? When? Who consumers the output docker file?
| @@ -1,28 +0,0 @@ | |||
| #!/bin/bash | |||
There was a problem hiding this comment.
To make this PR easier to rollback, please don't delete this file yet. Please add a comment describing that it's obsolete and add a TODO() to delete it.
| function msg { println "$*" >&2 ;} | ||
| function println { printf '%s\n' "$(now) $*" ;} | ||
|
|
||
| # Populates requested secrets set in SECRET_MANAGER_KEYS |
There was a problem hiding this comment.
Who do we expect to call this script? When? Why? Please add comments around line 15.
bcoe
left a comment
There was a problem hiding this comment.
This looks good to me, and has been tested here:
googleapis/nodejs-phishing-protection#202
I would like to do an end to end test which actually exercises the secrets, once @SurferJeffAtGoogle's comments are addressed.
9a96032 to
d896213
Compare
|
@SurferJeffAtGoogle Thanks for your review. PTAL |
| function msg { println "$*" >&2 ;} | ||
| function println { printf '%s\n' "$(now) $*" ;} | ||
|
|
||
| # Populates requested secrets set in SECRET_MANAGER_KEYS |
|
@bcoe Now it's approved. Let me know how the e2e test goes. |
|
@tmatsuo I will do an end to end test Monday 👌 (_as I don't want to release a library on Friday). |
|
@tmatsuo sorry for the delay, my PRs got a bit away from me this week. I have tested this branch, and have good news and bad news. trampoline 2.0 is mostly working, in that s publish happened: npm: kokoro: However, the final step never happened which updates tags, the command can be found here: It received the error: "No github token or PR specified to report status to, returning." |
|
Is there a chance that AUTORELEASE_PR would not be set with trampoline 2.0? |
|
@bcoe Maybe. Who set the AUTORELEASE_PR in the first place? |
|
@bcoe I see AUTORELEASE_PR is extracted from Kokoro request. I think we need to pass down this envvar into the container. |
2289704 to
ff83218
Compare
|
@bcoe I think the last commit should solve the issue. I'll appreciate it if you can try the release again. |
Tested at:
googleapis/release-please#553
googleapis/nodejs-phishing-protection#200