Skip to content

Conversation

@CihatAltiparmak
Copy link
Contributor

@CihatAltiparmak CihatAltiparmak commented May 12, 2025

DOnt merge for now. closes #9

@CihatAltiparmak
Copy link
Contributor Author

CihatAltiparmak commented May 13, 2025

I think we will be able to know whether it is okay by seeing this action's results. Then seems it is ready for you to review.

@CihatAltiparmak CihatAltiparmak marked this pull request as ready for review May 13, 2025 11:34
owner: 'ros-navigation'
package-name: 'nav2_docker'
package-type: 'container'
min-versions-to-keep: 5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nitpick ?

@CihatAltiparmak
Copy link
Contributor Author

@SteveMacenski It's ready.

@SteveMacenski
Copy link
Member

How can I see which images it deleted and which it kept? I'm not seeing any logging I can look to make sure versions that are non-nightly are remaining untouched.

delete-only-untagged-versions, aren't the nightly ones still tagged https://github.com/ros-navigation/nav2_docker/blob/main/.github/workflows/build_images.yaml#L39?

I think looking over the docs you can use regex about which to apply it to / exclude https://github.com/actions/delete-package-versions. It would be extremely problematic if the released versions were deleted, those are very important to keep and not rebuild

@CihatAltiparmak
Copy link
Contributor Author

CihatAltiparmak commented May 13, 2025

How can I see which images it deleted and which it kept? I'm not seeing any logging I can look to make sure versions that are non-nightly are remaining untouched.

Looks like the only way to learn this is to look at all containers right before running workflow & then right after finishing it's job. I monitored it and I can validate that it only deletes untagged images except the five images built recently. You can take a look my aim board through below link (. The corresponding job doesn't provide any log unfortunately:/)

https://github.com/DarkusAlphaHydranoid/nav2_dakir_makir/pkgs/container/nav2_dakir_makir/versions?filters%5Bversion_type%5D=tagged

delete-only-untagged-versions, aren't the nightly ones still tagged https://github.com/ros-navigation/nav2_docker/blob/main/.github/workflows/build_images.yaml#L39?

I think looking over the docs you can use regex about which to apply it to / exclude

nightly ones are also tagged, so it will not be deleted. There already no need nightlies being alive for months. Nightlies should live for only a day. And then the new nightly should be generated by removing older nightly. Shortly, as I see, only untagged will be deleted. So, I think there is no regex necessity here imo.

@SteveMacenski
Copy link
Member

Not to be too pointed (he he he), but if we're not deleting the old nightlies, then what's the point?

@CihatAltiparmak
Copy link
Contributor Author

Not to be too pointed (he he he), but if we're not deleting the old nightlies, then what's the point?

I mean old nightly is untagged and then the image generated recently is tagged. Suppose that we update a tagged one ;) Shortly, with merging this PR, you will get rid of untagged images. At the moment we dont delete the latest 5 untagged image (for sanity check). I can remove if you wish.

Screenshot from 2025-05-27 09-29-52

@SteveMacenski
Copy link
Member

I see that both have tags:

Can you explain to me what 'untagged' then means and how the nightly and the release images differ? I don't see any different configuration of their build and push workflows.

@CihatAltiparmak
Copy link
Contributor Author

CihatAltiparmak commented May 29, 2025 via email

Signed-off-by: Cihat Kurtuluş Altıparmak <[email protected]>
Signed-off-by: CihatAltiparmak <[email protected]>
Signed-off-by: Cihat Kurtuluş Altıparmak <[email protected]>
Signed-off-by: CihatAltiparmak <[email protected]>
@CihatAltiparmak CihatAltiparmak force-pushed the fix/delete_untagged_images branch from eb34d56 to 5fa38c6 Compare May 29, 2025 09:48
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.

Docker Images (Nightlies) Is Not Updated For A Month

2 participants