Library Problems and How to Fix Them
When your organization uses its own test library, the console checks the library and reports what it finds: the sources it reads, tests that override others, and problems in individual tests. A problem never removes a test from the library. It tells you what to fix so the test is read correctly.
The report is available at GET /api/browser/library for anyone who can read the test library. The same report is shown in Settings, then Tests, in the Test library card: sources, overrides, problems (each code links to its entry below) and Not in the library.
The card's status says how urgent the report is:
- Sync failed (red): a source's last sync failed.
- Needs attention (amber): a problem, a layout finding or an outdated kit in a library you write: your own repository, the local folder, or the main library when
TESTS_REPO_URLnames your repository instead of f0_library. - OK: findings about f0_library only. They are still listed, but you do not author that library.
- No problems: nothing to report.
Where the report comes from
- Sources. One entry per source (folder, own repository, main library), with its sync state, commit, test count, kit version and layout findings.
- Overrides. Tests of your library that have the same UUID as a test in a source with lower precedence. Yours is the one listed.
- Problems. Every listed test with at least one warning, or whose last build failed.
Layout findings (per source)
| Code | What it means | How to fix |
|---|---|---|
uuid_outside_category | A test folder (named by UUID) sits at the top of the repository while other folders are categories. The console reads tests inside category folders only. | Move the folder into a category folder such as intel-driven/. |
near_category_name | A folder looks like a category but is spelled differently (for example Intel_Driven). | Rename it to the exact category name, lowercase with hyphens. |
near_uuid_name | A folder name is 32 to 40 hex digits and hyphens but is not a valid UUID (wrong length or hyphen placement), so it is not read as a test. | Rename it to the test's exact UUID. |
source_root_refused | The source's root folder does not exist, is unreadable, or is not accepted as a test source: for a Git source, a repository with no top-level tests_source/ folder, or one where it is a symbolic link or lies outside the clone. The source lists no tests. | Check that the repository synced, and that its tests are under a top-level tests_source/ folder that is a real folder, not a link. See Your Own Test Library. |
Test warnings
The shared test kit and KIT_VERSION
Tests use a shared kit: the logger and the organization resolver. A library states which kit version it carries in a KIT_VERSION file at the repository root (one positive integer). Each kit file in a test also carries a marker line, // achilles-kit: <n>. The minimum version is 1.
A Git source whose KIT_VERSION is missing, unreadable or below the minimum is reported as outdated. A marker below the minimum in one test is the kit_marker_below_min warning.
Until f0_library carries a KIT_VERSION file, the console does not report it as outdated.
Build failures
When a build of a test fails, the console keeps the time and the failure message with the test. The report lists the test under Problems.
Only users who can build tests see the failure message. Everyone who can read the library sees that a build failed and when.
A new successful build is the way to clear it: fix the cause, then build the test again.