Skip to content
Skip to Content
Coder Docs

Maintaining

Learn about the workflow followed by code-server's maintainers.

On this page

We keep code-server up to date with VS Code releases (there are usually two or three a month) but we are not generally actively developing code-server aside from fixing regressions.

Most of the work is keeping on top of issues and discussions.

Releasing

Releasing

A release takes two people: one starts it, and a member of code-server-release-team other than that person approves it. Nobody pushes a tag or edits a draft release: the release workflow creates the tag and publishes the release itself, once it is approved, and releases cannot be changed after that.

  1. Check that the changelog lists all the important changes. The release notes are the changelog's Unreleased section at the released commit, so get them right in a PR before releasing.
  2. Make sure the changelog entry lists the current version of VS Code.
  3. Start the release, either way:
    • Merge the update/<VS Code version> PR. Merging it starts the Release workflow on the merge commit.
    • Or go to GitHub Actions > Release > Run workflow on main, with the version and the full SHA of the commit on main to release. For the version we match VS Code's minor and patch version. The patch number may become temporarily out of sync if we need to put out a patch, but if we make our own minor change then we will not release it until the next minor VS Code release.
  4. CI builds the NPM package and the platform-specific packages from that commit, and attests each file's provenance.
  5. A member of code-server-release-team other than the person who started the release reviews the run and approves the release-approval deployment.
  6. The workflow then tags the commit and publishes the release with the built files. Publishing starts the publish workflow (npm, Docker Hub, GHCR and the AUR PR). It checks that the release came from the release workflow, and every file's attestation, before it publishes anything.
  7. Update the changelog with the release date and bump the Helm chart version once the Docker images have published.
  8. Merge the PR submitted to coder/code-server-aur repo.

Release Candidates

Release Candidates

We prefer to do release candidates so the community can test things before a full-blown release. To do this follow the same steps as above but:

  1. Run the Release workflow by hand with a -rc.<number> suffix on the version and "pre-release" checked. CI will not publish pre-releases to npm, Docker or the AUR.
  2. Do not update the chart version or merge in the changelog until the final release.

AUR

AUR

We publish to AUR as a package here. This process is manual and can be done by following the steps in this repo.

Docker

Docker

We publish code-server as a Docker image here, tagging it both with the version and latest.

This is currently automated with the release process.

nixpkgs

nixpkgs

We publish code-server in nixpkgs but it must be updated manually.

npm

npm

We publish code-server as a npm package here.

This is currently automated with the release process.

Testing

Testing

Our testing structure is laid out under our Contributing docs.

If you're ever looking to add more tests, here are a few ways to get started:

  • run pnpm run test:unit and look at the coverage chart. You'll see all the uncovered lines. This is a good place to start.
  • look at test/scripts to see which scripts are tested. We can always use more tests there.
  • look at test/e2e. We can always use more end-to-end tests.

Otherwise, talk to a current maintainer and ask which part of the codebase is lacking most when it comes to tests.

Documentation

Documentation

Troubleshooting

Troubleshooting

Our docs are hosted on Vercel. Vercel only shows logs in realtime, which means you need to have the logs open in one tab and reproduce your error in another tab. Since our logs are private to Coder the organization, you can only follow these steps if you're a Coder employee. Ask a maintainer for help if you need it.

Taking a real scenario, let's say you wanted to troubleshoot this docs change. Here is how you would do it:

  1. Go to https://vercel.com/codercom/codercom
  2. Click "View Function Logs"
  3. In a separate tab, open the preview link from github-actions-bot
  4. Now look at the function logs and see if there are errors in the logs