gems

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package gems runs the RubyGems and Bundler routes of the assembled server across local, remote, federated and virtual repositories.

Role

Server-assembly suite, outside the modules: it drives the production router through HTTP requests. It is a package of its own so that CI selection can run it alone; its owner in tools/citestselection/test_ownership.json is gems.

Inputs

  • The production router from test/server/support/harness (app.NewRouter), built over an in-memory store and a file-system blob store, with the request and seed helpers of test/server/support.
  • internal/artifacts/adapters/upstream/fakeupstream, which stands in for the remote repositories' upstream.

Outputs

  • TestAcc results for push and permissions, metadata, yanks, token authentication, remote caching and its checks, virtual members, and indexes that fail closed when a stored archive is missing or corrupt.
  • TestAcc results for the download policy of local, remote and virtual indexes and gems (issues 1237 and 1251), and, in gems_virtual_download_test.go, a virtual gem download that asks each member for the gem's own path.
  • TestAccRemoteGemSendsNoClientAccept, in gems_remote_accept_test.go: a remote gem is fetched without the client's Accept and its cached copy serves a client that accepts another type (issue 1390).
  • TestAccRubyClientsInstallPinnedRake runs the gem and Bundler clients when they are installed, and skips otherwise.

References

Status

Implemented P9c (issue 764).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL