Skip to content
Castellan
Assayer's icon

Troubleshooting · Assayer

Read as

When the Assayer isn't working as it should

What to do when the Assayer's page shows one line, it tests nothing by itself, a repository or branch isn't tested, a case is missing or wrong, tests pass on your PC but fail in its run, a run times out, a test is marked flaky, or your AI assistant doesn't use it.

Article
1850
Applies to
Assayer 0.10.5
Last reviewed
For
For developers
Written for Assayer 0.10.5; Assayer 0.11.12 is out now. Some of this may have changed: what's new is in its release notes.

Its page shows only one line#

"The Assayer is for people who write software": developer features are off, because none of the developers' staff is hired. Hire the Assayer in Castellan, from the Aletaster role's card (Hire, or Employee management > Hire or switch an employee while the Bridgeward holds it). While they're off, it runs no rounds, and its tools tell your AI assistant only that line.

It tests nothing by itself#

Its Rounds are off, as they are on a new install: it runs only the checks your AI assistant asks for, its page says "Rounds are off". Press Turn rounds on on its page, or turn on Rounds in its Settings. Its first round starts within the hour.

A repository isn't tested#

Its rounds are on (above), and it tests the repositories in the Repositories list under Castellan's Settings > Developer whose checkout is on this PC and whose origin is that GitHub repository. Check that it's listed there, and that git remote get-url origin in the checkout names it.

A repository inside WSL isn't tested in its rounds, so they never wake WSL. Your AI assistant can still check it.

It's slow to notice a change#

It looks every hour (Looks every, under Advanced in Settings). Set a shorter time to have it look more often.

A branch isn't tested, or wasn't opened as a pull request#

  • It was committed to less than 2 hours ago: Leave a branch alone for waits, in case you're still working on it.
  • It's checked out with uncommitted changes. Commit or set them aside.
  • It already has a pull request, or you closed or merged one at this same commit.
  • It has nothing that isn't on origin.
  • Its repository is named only in the Steward's own settings, not in Castellan's list. There the Assayer never tests or pushes local branches. Add the repository under Repositories in Castellan's Settings > Developer. See The manor's pull requests.
  • A case failed: it's under Didn't pass, with the output. It's tested again once the branch moves.
  • Its packages couldn't be installed, or a download failed: the run couldn't start, and it's tried again in the next round.
  • The round was full: at most 3 test runs a round. The rest come in the next rounds.

A case is missing, or runs the wrong command#

Under Settings > Test cases you set, add the case, or give the found one another Command, by the project's name as Castellan's Settings have it. Some found cases (cargo clippy and build, dotnet build) are off until you turn them on there.

Tests pass on your PC but fail in its run#

Its run is in a clean worktree at the commit, so what's only on your PC isn't there:

  • Uncommitted or untracked files the tests need.
  • Packages: a Node project borrows your node_modules only when it holds exactly what the commit's lockfile pins. Otherwise the worktree installs them itself (npm ci, or pnpm's or Yarn's frozen install). Other kinds of project, such as a Python virtual environment, aren't installed for you: make the case's command do it.
  • Environment variables set in your own shell.

The failing output on the page says which. When the case failed before any test ran (a build error, a tool that isn't installed), its error lines come first.

A run is stopped before it ends#

That's Stop a test run after: 20 minutes, which at the checks pace stretches to as much as four times that. Raise it under Advanced in Settings, or let the branch run only what its change reaches (Test only what a change reaches, also under Advanced). Background work at Full speed, in Castellan's Settings > General, gives the checks more of the processor.

A test is marked flaky#

It passed and failed on the same commit with the same tools. It's the test, or what it depends on (time, order, the network), not the change. Its tests run at a share of the processor, below your own work, so a test that only just keeps to a time on a quiet PC shows up here first.

When the page names a likely cause beside it, it's a wait for a fixed time before an assertion, at the file and line shown. Wait for the condition itself, with a deadline, or use fake timers.

Release ready fails#

Each check says what it found: versions that disagree, a pull request without its changelog line, a checksum that doesn't match, or CI that isn't green. Fix it in the repository: the Assayer only reads.

A tool was put back, and something else broke#

Put back used your version manager, or winget. Put the newer version back the same way, by hand.

Your AI assistant doesn't use the Assayer#

  • It isn't connected. Press the connect button on the Connect your AI card on its page. For another assistant, press Connect on its row. Right after the Assayer first starts, the card says it's looking for your assistant for a few seconds, with no button: wait for it.
  • You pressed Disconnect. That's kept: the Assayer stays out of your assistant until you press the connect button again.
  • The session was already open. A session started before you connected doesn't see the Assayer's tools. Start a new one. A session started while the Assayer's page was down needs nothing: it moves to the page once it's up.
  • Your assistant runs inside WSL. Press the connect button again: it also sets up the assistant in each WSL distribution that has it.

The daily health run skipped a commit#

The Steward vouched for that commit after its whole suite passed, so the Assayer doesn't run it again; the page says so. A tool that changed version since still gets it run.

A check is refused when it names a test#

The Assayer can narrow only a command it understands. One that chains several commands, or uses a runner it doesn't know, is refused, saying why. Run the whole check instead, or set the case's Command in Settings to the runner's own command.

Its page won't open#

Its page is http://assayer.localhost:20909/. Open on its card in Castellan starts it if it's down.

Still stuck?#

Write to us at support@castellan-software.com with the Assayer's version (on its card in Castellan), the repository and case, and what its page says.

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 1850. Every version of Assayer, and what changed in it, is in its release notes.