mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
**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?**
22 lines
484 B
Bash
Executable File
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
|