Skip to content
Castellan
Steward's icon

Troubleshooting · Steward

Read as

When the Steward isn't working as it should

What to do when a version you merged isn't released, tests fail here but pass for you, a release fails, a repository isn't offered, vouch or claim-version refuses, another PC does the work, an update is rolled back, or the Steward's page won't open.

Article
1350
Applies to
Steward 0.36.158
Last reviewed
For
For developers
Written for Steward 0.36.158. Steward is at 0.36.354 now (40 small releases since: what changed).

First, look at what it says#

The Steward says why it does what it does. Look at:

  • Needs you, at the top of its page, and in Castellan;
  • the repository's row under Your repositories, and what it says the next build brings;
  • Release, on its page, which says when the next build is;
  • Last stage, with the log of the last round or button.

A version you merged isn't released#

The Steward never merges your pull requests: merge your own first. See You merge, it builds. Then go down this list:

  1. Releasing is off for its repository. Its badge says not released. Fill in its Release (tag, or a command) in Castellan's Settings > Developer > Repositories, with its Version files.
  2. There are no builds. Builds and releases by itself is off in the Steward's settings (as it is on a new install), or the Steward is off duty. Press Release, or turn it on.
  3. The next build hasn't come yet. Between builds nothing is released: what you merge waits for the next build time. A fix that can't wait gets a changelog line starting **Urgent fix:.
  4. Its version isn't new: already released, or below one released ("v0.4.20 on its branch is below v0.4.22, released already"). Claim a new one with claim-version, set it, and merge it. See Versions claimed up front.
  5. Its tests failed at the build. The alarm says what failed, and the builds don't try that commit again. Fix it and merge the fix, or press Release once you've looked.
  6. The Assayer's release check holds it. The log says why ("waits for the Assayer's release check: …"), with a link to the check, and after 6 hours it's an alarm.
  7. A package's install script holds the work. The alarm names the package and its script. Add it to Install scripts allowed in the Steward's settings once you trust it.
  8. Another PC has the repository's turn. Its Release PC says so. See The Steward on several PCs.

Tests fail here but pass for you#

At a build, the Steward tests the branch's newest commit in a fresh worktree, with nothing from your clone: no uncommitted files, no local .env, and packages installed from the lockfile, with only the install scripts you allowed.

  • Run them as it does: run the tests in a fresh clone, or git worktree add one at that commit.
  • A test that depends on time or load can fail when several repositories are tested at once. A failure is tried once more at once; lower Checked at once in its settings if it keeps happening.
  • Vouch for your pull requests before you merge them, and merge each while it's up to date with its branch: the build then releases it without testing it again. See Vouching for your work.

A release failed#

The alarm says what the release said. The builds don't try it again at that commit.

  • gh isn't signed in, or its account can't create releases in the repository: run gh auth login.
  • The repository's release command failed: run it yourself in a clean clone of the branch to see why.
  • The release command finished without making the release v<version>: it must make that release itself. Or set Release to tag and let the Steward make it.

Once it's fixed, choose Release on the Steward's page, or merge a new commit: the next build tries that.

The rounds can't run#

Usually gh: "gh isn't installed" (install the GitHub CLI), or it isn't signed in (gh auth login). After an hour it's an alarm.

A repository isn't offered under Found on this PC#

Found on this PC offers only repositories that:

  • Reeve found here (see Your repositories in Reeve: add its folder there, or stop leaving it alone);
  • are on GitHub with the account gh is signed in as able to push to them, or are on another host;
  • aren't looked after already, and aren't one of Castellan's own.

The list is kept for an hour: Look again looks now. Or add the repository yourself in Castellan's Settings > Developer > Repositories, with its Repository as owner/name.

Vouch or claim-version refuses#

Each says why, in a sentence. See When vouch refuses.

  • claim-version answers "No repository … here" when the name isn't a repository it looks after, one Reeve found here, or the clone it's run in: run it from the clone, or use the repository's owner/name.
  • In a repository that keeps its changelog entries in a changes/ folder, claim-version claims nothing on purpose: it names the file to write the entry in, and the build gives it its version.

Another PC releases it#

That PC has the repository's turn. Do it here, on its row, takes it for this PC; Keep it on this PC keeps it here. See The Steward on several PCs.

An update was rolled back#

The new version didn't start properly, so the old one was put back, and the alarm says what failed. A newer version installs as usual. To try that version again, Dismiss the alarm. See An update that was rolled back.

The Steward's page won't open#

Its page is http://steward.localhost:19494/. Open on its card in Castellan starts it if it's down. It starts at sign-in from the scheduled task \Steward\Home page. If that doesn't help, run Castellan's setup again, with Install again what's installed already checked. See Install Castellan.

Still stuck?#

Write to us at support@castellan-software.com with the Steward's version (on its card in Castellan), what you expected, and what its page or Last stage said. Look over any log before you send it, as it holds paths and repository names from your PC.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 1350. Every version of Steward, and what changed in it, is in its release notes.