AvrelDocs

Test campaigns

A test campaign is the list of tests your team plans to run on one build before it ships, with each test's result on that build. While a campaign is open, the release gate blocks that build until every planned test has passed on it.

A campaign is generic: each planned test is one requirement from your verification matrix, optionally on one unit or serial number and to one procedure. It works the same for a flight model, a robot arm, a vehicle or a battery system.

Plan a campaign#

On the Release gate page, press Plan campaign under Test campaigns:

  1. Give it a name, for example "Qualification, unit SN-0142".
  2. Pick the build: a recorded release or a registered candidate. From CI or an assistant you can also give a commit that is not recorded yet.
  3. List the requirement refs to test, one per line. Add a unit after a comma (PWR-002, SN-0142) to test the same requirement on several units. Leave the list empty to plan every active requirement verified by test, or every one in one subsystem.

The plan is hashed. Adding or removing tests while the campaign is open changes the hash, and the change is in the audit log.

How results arrive#

You do not enter results in the campaign. A planned test counts when evidence for its requirement names this build, by its commit or its release name, and, when the plan names a unit, that unit. The evidence can come from anywhere Avrel already takes it:

  • recorded in the app on Requirements & Readiness;
  • recorded by a test pipeline or rig with record_test_result (see Release checks in CI);
  • proposed by an assistant, which shows as Waiting for review until a person accepts it;
  • backed by a saved run of readings, which the campaign shows next to the result.

The latest accepted result on the build decides each test: passed, failed or inconclusive. Results on other builds do not count. Progress is worked out when you open the campaign, so it always matches the matrix.

Test statusMeaning
Passed, Failed, InconclusiveThe latest accepted result on this build.
Waiting for reviewOnly proposed evidence names this build so far.
Not runNo evidence names this build yet.

The release gate#

The gate has a check, HIL-CAMPAIGN-01 Planned tests passed on this build. For the release running now, or a candidate you check with check_release, it looks at every open or completed campaign on that build. It fails, and blocks the release, while any planned test has not passed. A build with no campaign, or whose campaigns have no planned test yet, skips the check, never passes it.

Complete a campaign#

Complete campaign in the campaign's panel (or complete_test_campaign) freezes every test's result and the evidence behind it with a SHA-256 hash, and opens a readiness record for the planned requirements, tied to the build, with the campaign's hash in its snapshot. People sign that record as usual; an assistant cannot. Completing with tests not passed needs a note saying why, and the gate keeps blocking the build on the frozen results. Evidence recorded later does not change a completed campaign.

Cancel a campaign#

Cancel campaign needs a reason. A cancelled campaign stops counting in the release gate and stays in the history. Cancelling is held back from assistants: it removes a blocker, so it is a person's decision.

With your own assistant or CI#

ToolAccessWhat it does
list_test_campaigns, get_test_campaignReadCampaigns with their build, state, outcome and counts; one in full with each test's status and the evidence that decides it.
plan_test_campaignOperatePlans a campaign on one build.
edit_test_campaignOperateAdds or removes planned tests while it is open.
complete_test_campaignOperateFreezes the results and opens a readiness record for people to sign.

get_release lists the campaigns on a release too. Every state a campaign can be in is listed in Lifecycles.