Skip to content

Let backup selection remove unknown refs#18018

Merged
memsharded merged 2 commits intoconan-io:develop2from
AbrilRBS:ar/backup-source-unknown-remove
Mar 25, 2025
Merged

Let backup selection remove unknown refs#18018
memsharded merged 2 commits intoconan-io:develop2from
AbrilRBS:ar/backup-source-unknown-remove

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Mar 25, 2025

Changelog: Fix: Remove backup sources from unknown refs when calling conan cache clean.
Docs: Omit

Closes #17919

@AbrilRBS AbrilRBS added this to the 2.15.0 milestone Mar 25, 2025

self.client.run("export .")
self.client.run("upload * -c -r=default")
assert "No backup sources files to upload" in self.client.out
Copy link
Member Author

Choose a reason for hiding this comment

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

This shows that the upload still ignores the unknown refs (A different message is shown when uploading them)

assert "No backup sources files to upload" in self.client.out

self.client.run("cache clean --backup-sources")
assert len(os.listdir(s_folder)) == 0
Copy link
Member Author

Choose a reason for hiding this comment

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

And these 2 checks to the s_folder show that we backed the sources in the conan source call, but that conan cache clean removed it, so the unknown ref was picked up

@memsharded memsharded merged commit d8b5ebc into conan-io:develop2 Mar 25, 2025
15 checks passed
@memsharded memsharded mentioned this pull request Mar 25, 2025
1 task
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.

Clearing the cache folder

2 participants