Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add updates to agent charm README for debugging methods #159

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions agent/charms/testflinger-agent-charm/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Overview

This is the charm to deploy the testflinger-agent project. You can find
the source for testflinger at: https://github.com/canonical/testflinger-agent
This is the charm to deploy Testflinger agents to an agent host. You can find
the source for testflinger at: https://github.com/canonical/testflinger

The source for testflinger-agent will be pulled directly from git trunk on the
project listed above, for now.
project listed above. This creates a sparse/shallow checkout of testflinger
which only includes the "agent" and "device-connectors" directories since it
doesn't require all of the other parts of the monorepo, and this keeps
the space used for the git checkout to a minimum.

# Building
To build this charm, first install charmcraft (sudo snap install --classic
Expand All @@ -21,3 +24,15 @@ Supported options for this charm are:
base64 encoded string with the config file for spi-agent
- device-configfile:
base64 encoded string with the config file for snappy-device-agents

# Debugging
For local debugging, it might be useful to switch branches and pull updates
in order to test or debug new code. However, because we only clone the
minimum required things from git, you will not see other branches
automatically. In order to change your local clone so that you will see
everythiing, run:

```bash
$ git remote set-branches origin '*'
$ git fetch origin
```