Return the memoized deterministic hash of the solution content. This hash is computed from all fields that affect the solution's behavior: name, definition, language, entry point, dependencies, and all source file paths and contents. This ensures that any meaningful change t
(self)
| 344 | return h.hexdigest() |
| 345 | |
| 346 | def hash(self) -> str: |
| 347 | """Return the memoized deterministic hash of the solution content. |
| 348 | |
| 349 | This hash is computed from all fields that affect the solution's behavior: |
| 350 | name, definition, language, entry point, dependencies, and all source file |
| 351 | paths and contents. This ensures that any meaningful change to the solution |
| 352 | results in a different hash. |
| 353 | |
| 354 | The hash is used for caching build artifacts, allowing solutions with the same |
| 355 | hash to reuse the same cached build result. |
| 356 | |
| 357 | Returns |
| 358 | ------- |
| 359 | str |
| 360 | A SHA1 hash (40 hex characters) uniquely identifying this solution's content. |
| 361 | """ |
| 362 | return self._hash_cache |
| 363 | |
| 364 | def __hash__(self) -> int: # pragma: no cover - trivial wrapper |
| 365 | # Use the memoized content hash for fast hashing in dict/set keys. |
nothing calls this directly
no outgoing calls
no test coverage detected