Repository navigation
Prevent crashes when AZURE_CLIENT_ID/AZURE_TENANT_ID/INFRA_CONFIG variables are unset in linearb-deployment.yml - #163
Mathieu Gamache (PrincessMadMath) with Copilot wants to merge 5 commits into
Conversation
Co-authored-by: PrincessMadMath <8277266+PrincessMadMath@users.noreply.github.com>
|
Copilot Ok I also want to do the same compute logic for AZURE_TENANT_ID. Do not create a new step just rethink it to better evolve. |
Co-authored-by: PrincessMadMath <8277266+PrincessMadMath@users.noreply.github.com>
Done! The step has been renamed to |
|
Copilot I want a single job not duplicate steps |
Co-authored-by: PrincessMadMath <8277266+PrincessMadMath@users.noreply.github.com>
|
Copilot Ok no create an new jobs that precede the linearB and that both reference |
Co-authored-by: PrincessMadMath <8277266+PrincessMadMath@users.noreply.github.com>
Done! Created a separate |
Applies the same defensive Azure configuration resolution logic from #155 (commit ee19f3f) to
linearb-deployment.yml.Changes
get_azure_configjob that runs first and computes Azure configurationclient_idandtenant_idfor downstream jobs to referenceAZURE_CLIENT_IDfirst, falls back toINFRA_CONFIG.repo_identity_client_id, errors explicitly if neither existsAZURE_TENANT_IDfirst, falls back toINFRA_CONFIG.tenant_id, errors explicitly if neither existslinearb_deploymentandcortex_deploymentjobs that both depend onget_azure_configneeds.get_azure_config.outputs.client_idandneeds.get_azure_config.outputs.tenant_idinputs.cortexEntityIdOrTag != ''Pattern Applied
This prevents runtime crashes from attempting to parse undefined variables, provides clear error messages when configuration is missing, and allows for parallel execution of deployment jobs while maintaining a single source of configuration truth.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.