Skip to content

infra: Enable integration tests for all PRs and fix broken tests #833

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

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

malexw
Copy link
Collaborator

@malexw malexw commented Nov 7, 2024

Resolves an issue that was causing two broken integration tests. (And in fact, the feature was broken but I don't think anyone noticed).

We also now can run integration tests for all PRs.

AI Description

This PR introduces changes to the backend integration tests and the conversation service.

Changes

  • The backend_integration_tests.yml file now includes a new trigger for pull requests.
  • The conversation.py file has been updated to import the uuid module.
  • A new function, create_message, has been added to the conversation.py file. This function is responsible for creating a message with specified parameters, including session, chat request, conversation ID, user ID, and message agent.
  • The generate_conversation_title function in the conversation.py file now calls the create_message function to generate a response message.

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.27%. Comparing base (85de86a) to head (ce77fa2).

Files with missing lines Patch % Lines
src/backend/services/conversation.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #833      +/-   ##
==========================================
- Coverage   79.27%   79.27%   -0.01%     
==========================================
  Files         251      251              
  Lines       10654    10657       +3     
==========================================
+ Hits         8446     8448       +2     
- Misses       2208     2209       +1     

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


🚨 Try these New Features:

Copy link
Collaborator

@EugeneLightsOn EugeneLightsOn left a comment

Choose a reason for hiding this comment

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

Nice PR

Copy link
Collaborator

@EugeneLightsOn EugeneLightsOn left a comment

Choose a reason for hiding this comment

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

Alex, I noticed there's another error that's not related to the PR.

@tianjing-li
Copy link
Collaborator

Could you follow up with Luisa if any keys need to be added for huggingface, otherwise we can disable the failing tests

@malexw
Copy link
Collaborator Author

malexw commented Nov 8, 2024

Could you follow up with Luisa if any keys need to be added for huggingface, otherwise we can disable the failing tests

Will do

Copy link
Collaborator

@tianjing-li tianjing-li left a comment

Choose a reason for hiding this comment

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

Good to go after initial comments

@malexw malexw merged commit 8240e72 into main Nov 19, 2024
9 checks passed
@malexw malexw deleted the alexw/tlk-1950-enable-backend-integration-tests-per-pr branch November 19, 2024 17:19
enzoxic added a commit to enzoxic/cohere-toolkit that referenced this pull request Nov 24, 2024
commit 5502d8d
Author: Tianjing Li <tianjinglimail@gmail.com>
Date:   Fri Nov 22 10:26:22 2024 -0500

    backend: Hybrid Search improvements (cohere-ai#845)

    * Streamline hybrid search tool

    * Remove unit test config

    * Fix tool error call

    * Get definition

    * Fix implementation key

    * Fix tool call tests

    * Remove uneeded if condition

commit 7b586db
Author: Danylo Boiko <55975773+danylo-boiko@users.noreply.github.com>
Date:   Fri Nov 22 17:26:09 2024 +0200

    tests: add the ability to specify a specific test for unit and community tests (cohere-ai#851)

    Add file params for unit and community tests

commit 8cf04f8
Author: Tianjing Li <tianjinglimail@gmail.com>
Date:   Thu Nov 21 15:21:33 2024 -0500

    docs: Improve tool docs & reflect current state (cohere-ai#843)

    * Add better docs

    * Update slack docs

commit 37a6e2d
Author: Danylo Boiko <55975773+danylo-boiko@users.noreply.github.com>
Date:   Thu Nov 21 21:17:04 2024 +0200

    frontend: fix react-scroll-to-bottom import (cohere-ai#853)

    Fix import

commit fa28503
Author: Danylo Boiko <55975773+danylo-boiko@users.noreply.github.com>
Date:   Thu Nov 21 12:02:43 2024 +0200

    tests: add cleanup for containers used in integration tests (cohere-ai#852)

    Add --rm flag

commit 13663b5
Author: Eugene P <144219719+EugeneLightsOn@users.noreply.github.com>
Date:   Wed Nov 20 16:18:54 2024 +0100

    Azure compose deployment (cohere-ai#840)

    * TLK-1508 Azure deployment

    * TLK-1508 Azure deployment

    * TLK-1508 Azure deployment

commit 8240e72
Author: Alex W <alex@lightsonsoftware.com>
Date:   Tue Nov 19 12:19:41 2024 -0500

    infra: Enable integration tests for all PRs and fix broken tests (cohere-ai#833)

    Enable integration tests for all PRs and fix broken tests
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.

4 participants