forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit19cc965
committed
ci: Prepare to make compute resources for CI configurable
cirrus-ci will soon restrict the amount of free resources every user gets (ashave many other CI providers). For most users of CI that should not be anissue. But e.g. for cfbot it will be an issue.To allow configuring different resources on a per-repository basis, introduceinfrastructure for overriding the task execution environment. Unfortunatelythis is not entirely trivial, as yaml anchors have to be defined before theiruse, and cirrus-ci only allows injecting additional contents at the end of.cirrus.yml.To deal with that, move the definition of the CI tasks to.cirrus.tasks.yml. The main .cirrus.yml is loaded first, then, if defined, thefile referenced by the REPO_CI_CONFIG_GIT_URL variable, will be added,followed by the contents of .cirrus.tasks.yml. That allowsREPO_CI_CONFIG_GIT_URL to override the yaml anchors defined in .cirrus.yml.Unfortunately git's default merge / rebase strategy does not handle copiedfiles, just renamed ones. To avoid painful rebasing over this change, thiscommit just renames .cirrus.yml to .cirrus.tasks.yml, without adding a new.cirrus.yml. That's done in the followup commit, which moves the relevantportion of .cirrus.tasks.yml to .cirrus.yml. Until that is done,REPO_CI_CONFIG_GIT_URL does not fully work.The subsequent commit adds documentation for how to configure custom computeresources to src/tools/ci/READMEReviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>Discussion:https://postgr.es/m/20230808021541.7lbzdefvma7qmn3w@awork3.anarazel.deBackpatch: 15-, where CI support was added1 parentd7f2490 commit19cc965
2 files changed
+63
-0
lines changedLines changed: 63 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + |
File renamed without changes.
0 commit comments
Comments
(0)