package templates templ About() {

about

Converge is a utility for troubleshooting builds on continuous integration servers. It solves a common problem where the cause of job failure is difficult to determine. This is complicated further by the fact that build jobs are usually run on a build farm where there is no access to the build agents or in more modern envrionments when jobs are run in ephemeral containers.

With Converge it is possible to get remote shell access to such jobs. This works by configuring the build job to connect to a Converge server using an agent program. The agent program can be downloaded from within the CI job using curl or wget. Next, an end-user can connect to the Converge server, a rendez-vous server, that connects the client and server together based on a common identifier specified by both client and server.

how it works

The steps involved are as follows:

With regards to the rendez-vous id there are the following remarks:

The agent will always print the id and command required to connect to it to standard output.

Security

The setup is such that the connection from client (end-user) to server (agent on CI job) is end-to-end encrypted. The Converge server itself is no more than a bitpipe which pumps data between client and agent.

Using authorized keys is a secure way of connectiong. When running the agent, the authorized keys must be put in a file, allowing only the designated users to connect. The file containing authorized keys can also be edited during a session with the agent, allowing more people to be added when required without having to start over again. Using authorized keys is made easy through the usage page, which provides the exact commands to execute based on the target environmnet.

SSH and SFTP

Both ssh and sftp are supported. Multiple shells are also allowed.

Timeouts

There is a timeout mechanism in the agent such that jobs do not hang indefinitely waiting for a connection. This mechanism is useful to make sure build agents do not keep build agents occupied for a long time. By default, the agent exits with status 0 when the first client exits after logging in. The timeout is an inactivity timeout which is reset every time the user presses a key on the keyboard.

When the user touches a .hold file, the agent keeps waiting for connections even after the last client logs out, taking into account the timeout. By default the agent exits when the last user has logged out.

Remote shell usage

The agent supports a --shells command-line option by which a comma-separated list of shells can be prepended to the default search path for shells, e.g. --shells zsh,csh,sh (linux) or cmd,powershell for windows.

The agent sets a agentdir environment variable that points to the directory where the agent is running.

other tools

Using available existing tools such as breakpoint in combination with a websocket tunneling tool such as wstunnel a similar solution can be obtained. There are however some problems with these solutions that converge is trying to address:

Converve server addresses these issues in the following ways:

} templ AboutTab() { @BasePage(1) { @About() } }