Agent role manual
White-list repositories
In the interest of avoiding spam the agenthas to white-list repositories before the oracle will accept test-runs for them.
Two commands are available
White-list a repository
This will only work if the repository is not already white-listed and the repository is in GitHub.
ATM only GitHub is supported as a platform.
The format of the repository is <owner>/<repository>, e.g. cardano-foundation/moog.
Black-list a repository
This will only work if the repository is white-listed.
Query pending test-runs
The agent is responsible for managing test-runs from pending to running and completed.
will report all the pending test runs in a human friendly format.Download a test-run assets
Once a test-run is pending the agent can download the assets for the test-run.
This will download the assets for the test-run with id <test-run-id> into the directory <directory>.
Start a test-run locally
At the moment there is no moog-cli command to start a test-run locally. But a minimal check could be done via docker compose.
Obviously you should do all kind of analysis you deem necessary on the assets before deciding the next step.
Reject a test-run
If the agent decides a test-run is not acceptable it can reject it.
Push a test-run to antithesis platform
Once decided a test-run is acceptable the agent can push the test-run to the antithesis platform.
This will push the test-run with id <test-run-id> to the antithesis platform
Report the acceptance of a test-run on-chain
Once a test-run is pushed to the antithesis platform the agent has to report the acceptance of the test-run on-chain.
This will move it from pending to running state in the facts.
Check for the completion of a test-run
ATM we can only collect results via email. The email is passed in the post request when the test-run on the recipients list.
Then you can check for the completion of a test-run via
HAL Team
To use your CF email you have to use an app password. If you use your password you will get an error like
LoginFailed user error (NO: Application-specific password required: https://support.google.com/accounts/answer/185833 (Failure))
Just go to https://myaccount.google.com/apppasswords and create an app password.
Report the completion of a test-run on-chain
Once the result URL is retrieved the agent has to report the completion of the test-run on-chain.
The URL is encrypted automatically with the requester's public key.