Skip to content

Handle missing bundle and add info about API key being used#252

Merged
iLLiCiTiT merged 6 commits intodevelopfrom
bugfix/handle-undefined-bundles
Sep 8, 2025
Merged

Handle missing bundle and add info about API key being used#252
iLLiCiTiT merged 6 commits intodevelopfrom
bugfix/handle-undefined-bundles

Conversation

@antirotor
Copy link
Copy Markdown
Member

Changelog Description

Add info to console about API key being used from environment variable as it might massively change behavior of the launcher logic. Also handle better error when no usable bundle can be found.

Testing notes:

  1. Unset any dev bundles
  2. Run ayon with --use-dev - you should get more informative error
  3. Set AYON_API_KEY in current terminal session
  4. Run ayon - you should see line stating that API key is used from environment variable

@antirotor antirotor self-assigned this Sep 4, 2025
@antirotor antirotor added the type: enhancement Improvement of existing functionality or minor addition label Sep 4, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves user experience by adding informative console output about API key usage and better error handling for missing bundles. It helps users understand when environment variables are affecting the launcher behavior and provides clearer error messages when required bundles are not available.

  • Add console notification when API key is loaded from environment variable
  • Implement validation to ensure all required bundle types (production, staging, dev) are available
  • Improve error messaging for missing bundle scenarios

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
start.py Adds console output to inform users when API key is sourced from environment variable
common/ayon_common/distribution/control.py Adds validation to check for required bundle types and raises informative error when missing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@iLLiCiTiT iLLiCiTiT added type: bug Something isn't working and removed type: enhancement Improvement of existing functionality or minor addition labels Sep 8, 2025
@iLLiCiTiT iLLiCiTiT changed the title Add info about API key being used and handle missing bundles Handle missing bundle and add info about API key being used Sep 8, 2025
@iLLiCiTiT iLLiCiTiT merged commit 97bcc75 into develop Sep 8, 2025
1 check passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/handle-undefined-bundles branch September 8, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants