Concept · Assayer
The Assayer's jobs
The Rounds switch, which of your branches it tests and opens as pull requests, the daily health run, release ready's checks, and the pull requests it vouches for in the Steward's own repositories, with what happens when each passes or fails.
- Article
- 1803
- Applies to
- Assayer 0.10.5
- Last reviewed
- For
- For developers
Rounds: on or off#
Its jobs are its rounds, behind the first switch in its Settings, Rounds. A new install starts with them off: the Assayer then runs only the checks your AI assistant asks for, and leaves your repositories alone. No round runs, no branch is pushed, and no pull request is opened.
Turn them on with Turn rounds on on its page, or Rounds in Settings. An Assayer that did its rounds before the switch came (0.4.2) keeps them on.
How a round goes#
With Rounds on, every hour while it's on duty (Looks every), it does the jobs that are on, one test run at a time and at most 3 a round. Each job can be turned off under Its jobs in Settings.
A round on the schedule is gentle. It first asks each repository's GitHub origin whether anything changed (one small request; where the Steward looked at GitHub lately, the Assayer takes what it saw), and downloads only when something did. When nothing changed (on GitHub, in your local branches, in its settings) and no job is due, it leaves that repository as it was: no download, no GitHub request, no test run. It still takes a full look at every repository at least every 6 hours.
Your branches#
A local branch qualifies when it:
- has commits that aren't on
origin/<branch>; - has no open pull request;
- isn't checked out with uncommitted changes;
- has had no new commit for 2 hours (Leave a branch alone for): you may still be working on it.
It's tested at its newest commit.
- When every case passes, it's pushed (never forced) and opened as a ready pull request, with its commits and each case's result. It shows under Ready for you, and Windows tells you, under Castellan's name (Tell me on this PC).
- When a case fails, nothing is pushed. It shows under Didn't pass with its output, and it's tested again once the branch moves.
- When the run couldn't start (its packages couldn't be installed, or a download failed), that's not taken for a failure: it's tried again in the next round.
- A branch whose pull request you closed or merged at that same commit is left alone.
The pull request is yours to merge. Where the Steward looks after the repository, its next build releases what you merged. See You merge, it builds.
A daily health run#
Once a day, it tests the project's branch as GitHub has it, at a commit not tested yet. It tests the same commit again when a tool it uses changed version.
A commit the Steward vouched for after its whole suite passed isn't run again (its steward/tested mark, on the commit or on the pull request's head merged as it was), and the page says so. A vouch for only the tests a change reached doesn't count, so the branch still gets a full run once a day.
A failure is run again at once. Passing then means a flaky test: the page says so, with its likely cause when the test's code shows one. Failing twice in a row shows under Didn't pass, with what changed.
Release ready#
Every 6 hours, for each project with a GitHub repository, it checks:
- Its version files agree with each other, and with the latest release's tag.
- Every pull request merged since that release has its changelog line.
- The release's checksum file matches GitHub's digests of its files.
- CI is green on its branch.
It reads your checkout as last fetched, and GitHub through the GitHub CLI, and needs no worktree. It never tags, publishes, edits or comments. Each check shows under its repository's Release ready case.
The Steward's release check#
Before the Steward publishes a release (with its Waits for the Assayer's release check on), it asks the Assayer about the very commit it would release from: the version files agree, the version is the next one and not released yet, and every pull request merged since the last release has its changelog line. A failure holds the release. Each commit is checked once, whether the Assayer's rounds are on or not. See How the Steward releases.
The manor's pull requests#
This job is for the repositories in the Steward's own settings. On most PCs there are none: with Castellan installed, a repository you give the Steward goes into the Repositories list in Castellan's Settings > Developer, and the jobs above cover it. Where the Steward's own settings still name a repository (one it was given before Castellan's list became its list, say), its open pull requests are tested here. One that isn't in Castellan's list as well is listed under Repositories with only this job and the daily health run: its local branches are never tested or pushed, and its releases never checked.
Each of their open pull requests is tested at its head, with the round's test runs left after your projects. It leaves out forks, the Steward's own pull requests, and any already vouched for at that head.
- A ready pull request is tested at once. A draft waits until its head has stood a round, since it's probably still being worked on.
- The test is the Steward's own checks, in a throwaway worktree of the Steward's clone. When they pass, the pull request is vouched for: merge it while it's up to date with its branch, and the Steward's next build releases it without testing it again. The Assayer never merges it, and nor does the Steward. See Vouching for your work.
- When they fail, nothing is vouched for, and the end of the output goes on the pull request as a comment, once per head. A new push is tested again.
- When the test couldn't run for something that isn't the pull request's (a download or the network failed), there's no comment. Lately says "couldn't run", and it's tried again in the next rounds, up to 3 times.
The page lists these pull requests under The manor's pull requests: vouched for, failed, or waiting.
What's ready for you#
Ready for you lists the pull requests it opened, newest first, until they're merged or closed. Castellan reads how many are still open.
Related articles
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 1803. Every version of Assayer, and what changed in it, is in its release notes.