Urgent.News

What's breaking now, across thousands of outlets.

Tech

Adding Concurrency with `cancel-in-progress` to GitHub Actions CI to Cut Build Minutes

Adding Concurrency with cancel-in-progress to GitHub Actions CI to Cut Build Minutes TL;DR: I added a concurrency block with cancel-in-progress: true to the ci-e2e.yml workflow, preventing overlapping runs on the same branch. This change immediately reduced wasted Action minutes by ~30 % on active PRs. The Problem Our CI pipeline ( .github/workflows/ci-e2e.yml ) was triggered on every push to a…

GitHub Actions workflows can be triggered excessively when multiple commits are pushed to a branch quickly, leading to wasted minutes on the CI pipeline. The workflow file `.github/workflows/ci-e2e.yml` was updated to include a `concurrency` block with `cancel-in-progress: true`. This ensures that a new run is automatically canceled if a previous run with the same identifier is queued.

The `group` field in the concurrency block is constructed by combining the workflow name and the branch reference, ensuring a unique identifier for each branch. This prevents overlapping runs on the same branch, cutting the build minutes by approximately 30% on active pull requests. The implementation is straightforward and eliminates the need for custom scripting or manual guards, as GitHub Actions handles the cancellation logic natively.

The updated workflow shows a single active run in the Actions UI, with previously queued runs marked as "Cancelled."

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Also reported by 1 other outlet

Read the original at dev.to →

More in Tech

From 10,000 frames to 30 moments: Building a visual story compressor

Two hours at 2fps is around 14,000 frames. Most of them are noise: the cursor blinks, the system clock ticks, nothing in the code moved. The first step isn't clever. It's just getting rid of those.

  • ProgressCut compresses coding sessions into 30-second visual stories
  • First stage removes identical frames using dHash, discarding 89% of frames
  • Third stage segments frames into regions, averaging SSIM scores for changes

OverTheWire Bandit Level 2 Writeup — Read a Filename With Spaces

The password file is named spaces in this filename . The shell splits unquoted arguments on whitespace, so the filename has to be quoted or escaped to be treated as one argument.

  • File named "spaces in this filename" has spaces in its name
  • Shell splits filename into separate arguments without quoting
  • Quote or escape spaces to read file contents successfully

More from Friday 2 October →