Skip to content

FIX: AIRTInitializer container crash and parameters.example.json typo#1648

Merged
varunj-msft merged 1 commit intomicrosoft:mainfrom
varunj-msft:varunj-msft/8520-External-GUI-Predeployment-Bug-Fixes
Apr 27, 2026
Merged

FIX: AIRTInitializer container crash and parameters.example.json typo#1648
varunj-msft merged 1 commit intomicrosoft:mainfrom
varunj-msft:varunj-msft/8520-External-GUI-Predeployment-Bug-Fixes

Conversation

@varunj-msft
Copy link
Copy Markdown
Contributor

Description

Fixes two pre-existing bugs blocking Azure Container App deployments on current main.

AIRTInitializer crashes with FileNotFoundError when .pyrit_conf is missing. PR #1578 added _validate_operation_fields() which unconditionally opens ~/.pyrit/.pyrit_conf. This file does not exist in container deployments. The fix checks if the file exists before reading it, and skips gracefully in container/GUI mode where operator/operation are set per-user at runtime (PR #1636). This unblocks the test environment where new revisions have been ActivationFailed since Apr 10.

infra/parameters.example.json has "targets airt" but the valid initializer name is "target" (no s). Fixed the typo. Does not affect the pipeline (uses Bicep default) but would break manual deployments following the example.

Related to User Story #8520

Tests and Documentation

Added 4 unit tests for _validate_operation_fields():

test_validate_operation_fields_skips_when_pyrit_conf_missing
test_validate_operation_fields_preserves_existing_labels_when_pyrit_conf_missing
test_validate_operation_fields_merges_conf_into_labels
test_validate_operation_fields_does_not_overwrite_existing_labels
All 18 airt initializer tests pass. All 180 setup module tests pass. Ruff lint and format clean. E2E validated: backend starts with --initializers target airt and no .pyrit_conf, health check passes.

No documentation changes needed. No JupyText changes.

@varunj-msft varunj-msft changed the title Deployment Bug Fixes FIX: AIRTInitializer container crash and parameters.example.json typo Apr 23, 2026
Comment thread pyrit/setup/initializers/airt.py
@varunj-msft varunj-msft merged commit 936ae43 into microsoft:main Apr 27, 2026
39 checks passed
@varunj-msft varunj-msft deleted the varunj-msft/8520-External-GUI-Predeployment-Bug-Fixes branch April 27, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants