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(ci): unquarantine media download test #1039

Merged
merged 3 commits into from
Dec 12, 2024
Merged

chore(ci): unquarantine media download test #1039

merged 3 commits into from
Dec 12, 2024

Conversation

hassiebp
Copy link
Contributor

@hassiebp hassiebp commented Dec 12, 2024

Important

Unquarantine test_replace_media_reference_string_in_object() and update Docker networking in CI configuration.

  • Tests:
    • Unquarantine test_replace_media_reference_string_in_object() in tests/test_media.py by removing @pytest.mark.skip.
  • CI Configuration:
    • Change LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT from http://localhost:9090 to http://0.0.0.0:9090 in .github/workflows/ci.yml to address Docker networking issues.

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

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Disclaimer: Experimental PR review

PR Summary

This PR modifies the CI workflow to fix Docker networking issues by changing the S3 event upload endpoint binding, enabling previously quarantined media download tests to run successfully.

  • Changed S3 event upload endpoint from localhost:9090 to 0.0.0.0:9090 in /.github/workflows/ci.yml to allow container-to-container communication
  • Unquarantined test_replace_media_reference_string_in_object() in /tests/test_media.py by removing skip decorator
  • Removed unused tmp_path parameter from media reference test
  • Test now validates WAV audio file handling including reference creation, storage and retrieval

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Disclaimer: Experimental PR review

PR Summary

(updates since last review)

This PR updates the CI configuration by changing the S3 media upload endpoint configuration from 'LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT' to 'LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT' with endpoint URL 'http://localhost:9090'.

  • Changed environment variable name from LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT to LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT in /.github/workflows/ci.yml
  • Updated endpoint URL back to http://localhost:9090 from http://0.0.0.0:9090 for container networking
  • Maintained test unquarantine for media reference string handling

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@hassiebp hassiebp merged commit ea75cc6 into main Dec 12, 2024
3 of 4 checks passed
@hassiebp hassiebp deleted the fix-ci-minio branch December 12, 2024 10:16
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Disclaimer: Experimental PR review

PR Summary

(updates since last review)

No significant changes found since the last review. The current state shows a discrepancy between the PR description (which mentions changing to http://0.0.0.0:9090) and the actual implementation (which uses http://localhost:9090), but this was already noted in the previous review.

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -90,7 +90,7 @@ jobs:
rm -rf .env

echo "::group::Run server"
TELEMETRY_ENABLED=false LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT=http://localhost:9090 LANGFUSE_SDK_CI_SYNC_PROCESSING_ENABLED=true LANGFUSE_READ_FROM_POSTGRES_ONLY=true LANGFUSE_READ_FROM_CLICKHOUSE_ONLY=false LANGFUSE_RETURN_FROM_CLICKHOUSE=false docker compose up -d
TELEMETRY_ENABLED=false LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT=http://localhost:9090 LANGFUSE_SDK_CI_SYNC_PROCESSING_ENABLED=true LANGFUSE_READ_FROM_POSTGRES_ONLY=true LANGFUSE_READ_FROM_CLICKHOUSE_ONLY=false LANGFUSE_RETURN_FROM_CLICKHOUSE=false docker compose up -d
Copy link

Choose a reason for hiding this comment

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

logic: PR description mentions changing endpoint to http://0.0.0.0:9090 but it's still set to http://localhost:9090. This may cause Docker networking issues.

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.

1 participant