deploy only after a successful meta update
A hive builds only from internal/meta, so a TriggerDeploy after a failed UpdateMeta could only fail its build. Both DAGs that queue an update (merged config PR, agent create) now gate the deploy with after_ok: the update shows Failed and the deploy Skipped.
This commit is contained in:
parent
4aa11b3a94
commit
61e35ab603
3 changed files with 90 additions and 58 deletions
|
|
@ -149,8 +149,7 @@ every agent any hive places (the pins:
|
|||
every agent from it. While the repo has no commit that pins an agent's current
|
||||
config, that agent's build fails and names the agent. The controller queues
|
||||
its update of the repo before the deploy request for a merged config commit
|
||||
and for a new agent, so a failure here is rare. It sends the deploy even when
|
||||
that update failed, and the build then fails as described.
|
||||
and for a new agent, and sends the deploy only when that update succeeded.
|
||||
|
||||
- **Choosing the commit.** The rebuild's `MetaSync` node reads the repo's
|
||||
default-branch head with the hive's read token (`forge::reader_token()`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue