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

Update Snowflake OTEL E2E tests to use Snowflake runs. #1849

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-dkurokawa
Copy link
Contributor

@sfc-gh-dkurokawa sfc-gh-dkurokawa commented Feb 27, 2025

Description

Update Snowflake OTEL E2E tests to use Snowflake runs.

Other details good to know for developers

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • New Tests
  • This change includes re-generated golden test results
  • This change requires a documentation update

Important

Refactor Snowflake OTEL E2E tests to use a standardized _test_tru_app function and update return types for consistency.

  • Refactoring:
    • Introduced _test_tru_app function in test_snowflake_event_table_exporter.py to standardize test execution for different apps.
    • Updated test_tru_custom_app, test_tru_llama, test_tru_chain, and test_feedback_computation to use _test_tru_app.
  • Type Changes:
    • Changed return type of _wait_for_num_results and _validate_results to List[Row] in test_snowflake_event_table_exporter.py.
  • Imports:
    • Added imports for Any, Callable, Dict, Tuple, Type, and pd in test_snowflake_event_table_exporter.py.

This description was created by Ellipsis for 665e564. It will automatically update as commits are pushed.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sfc-gh-dkurokawa sfc-gh-dkurokawa marked this pull request as ready for review February 27, 2025 17:09
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 27, 2025
app = tests.unit.test_otel_tru_custom.TestApp()
tru_recorder = TruApp(
app_name = str(uuid.uuid4())
app_name = app_name.upper() # TODO(this_pr): Remove this requirement or give a better error message!
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider refactoring the enforced uppercase transformation for app_name. Either remove the requirement or raise a meaningful error instead of silently modifying the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant