The Python Component System (PCS) is an API and CLI for building, running, and sharing Python code. AgentOS is a set of libraries built on top of PCS that make it easy to build, run, and share agents that use Reinforcement Learning.
This PR ports the web tests to the new models. This PR:
Contains two main integration tests: test_run_and_publish and test_web_registry_integration.
test_run_and_publish creates the default agent (agentos init), runs it, and then uploads the AgentRun to the registry. It also saves the resulting database as a fixture in web/registry/tests/fixtures/ so that the other tests can quickly populate the database with realistic data.
test_web_registry_integration tests that we can create a WebRegistry backed by a web server and that we can put and get specs via that WebRegistry.
Adds a DEFAULT_REGISTRY_URL environment variable for specifying backing web servers other than localhost and heroku.
Adds tests for the view we're using in the leaderboard app.
Resurrects the Component.artifact_tarball file field and related endpoints to get/put artifacts related to the a Component. We don't actually use this yet when publishing (and maybe we'll take a different approach to sharing artifacts?).
This PR ports the web tests to the new models. This PR:
test_run_and_publish
andtest_web_registry_integration
.test_run_and_publish
creates the default agent (agentos init
), runs it, and then uploads theAgentRun
to the registry. It also saves the resulting database as a fixture inweb/registry/tests/fixtures/
so that the other tests can quickly populate the database with realistic data.test_web_registry_integration
tests that we can create aWebRegistry
backed by a web server and that we can put and get specs via thatWebRegistry
.DEFAULT_REGISTRY_URL
environment variable for specifying backing web servers other than localhost and heroku.leaderboard
app.Component.artifact_tarball
file field and related endpoints to get/put artifacts related to the aComponent
. We don't actually use this yet when publishing (and maybe we'll take a different approach to sharing artifacts?).