Repository navigation
End-to-end checks for distributions - #157
Merged
Merged
Conversation
The repository form keeps Save off until the protection of a distribution that is offered with it is decided, so the checks that tick the distribution box now choose the Public protection explicitly, and the check that a base path a seeded installation serves is refused presses Save and reads the refusal instead of finding the button disabled for the missing protection. A plugin whose manifest lists no remote screens keeps its own address for them, so the remote policy check uses the address of the framework only for a plugin that has remote screens there.
Against a real server, a distribution of every installed plugin is created from the list with an explicit protection, opened and deleted from the screens, and the stored object is read back after each write. A file distribution is switched to one publication and the server is checked for the new binding and the cleared ones; a public distribution shows the Public mark and appears under Public only. The served-state labels of the seeded serving distributions are checked on the list, on each distribution's page and on the Distributions tab of its repository, for the administrator and for a viewer that may not read publications (who is told "Cannot be checked"). An editor holding the owner role on single distributions sees Edit and Delete on exactly those rows and on their pages, and nothing on a distribution it may only read. The clean-up helper now also lists and removes the maven, npm, ansible and container distributions and repositories of a run, and treats a plugin the server does not have as holding nothing.
A browser check, tagged @scale and run on its own, times the list of every plugin's distributions on a server that holds more than 1,300 of them. Each figure is the median of five runs from a fresh load of the application, and no run may take more than twice its budget: the default page of 50 and a page of 500, from the click to the rows shown and to every derived column settled; the public-only filter and a base path filter, from the change to the rows that answer it. The public-only result is recognised by the number of matches the server reports, because the table of the unfiltered list stays on screen for a moment after the switch is pressed. The requests of one load are counted too: none may go to the address of a single object or to the permission read of one, and the total is held to a budget for each page size. The figures are printed and attached to the report, which stays out of the repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Browser checks that run against a real server and prove the distribution screens before more is built on them.
@scaleand run on its own, times the list at more than 1,300 distributions and counts the requests of one load.The clean-up helper also lists and removes the maven, npm, ansible and container distributions and repositories of a run.