Skip to content

Clarify how import-time I/O errors affect revision validation #280

Description

@pheus

Change Type

Correction

Proposed Changes

The runtime reference says that exceptions raised by Project code during import make a revision invalid.

However, an unhandled OSError or one of its subclasses is treated as an environment failure, even when it comes from Project code. For example, reading a missing file during import leaves the revision materialized with a last_validation_failure, allowing validation to be retried.

Update “Import-safe module-level code” and “How validation reaches a verdict” to explain this distinction, and align the classify_script_file_error() docstring with the existing behavior.

Activity

  1. added
    status: needs triage
    type: documentation
    app: scripts
    status: backlog
    and removed
    status: needs triage
    on Dec 2, 2026
  2. added this to the v0.3.0 milestone on Dec 2, 2026
  3. self-assigned this
    on Dec 3, 2026
  4. added
    status: accepted
    and removed
    status: backlog
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bucket: Improveapp: scriptsstatus: acceptedtype: documentation

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions