Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: archive: add plugin interface #485

Closed
wants to merge 1 commit into from

Conversation

rhubert
Copy link
Contributor

@rhubert rhubert commented Jul 29, 2022

Extend the archive command to clean up a non local archive using a
custom plugin. Therefore the plugin manifest must contain
'archiveAccessors'. Each entry should point to a class inheriting from
'BaseArchiveAccess' providing the appropriate methods to access the
custom archive.

Fixes #340.

Extend the archive command to clean up a non local archive using a
custom plugin. Therefore the plugin manifest must contain
'archiveAccessors'. Each entry should point to a class inheriting from
'BaseArchiveAccess' providing the appropriate methods to access the
custom archive.

Fixes BobBuildTool#340.
@rhubert rhubert force-pushed the archive_clean_plugin branch from e0709d5 to 10d9fef Compare July 29, 2022 06:33
@codecov
Copy link

codecov bot commented Jul 29, 2022

Codecov Report

Merging #485 (10d9fef) into master (5008f01) will decrease coverage by 0.07%.
The diff coverage is 73.61%.

@@            Coverage Diff             @@
##           master     #485      +/-   ##
==========================================
- Coverage   86.22%   86.15%   -0.08%     
==========================================
  Files          46       47       +1     
  Lines       14175    14232      +57     
==========================================
+ Hits        12223    12261      +38     
- Misses       1952     1971      +19     
Impacted Files Coverage Δ
pym/bob/archive_access.py 53.84% <53.84%> (ø)
pym/bob/input.py 91.67% <62.50%> (-0.11%) ⬇️
pym/bob/cmds/archive.py 85.47% <80.39%> (-1.49%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5008f01...10d9fef. Read the comment docs.

@jkloetzke
Copy link
Member

I'm afraid a plug-in is not the right approach. Why not extend the archive classes to handle the garbage collection too and let the bob archive command work on the define archive entries from default.yaml?

Regarding Artifactory, I hope that it does properly support WebDAV. That's what the http backend should implement...

@rhubert
Copy link
Contributor Author

rhubert commented Aug 22, 2022

OK - I'll have a look @ WebDAV and come back...

@rhubert rhubert closed this Aug 22, 2022
@rhubert rhubert deleted the archive_clean_plugin branch September 17, 2024 09:06
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.

bob-archive should be able to act remotely
2 participants