-
Notifications
You must be signed in to change notification settings - Fork 91
Optimizing DevOps Pipeline Jobs #808
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
Comments
Re-use non-expired app access tokensThe tasks Obtain GitHub App token are slow (I'm seeing like 5s for each run) Those tokens are valid for 1h, so it's not needed to request a new token when the previous token is still valid. The idea would be to save the creation time alongside the token after obtaining and check that time before querying a new one. |
The reason I did not do this is that I wanted to keep the Pipeline easy to run on any new VM (as long as it is registered as a build agent).
That's a good idea. |
Octokit can do that checking (renew or re-use) for user auth automatically, but I'm not sure whether it can to that for app installation auth. Unfortunately, the quick turnaround times are coming with a new problem: The display of the "Checks" progress is pretty much out of sync. It's a few seconds late in showing and the same in hiding. I guess I'll better do this manually instead of having it done by DevOps.. 7859 |
I think you have crossed that border since quite a while already.. 😆 |
Most pipeline definition include the steps:
This wastes execution time on every single pipeline run and it also complicates the job definitions unnecessarily.
My suggestion (and what I have done) is this:
ggg_dir => $(Agent.HomeDirectory)/../ggg
$GGG_DIR/build/misc_helper.js ...
The text was updated successfully, but these errors were encountered: