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

Fix issue where Evaluation Results don't load when individual Evaluation Scenarios fail #1844

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

jp-agenta
Copy link
Contributor

Description

  • Catch None-related issue in Optional[...] field: EvaluationResult.correct_answers
  • Adds logger.error(e) for exception in evaluation router

Related Issues
Not linked yet.

Catch None-related issue in Optional[...] field: EvaluationResult.correct_answers
Adds logger.error(e) for exception in evaluation router
Copy link

vercel bot commented Jul 4, 2024

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

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 4:13pm

Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

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

Thanks @jp-agenta for the PR.
lgtm

I see this issue happen again and again (a non-handled output / edge case from the backend breaking the frontend). Any ideas how can we make sure this issue does not happen in the future? Integration tests with missing information? An explicit definition of the API using something like postman?

@jp-agenta
Copy link
Contributor Author

I'd say (non-exhaustive list):

  1. Consistent (and monotonically growing) automation and manual testing.
  2. Proper testing coverage (BDD, RTM, API docs, Web/CLI/SDK docs)
  3. Testing not only for E2E from the user/browser perspective but also the API from an endpoint perspective.
  4. BDD for E2E testing (functional, security, etc)
  5. Splitting tests : smoke (fast), sanity (partial), regression (full), acceptance (new) -- automated and/or manual
  6. Automated API documentation (incl. strong typing) -- OpenAPI ?
  7. API-driven design is key when there are multiple interfaces (web, cli, sdk(s))

@jp-agenta jp-agenta marked this pull request as ready for review July 5, 2024 12:37
@dosubot dosubot bot added Backend bug Something isn't working evaluation labels Jul 5, 2024
@jp-agenta
Copy link
Contributor Author

QA tests
Screenshot 2024-07-04 at 18 24 16
(Opens even with failed scenario n°2)

Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

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

Thanks @jp-agenta !

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 5, 2024
@mmabrouk mmabrouk merged commit ae6201b into main Jul 5, 2024
9 checks passed
@mmabrouk mmabrouk deleted the fix/unhandled-no-correct-answers branch July 5, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend bug Something isn't working evaluation lgtm This PR has been approved by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants