Files
tasks/develop/buildkite/generate-build-alias-list.sh
David ReissandGitHub b2195c54b7 Share built images in CI and more sharding for functional tests (#4589)
**What changed?**
- In CI, build most of the tests and dependencies and reuse them in
subsequent steps.
- Additionally pre-build dependencies separately on a weekly schedule
(in buildkite configuration) and reuse them when possible.
- Add more test sharding for functional tests (split the main functional
test suite into three).

**Why?**
Increase parallelism, reduce latency of getting test results, reduce
granularity of retries

**How did you test it?**
lots of testing on buildkite

**Potential risks**

**Is hotfix candidate?**
2023-10-26 23:34:23 -07:00

22 lines
484 B
Bash
Executable File

#!/usr/bin/env bash
# Fixes build-alias list in pipeline.yml.
# Install yq before running this.
set -e
cd develop/buildkite
{
sed -n '1,/<<< build-alias list/ p' pipeline.yml
yq -y '[
.services |
to_entries[] |
select(.value.build.context == "../..") |
.key |
select(. != "build" and . != "prebuild")
]' docker-compose.yml | sed 's/^/ /'
sed -n '/>>> build-alias list/,$ p' pipeline.yml
} > pipeline.yml.tmp
mv pipeline.yml.tmp pipeline.yml