VOOZH about

URL: https://thenewstack.io/speed-up-github-workflow-feedback/

⇱ Speed Up GitHub Workflow Feedback - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-06-03 07:32:54
Speed Up GitHub Workflow Feedback
sponsor-octopus-deploy,sponsored-post-contributed,
CI/CD / DevOps

Speed Up GitHub Workflow Feedback

By adding dependency caching, setting workflows to fail fast and canceling outdated workflows you can speed up feedback, reduce CPU cycles and save money.
Jun 3rd, 2024 7:32am by Steve Fenton
👁 Featued image for: Speed Up GitHub Workflow Feedback
Octopus Deploy sponsored this post. Insight Partners is an investor in Octopus Deploy and TNS.

In the Northern Hemisphere, it’s time for spring cleaning. That includes your GitHub workflows. Here are three simple improvements you can make to speed up feedback, reduce CPU cycles, save some money and do a small thing to help the planet.

Lowering your costs and reducing wasted CPU cycles are benefits, but faster feedback will bring you something even better: developer joy. Focus on the developer experience benefits, with the other upsides being bonuses.

The three improvements are:

  • Adding dependency caching
  • Setting workflows to fail fast
  • Canceling outdated workflows

While updating your workflows, you can also update each action to the latest version. It’s rare to open a workflow without finding it’s still using something old, like actions/checkout@v1.

The examples below are based on a Node.js application with pnpm as the package manager. If you’ve made different choices, there are documentation links to help you make similar improvements.

Dependency Caching

Even for an application with moderate dependencies, it can take time to download everything each time you run a workflow. This delays developer feedback and reduces satisfaction. We all want to know the state of a change as soon as possible, and continuous delivery tells us to deliver this in under five minutes.

For larger applications, it often feels like you’re downloading half of the internet into your node_modules folder.

Dependency caching side-steps the problem of constantly downloading the same package versions every 10 minutes and using items from the cache instead.

You can set up dependency caching in the “setup-node” action. You pass the name of your package manager, like “npm” or “pnpm,” and the path to your package-lock file, which is used to generate a key.

👁 Image

Changes to the package-lock file will result in packages being downloaded, but if the file is unchanged, you’ll be skipping that extra work.

The GitHub docs for caching dependencies will help you tailor this step to your workflow.

Fail Fast

If your workflow is split into multiple jobs, it’s worth failing fast to avoid spending time and money running jobs that are queued behind the failure. For example, if you run a build job followed by a test job, you can avoid running the tests when the build fails.

You can set the fail-fast strategy within your jobs.

👁 Image

You can check the fail-fast documentation for more information.

Cancel In-Progress Workflows

When you create a pull request and trigger workflows, adding another commit within the lifespan of one or more workflows is not uncommon. You can stop processing the outdated jobs using the concurrency option to cancel in-progress work.

👁 Image

When you add commits and new workflows are triggered, any in-flight workflows in the same group will be canceled. The group name can be any string or expression that identifies the collection of workflows that should cancel each other. Usually, you’d want to identify a group by the name of the workflow and the branch.

👁 Image

The “Deploy to Channel” workflows are canceled when a new workflow supersedes them. Over the course of a year, this could save hours or days of wasted processing.

We’re Helping Too

At Octopus Deploy, we wanted to see where we can help reduce developer friction for users of Octopus and GitHub. We added OpenID Connect for GitHub Actions last year to simplify integrations and remove the toil of manually rotating secrets. We recently launched the Octopus Deploy GitHub app.

And more recently, our Octopus GitHub Copilot extension was announced during Satya Nadella’s keynote at Microsoft Build. You use the extension to ask questions and show information from the GitHub Copilot chat window in response to instructions such as:

`@octopus-ai-app show the dashboard for the “Default” space`

This reduces context switching and lets developers remain in a flow state.

Remove Paper Cuts

While some of these GitHub improvements might seem small, their effect over time can make a big difference to developer satisfaction. Trimming even a minute or two from the time it takes to run a workflow can make a big difference.

It also helps that the same improvements can reduce costs for your organization. Showing the business people you care about cost containment will help build the kind of relationships you need when it comes to removing other kinds of paper cuts, like hold-ups in your change approval process.

Finding and fixing small things can lead to great outcomes.

Octopus Deploy is more than just a deployment tool; it’s a complete enterprise solution designed to streamline and automate CI/CD processes. Whether managing multi-tenant environments or ensuring security and compliance across deployments, Octopus empowers organizations to handle deployments at scale.
Learn More
The latest from Octopus Deploy
TRENDING STORIES
Steve Fenton is an Octonaut at Octopus Deploy, a DORA community guide and a six-time Microsoft MVP with more than two decades of experience in software delivery. He has written books on TypeScript (Apress, InfoQ), Octopus Deploy, and web operations....
Read more from Steve Fenton
Octopus Deploy sponsored this post. Insight Partners is an investor in Octopus Deploy and TNS.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Octopus Deploy.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.