Skip to content

Update bollard dependency#1376

Merged
blt merged 2 commits intomainfrom
blt/update_bollard_dependency
Jun 3, 2025
Merged

Update bollard dependency#1376
blt merged 2 commits intomainfrom
blt/update_bollard_dependency

Conversation

@blt
Copy link
Copy Markdown
Collaborator

@blt blt commented Jun 2, 2025

What does this PR do?

This commit is an attempt to demonstrate the claude CLI tool for
the purposes of mostly mechanical dependency upgrades. This kind
of work is a non-trivial effort sink for lading and other SMP
projects, it'd be swell if a machine could do it.

I find the result here satisfying. I acted as critical reviewer,
claude as implementor.

Copy link
Copy Markdown
Collaborator Author

blt commented Jun 2, 2025

@blt blt mentioned this pull request Jun 2, 2025
@blt blt added the no-changelog label Jun 2, 2025 — with Graphite App
@blt blt marked this pull request as ready for review June 2, 2025 21:13
@blt blt requested a review from a team as a code owner June 2, 2025 21:13
@blt blt changed the base branch from blt/introduce_claude.md to graphite-base/1376 June 2, 2025 21:21
@blt blt force-pushed the blt/update_bollard_dependency branch from 6a2c2c2 to ee9f006 Compare June 2, 2025 21:22
@blt blt force-pushed the graphite-base/1376 branch from 3404cd1 to c17d9f9 Compare June 2, 2025 21:22
@graphite-app graphite-app bot changed the base branch from graphite-base/1376 to main June 2, 2025 21:22
@blt blt force-pushed the blt/update_bollard_dependency branch from ee9f006 to 409ba22 Compare June 2, 2025 21:22
blt added 2 commits June 2, 2025 17:22
This commit is an attempt to demonstrate the claude CLI tool for
the purposes of mostly mechanical dependency upgrades. This kind
of work is a non-trivial effort sink for lading and other SMP
projects, it'd be swell if a machine could do it.

I find the result here satisfying. I acted as critical reviewer,
claude as implementor.

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
@blt blt force-pushed the blt/update_bollard_dependency branch from 409ba22 to 87793ed Compare June 3, 2025 00:22

let pid: i64 = loop {
if let Ok(container) = docker.inspect_container(&config.name, None).await {
let inspect_options = InspectContainerOptionsBuilder::default().build();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks unnecessary - could the second parameter below stay None?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think that it could. I dinged this myself at first and then after further consideration felt that it added more detail I found useful while skimming.

fn to_container_config<'a>(&'a self, full_image: &'a str) -> ContainerConfig<&'a str> {
ContainerConfig {
image: Some(full_image),
fn to_container_config(&self, full_image: &str) -> ContainerCreateBody {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note, changes in this fn look unrelated, but I'm not sad about them

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Same, same.

_ = liveness_interval.tick() => {
for container in &containers {
if let Some(state) = docker.inspect_container(&container.id, None).await?.state {
let inspect_options = InspectContainerOptionsBuilder::default().build();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit, building a default value (same as below)

@blt blt merged commit 5084142 into main Jun 3, 2025
21 checks passed
@blt blt deleted the blt/update_bollard_dependency branch June 3, 2025 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants