bootstrap_fabric_env
Bootstrap 00_env_config environment readiness for FabricOps notebooks.
This is a one-call bootstrap helper used at the start of a FabricOps run. It validates/loads configuration, resolves required environment targets, gathers runtime and AI availability metadata, and optionally executes smoke checks before quality/governance/lineage workflows continue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
str
|
Environment key to bootstrap from |
"Sandbox"
|
required_targets
|
list[str] | None
|
Target names that must resolve for the selected environment. Defaults
to |
None
|
check_ai
|
bool
|
Whether to include Fabric AI availability checks. |
True
|
smoke_test
|
bool
|
Whether to execute :func: |
True
|
config
|
FrameworkConfig | dict[str, Any] | None
|
Framework configuration object or compatible mapping. |
None
|
notebook_name
|
str | None
|
Notebook name used in runtime metadata and naming checks. |
None
|
Returns:
| Type | Description |
|---|---|
ConfigBootstrapResult
|
Structured bootstrap result containing resolved paths, runtime metadata, AI status, smoke-check results, and overall readiness status. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Raised when |
Notes
Side effects are limited to runtime/import checks. The helper does not create Fabric assets or write persistent state.
Examples:
>>> result = bootstrap_fabric_env(config=my_config, env="Sandbox", notebook_name="00_env_config")
>>> result.readiness_status in {"ready", "not_ready"}
True
Source code in src/fabricops_kit/config.py
683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 | |