run_config_smoke_tests
Run 00_env_config readiness smoke checks for configuration bootstrap.
Use this during environment bootstrap to verify Spark availability, Fabric runtime context access, required path mappings, notebook naming policy, and optional AI/IO import readiness before executing downstream notebook steps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
FrameworkConfig
|
Validated framework configuration to evaluate. |
required |
env
|
str
|
Environment key used when resolving required target paths. |
"Sandbox"
|
required_targets
|
list[str] | None
|
Required targets expected in |
None
|
check_ai
|
bool
|
Whether to run the Fabric AI availability check. |
True
|
check_io_import
|
bool
|
Whether to test importability of |
False
|
notebook_name
|
str | None
|
Notebook name to validate against configured naming prefixes. |
None
|
ai_result
|
dict[str, Any] | None
|
Optional precomputed AI availability payload to reuse instead of re-running the runtime import check. |
None
|
Returns:
| Type | Description |
|---|---|
list[ConfigSmokeCheckResult]
|
Ordered check results with |
Raises:
| Type | Description |
|---|---|
ValueError
|
Propagated from config/path validation helpers when required targets or configured environments are invalid. |
Notes
This helper performs validation and lightweight import/runtime checks only. It does not create or mutate Fabric resources.
Examples:
>>> checks = run_config_smoke_tests(config=my_config, env="Sandbox", notebook_name="00_env_config")
>>> any(c.status == "fail" for c in checks)
False
Source code in src/fabricops_kit/config.py
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | |