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

disable another flaky assert #2678

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

rkuo-danswer
Copy link
Contributor

Description

Fixes DAN-765. flaky knowledge chat test.

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Accepted Risk

[Any know risks or failure modes to point out to reviewers]

Related Issue(s)

[If applicable, link to the issue(s) this PR addresses]

Checklist:

  • All of the automated tests pass
  • All PR comments are addressed and marked resolved
  • If there are migrations, they have been rebased to latest main
  • If there are new dependencies, they are added to the requirements
  • If there are new environment variables, they are added to all of the deployment methods
  • If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
  • Docker images build and basic functionalities work
  • Author has done a final read through of the PR right before merge

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 11:50pm

@hagen-danswer hagen-danswer marked this pull request as ready for review October 4, 2024 00:25
@hagen-danswer hagen-danswer added this pull request to the merge queue Oct 4, 2024
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.

PR Summary

This PR addresses a flaky test in the knowledge chat functionality by disabling an assertion in the test_all_stream_chat_message_objects_outputs function.

  • Commented out assertion for top document ID in third question response in /backend/tests/integration/tests/dev_apis/test_knowledge_chat.py
  • Change aims to resolve issue DAN-765 related to inconsistent test results
  • Flakiness likely caused by non-deterministic query rephrasing in the LLM
  • Modification improves test stability without compromising core functionality validation

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

Comment on lines +186 to +188
# flakiness likely due to non-deterministic rephrasing
# FLAKY - check that the top documents are correct
# assert response_json["top_documents"][0]["document_id"] == cc_pair_1.documents[2].id
Copy link

Choose a reason for hiding this comment

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

logic: Commenting out this assertion may hide potential issues with document retrieval or ranking. Consider adding alternative checks or logging to monitor the behavior.

Merged via the queue into main with commit 4f47004 Oct 4, 2024
7 checks passed
@rkuo-danswer rkuo-danswer deleted the bugfix/flaky-knowledge-chat-test branch October 7, 2024 22:24
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