All contributions

concourse/concourse

Concourse

A container-based automation system written in Go and used mostly for CI/CD. Pipelines and tasks are described in YAML files.

Language
Go
GitHub stars
7,944
Merged changes
1
Project site
concourse-ci.org

What we changed

Variables in a task file are interpolated before the file is parsed, so they also work in numeric fields such as the container memory and CPU limits.

What this work shows

  • Variable interpolation in YAML config
  • Concourse CI/CD pipelines
  • Go interfaces and layered config sources
  • Tests with Ginkgo and Gomega
What was broken

A var in a numeric field broke the task

The task file was parsed before its vars were resolved. With memory: ((container_mem_limit)) under container_limits the parser saw text where it expected a number and stopped the build with cpu/memory limit must be an integer.

How we fixed it

Resolve first, parse after

The file is read as raw text, its vars are resolved there, and the result is parsed once. This pass now runs for every task file, not only when vars is set, and the error message names the file.

#9717

Merged change 1

  1. #9717 Interpolate task file vars before parsing the file Merged 5 October 2026

What it taught us

The order in which configuration is processed decides which fields variables work in, and it can be changed without affecting existing pipelines. The tests also cover a file that is still invalid once its vars are resolved.

More about this technology: Golang

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.