Skip to content

feat: update JIMM's bootstrap logic to queue river jobs#1858

Merged
kian99 merged 2 commits intocanonical:feature/use-river-for-bootstrapfrom
kian99:use-river-for-bootstrap-2
Feb 10, 2026
Merged

feat: update JIMM's bootstrap logic to queue river jobs#1858
kian99 merged 2 commits intocanonical:feature/use-river-for-bootstrapfrom
kian99:use-river-for-bootstrap-2

Conversation

@kian99
Copy link
Contributor

@kian99 kian99 commented Feb 9, 2026

Description

This PR is a follow-up to #1852 and updates JIMM's bootstrap package to make use of River for bootstrap/destroy operations.

Engineering checklist

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

@kian99 kian99 requested a review from a team as a code owner February 9, 2026 07:26
}
if err := b.store.AddJobLog(ctx, jobId, logLine); err != nil {
zapctx.Error(ctx, "failed to write bootstrap log", zap.Error(err), zap.String("jobId", jobId.String()))
zapctx.Error(ctx, "failed to write bootstrap log", zap.Error(err), zap.Int64("jobId", jobId))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logging is fine. should we also have a monitored value so that alerts could be put in place at a later time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yip, that's a good idea, I would make a separate card for it.

@kian99 kian99 merged commit e4fc4f4 into canonical:feature/use-river-for-bootstrap Feb 10, 2026
2 of 8 checks passed
kian99 added a commit that referenced this pull request Feb 10, 2026
* feat: add bootstrap and destroy-controller river jobs (#1852)

* feat: add bootstrap and destroy-controller river jobs

* chore: update godocs and workerParams struct

* refactor: tweak WaitForJobCompletion logic

* feat: update JIMM's bootstrap logic to queue river jobs (#1858)

* feat: update JIMM's bootstrap logic to queue river jobs

* chore: use TryLock with jujuCLILock to return early

* feat: cleanup unused code and wire up bootstrap via river (#1861)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants