Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(automate): improve error message when version receive fails #376

Conversation

cdriesler
Copy link
Member

Description & motivation

  • We had an issue today where .env values were being cached (?) somewhere. SDK calls to receive_version() failed because it was using ids that didn't match the latest configuration.
  • This was unclear because the error message was unhelpful
  • This is likely to happen when setting up test automations and so we can improve the message

Changes:

  • Adds details about which specific version we attempted to receive when failing

Copy link

linear bot commented Jan 23, 2025

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.79%. Comparing base (34f2dc2) to head (b3ac90b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/speckle_automate/automation_context.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #376   +/-   ##
=======================================
  Coverage   89.79%   89.79%           
=======================================
  Files         129      129           
  Lines        6851     6851           
=======================================
  Hits         6152     6152           
  Misses        699      699           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cdriesler cdriesler changed the title chore(automate): improve error message version receive fails chore(automate): improve error message when version receive fails Jan 23, 2025
@cdriesler cdriesler merged commit 78c55b7 into main Jan 24, 2025
4 of 5 checks passed
@cdriesler cdriesler deleted the chuck/web-2503-unclear-errors-when-python-sdk-fails-to-find-version branch January 24, 2025 11:28
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