Skip to contentSkip to conversation

prserv: add support for an "upstream" server

PATCH Michael Opdenacker 1 participant 1 message Apr 12, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Greetings,

Quoted 39 lines · Michael Opdenacker via lists.openembedded.org

From: Michael Opdenacker <[email protected]>

This makes it possible to customize an "upstream" distribution by modifying local packages. If the "upstream" package bears revision "x", the local one will have revision "x.y", this having priority over the upstream one.

Multiple levels of upstream servers are supported, so "x.y.z" revisions are possible too.

Take advantage of this work to clean-up and update the prserv code too.

Manual "sanity" tests have been run so far but automated tests (based on Python unittest, as for the hash server tests) are being prepared for the next iteration. They will also to test also supported scenarios.

Code reviews are welcome, especially for more Pythonic ways of implementing some details.

---

Changes in V3:

- Revert the commit removing the so far unused "hist" mode, which we wish to keep for binary reproducibility sake.

- Simplification of get_value() function to take both "hist" and "nohist" modes with the same shared code.

- Add "history" parameter to the "getPR" request, so that the client can ask for the mode of its choice. This will also make it possible to implement tests for both modes.

Note that more requests ("export", "import"...) will also need a "history" parameter, in a future version, after the first tests are implemented.

Quoted 5 lines

- Several fixes to bugs either present in V2 or introduced by the V3 code changes.

- Put all the new features at the tip of the branch, to make the cleanup commits easier to merged.

This is obviously a V3, even if I forgot to add the "v3" prefix :-I

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com