Message codes: Builds and temporary directories¶
See also: Message codes (the index of every code) and Messages and codes (the line grammar, what a code guarantees and when to trust one).
Trust a code only when the line is one of the lines below, a value in place of
each <name>, after at most one prefix: the index lists the prefixes and
message-codes-values.md the values.
Codes¶
| Code | Level | Means | Since |
|---|---|---|---|
build-code-unsafe |
WARNING | --allow-build lists a project's files by running a real PEP 517 build of its wheel, which executes the project's own build code (its build backend and any script the backend runs) with the user's rights, for up to --build-timeout seconds. Said before each build: for a build backend no file discoverer of Pitloom reads, or after the backend's own discoverer failed; in a fresh, isolated build environment, or in Pitloom's own with --no-build-isolation. | 0.25.0 |
build-failed |
WARNING | The --allow-build build gave no wheel to read: no Python interpreter to run PyPA build with, the build exited with an error (its last line of output shown, a credential in it masked), it wrote no wheel or several, its wheel holds no file outside .dist-info, or the build could not start or its wheel could not be read (the reason shown). A build cut off by --build-timeout is build-timeout; PyPA build not installed is library-missing. | 0.25.0 |
build-processes-unsafe |
WARNING, INFO | The build ended and left processes it started still running in its process group (a backend's background helper): third-party code that would go on writing into the build's directory. POSIX only. | 0.25.0 |
build-timeout |
WARNING | The --allow-build build ran longer than --build-timeout allows (a slow build, or one waiting for the network or for input). Its process tree was stopped; on the second line Pitloom could not confirm every process of it ended. | 0.25.0 |
hook-no-effect |
INFO | The Hatchling build hook ran for a build it makes no SBOM for: its table [tool.hatch.build.hooks.pitloom] sets enabled = false, the build target is not the wheel (an sdist: PEP 770 places an SBOM in a wheel's .dist-info/sboms/ only), or the wheel is an editable one, which holds a .pth file, not the project's files the SBOM would list. | 0.25.0 |
interrupted |
ERROR, WARNING | Pitloom was asked to stop. The WARNING: lines: a termination signal (SIGTERM, SIGHUP, or SIGBREAK for Ctrl-Break) came while a build or the copy of a model file out of a wheel ran, or after it while its temporary directories were in use; the process then ends by that signal (exit status 143 for SIGTERM). The ERROR: line: Ctrl-C (exit status 130). | 0.25.0 |
temp-dir-unwritable |
WARNING | A temporary directory Pitloom made (a download, a Git checkout, a build, a copy of a model file, the build hook's staged SBOM) could not be fully removed: a file in it still open (Windows), or no permission to remove it. The line names the directory by its name, not its path: it is in the system temp directory. The prefix says which step made it. | 0.25.0 |
build-code-unsafe¶
- Level: WARNING.
- Means: --allow-build lists a project's files by running a real PEP 517 build of its wheel, which executes the project's own build code (its build backend and any script the backend runs) with the user's rights, for up to --build-timeout seconds. Said before each build: for a build backend no file discoverer of Pitloom reads, or after the backend's own discoverer failed; in a fresh, isolated build environment, or in Pitloom's own with --no-build-isolation.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Ran the build and read the file list from the wheel it wrote.
- Tell the user: Pitloom ran the project's own build code, as --allow-build asks; run it only on a project they trust. Do not pass --allow-build for them on a project they have not chosen to build; ask first, and with nobody to ask, report it only.
- Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: DIR=<dir>: --allow-build runs a PEP 517 build for up to <seconds> seconds (--build-timeout), which executes the project's build code (build-backend <backend>, no discovery module for it) in an isolated build environment [build-code-unsafe]
WARNING: DIR=<dir>: --allow-build runs a PEP 517 build for up to <seconds> seconds (--build-timeout), which executes the project's build code (build-backend <backend>, its static discovery failed) in an isolated build environment [build-code-unsafe]
WARNING: DIR=<dir>: --allow-build runs a PEP 517 build for up to <seconds> seconds (--build-timeout), which executes the project's build code (build-backend <backend>, no discovery module for it) in Pitloom's own environment (no build isolation) [build-code-unsafe]
WARNING: DIR=<dir>: --allow-build runs a PEP 517 build for up to <seconds> seconds (--build-timeout), which executes the project's build code (build-backend <backend>, its static discovery failed) in Pitloom's own environment (no build isolation) [build-code-unsafe]
build-failed¶
- Level: WARNING.
- Means: The --allow-build build gave no wheel to read: no Python interpreter to run PyPA build with, the build exited with an error (its last line of output shown, a credential in it masked), it wrote no wheel or several, its wheel holds no file outside .dist-info, or the build could not start or its wheel could not be read (the reason shown). A build cut off by --build-timeout is build-timeout; PyPA build not installed is library-missing.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Went on without the build: the file discovery line that follows says which fallback listed the files.
- Tell the user: the build failed and why, as the line says, and that the file list comes from the fallback the next line names. They fix the build (python -m build --wheel in the project shows its whole output) and run again, or drop --allow-build. Do not change the project or run its build for them; ask first, and with nobody to ask, report it only.
- Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: DIR=<dir>: no Python interpreter to run PyPA build with; not built [build-failed]
WARNING: DIR=<dir>: the build exited with code <exit-code>; last output: <output> [build-failed]
WARNING: DIR=<dir>: the build wrote <number> wheels, not one [build-failed]
WARNING: DIR=<dir>: the built wheel holds no file outside .dist-info; read as a failed discovery [build-failed]
WARNING: DIR=<dir>: the build could not run or its wheel could not be read; <failure> [build-failed]
build-processes-unsafe¶
- Level: WARNING, INFO.
- Means: The build ended and left processes it started still running in its process group (a backend's background helper): third-party code that would go on writing into the build's directory. POSIX only.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Killed them before removing the build's directory (the INFO: line); on the WARNING: line, could not confirm they stopped. The build's result is read as usual.
- Tell the user: only of the WARNING: line: processes the build started may still be running, in the process group the line names; they check and stop them. The INFO: line needs nothing. Do not stop processes for them; ask first, and with nobody to ask, report it only.
- Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING and INFO lines; the prefix is not part of the line. - Lines:
INFO: the build left processes running (process group <process-group>); killed [build-processes-unsafe]
WARNING: the build left processes running (process group <process-group>); could not confirm they stopped [build-processes-unsafe]
build-timeout¶
- Level: WARNING.
- Means: The --allow-build build ran longer than --build-timeout allows (a slow build, or one waiting for the network or for input). Its process tree was stopped; on the second line Pitloom could not confirm every process of it ended.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Went on without the build: the file discovery line that follows says which fallback listed the files.
- Tell the user: the build was stopped at the time limit. They run again with a larger --build-timeout for a slow build, or check that the build does not wait for input; after the second line, processes of the build may still run, and they check for them. Do not raise the limit or stop processes for them; ask first, and with nobody to ask, report it only.
- Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: DIR=<dir>: the build timed out after <seconds> seconds (--build-timeout); its process tree was stopped [build-timeout]
WARNING: DIR=<dir>: the build timed out after <seconds> seconds (--build-timeout); could not confirm its process tree stopped [build-timeout]
hook-no-effect¶
- Level: INFO.
- Means: The Hatchling build hook ran for a build it makes no SBOM for: its table [tool.hatch.build.hooks.pitloom] sets enabled = false, the build target is not the wheel (an sdist: PEP 770 places an SBOM in a wheel's .dist-info/sboms/ only), or the wheel is an editable one, which holds a .pth file, not the project's files the SBOM would list.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Staged no SBOM for this build; the build goes on.
- Nothing to do: Nothing to fix: the build is one the hook leaves alone. For an SBOM in the wheel, the user builds a regular (not editable) wheel with the hook enabled; mention it only when they ask why the wheel or sdist holds no SBOM.
- Printed after:
Pitloom build hook: <text>(the Hatchling build hook, its own warnings and notes), on its INFO lines; the prefix is not part of the line. - Lines:
INFO: disabled; skipping SBOM generation [hook-no-effect]
INFO: target <target> is not 'wheel'; skipping SBOM generation [hook-no-effect]
INFO: build variant 'editable' skipped; its wheel does not hold the project's files [hook-no-effect]
interrupted¶
- Level: ERROR, WARNING. As an ERROR (Ctrl-C), the command stops and writes nothing (exit 130).
- Means: Pitloom was asked to stop. The WARNING: lines: a termination signal (SIGTERM, SIGHUP, or SIGBREAK for Ctrl-Break) came while a build or the copy of a model file out of a wheel ran, or after it while its temporary directories were in use; the process then ends by that signal (exit status 143 for SIGTERM). The ERROR: line: Ctrl-C (exit status 130).
- SBOM effect: not-written: no SBOM is written for the input.
- Pitloom did: Stopped the run (a build or a model file copy, when one was running), removed its temporary directories and wrote no SBOM.
- Tell the user: the run was stopped before it wrote an SBOM. They run it again when ready. Do not run it again for them; ask first, and with nobody to ask, report it only.
- Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING lines; the prefix is not part of the line. - Printed after:
AI model scan: <text>(the AI model scan of a wheel, its temporary copy), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: received <signal> during <activity>; exiting after cleanup [interrupted]
WARNING: received <signal> after <activity>; exiting after cleanup [interrupted]
ERROR: interrupted [interrupted]
temp-dir-unwritable¶
- Level: WARNING.
- Means: A temporary directory Pitloom made (a download, a Git checkout, a build, a copy of a model file, the build hook's staged SBOM) could not be fully removed: a file in it still open (Windows), or no permission to remove it. The line names the directory by its name, not its path: it is in the system temp directory. The prefix says which step made it.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Left what remained; the run goes on and its output is unchanged.
- Tell the user: a temporary directory was left behind, as the line names it; they delete it from the system temp directory once nothing uses it. Do not delete files for them; ask first, and with nobody to ask, report it only.
- Printed after:
Git source: <text>(a Git URL fetch), on its WARNING lines; the prefix is not part of the line. - Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING lines; the prefix is not part of the line. - Printed after:
Hugging Face source: <text>(a Hugging Face model fetch, its temporary directory), on its WARNING lines; the prefix is not part of the line. - Printed after:
PyPI source: <text>(a PyPI URL download, its temporary directory), on its WARNING lines; the prefix is not part of the line. - Printed after:
AI model scan: <text>(the AI model scan of a wheel, its temporary copy), on its WARNING lines; the prefix is not part of the line. - Printed after:
Pitloom build hook: <text>(the Hatchling build hook, its own warnings and notes), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: DIR=<dir>: could not be fully removed; left in the system temp directory [temp-dir-unwritable]
Summaries¶
A summary is an INFO: line that reports what a run did under its own rule (a
count, the key it wrote), with no condition to name: it carries no code, and
there is nothing to do.
- The build hook made the wheel's SBOM and staged it under the file name shown, with the number of [tool.pitloom.fragment] files merged into it; Hatchling places it in the wheel's .dist-info/sboms/ (PEP 770).
INFO: Pitloom build hook: staged SBOM '<path>' (<number> fragment(s)); Hatchling will inject it into .dist-info/sboms/ in the wheel