Repository Server

Revision as of 14:33, 15 June 2009 by Paulb (Talk | contribs) (Initial page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Construction.png Not Ready for Review: This Page is Under Development!

The server is where the library repository holds and manages different versions of Eiffel library packages. The repository is where packages are downloaded from and are considered "stable" to use by all. This part of the repository is to be known as the stable repository. There will be no library packages stored or uploaded directly to this stable repository in order to prevent one of the major crutches in a library package manager.

A Better Server

There is one area where package repositories do not work well and it can be very frustrating - broken packages! It happens from time to time and when it does it feels like the end of the world, well for some people. For anyone who has used MacPorts or apt in Ubuntu a misbehaving package can be a brick wall to progress. Matters are made worse when you are a supplier of a package with a broken dependency. Not only does the dependency package not compile but the author's package wont either. The number of broken packages as a result of a single broken package can be exponential. Eiffel packages contain source libraries and will be susceptible to such breaks, so whatever can be done to prevent breaking changes from entering the repository the better for it.

The single, external entry point to a broken packages is via an uploaded packages. There is another course to cause once stable packages to become broken, but this is through age - packages can become stale when not maintained. Both these issues can be resolved with active monitoring of uploaded package, triggering a series of events to ensure the integrity of a packages and those that depend on it.

Holding Area

When a packages is uploaded to the repository the library will not actually be committed to the stable repository. A holding area serves to check the integrity of a packages before making it available to the general public as an upgrade to an existing packages or a new packages. Integrity is checked through a chain of compilation checks which must all pass or achieve an acceptable pass mark to be treated as a stable package to integrate.

Packages uploaded are placed in an queue, called the Integrity Holding Queue, to await a slot for processing the integrity checks on the applicable platforms.

For more information on these checks, see Integrity Checks.

Avoiding Multiple Entries in the Holding Queue

Utilizing a holding area and a queue of packages to be checked may cause a minor back log and lead to a situation where a package is uploaded once, the authors realize there is a mistake and then repackage the package and upload it again. In such an event the server should halt any checks being performed on the old version of the package, or remove any older version from the holding queue, and then place the newly uploaded package at the back of the queue. No communication will be sent to the package's maintain regarding older versions of the the upload package in the holding queue.

Self Referential Breaks

Maintaining a holding queue can lead to form or race condition where a package, early on in the queue, is uploaded and then later another package depending on that earlier package is uploaded. The earlier package introduces changes which will break the code of the later package, which were not detected because the new version (of the earlier package) is not yet available to check against. When it comes time to check the integrity of the latter package it will fail.

This situation is consider to be rare and not needing to be addressed immediately. Even in the even of this happening, the latter package will be rejected and the maintainer informed of the rejection. The rejection notification email should contain recommendations to synchronize with the stable repository and try again.