Skip to content

LCORE-5682: point e2e conversation cleanup at v2 - #3384

Open
snuryyeva wants to merge 2 commits into
lightspeed-core:mainfrom
snuryyeva:snuryyeva/convV1_leftover
Open

snuryyeva wants to merge 2 commits into
lightspeed-core:mainfrom
snuryyeva:snuryyeva/convV1_leftover

Conversation

@snuryyeva

@snuryyeva snuryyeva commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library [pyproject.toml + uv.lock]
  • Bump-up dependent library [requirements.*.txt for Konflux]
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Documentation
    • Updated integration examples to reflect the current conversations API.
  • Chores
    • Updated automated test cleanup to use the current conversations endpoint. No end-user-facing behavior changed.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c6ec072 and 6132650.

Files selected for processing: 2

  • tests/e2e/features/environment.py
  • tests/integration/README.md

No actionable comments were generated in the recent review.

Walkthrough

The end-to-end cleanup request now deletes feedback conversations through the v2 endpoint. The integration README now uses the v2 conversation test filename and endpoint in its example.

Changes

Conversation API v2 alignment

Layer / File(s) Summary
Update conversation v2 references
tests/e2e/features/environment.py, tests/integration/README.md
The end-to-end cleanup URL now uses /v2/conversations/. The README example now refers to test_conversations_v2_integration.py and v2 conversation endpoints.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

Suggested reviewers: radofuchs, anik120, tisnik

Merge Risk: Minimal · previous review c6ec0

This updates test cleanup and documentation to refer to conversations v2. It does not affect production behavior, and no concrete merge-blocking risk was found.

Pre-merge checks: Passed 6

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the e2e conversation cleanup now targets the v2 conversations endpoint. The raw summary confirms that after_feature in tests/e2e/features/environment.py switches its D…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Performance And Algorithmic Complexity Passed The PR changes two files, each by one line. Neither change touches algorithms, loops, list operations, caches, buffers, or pagination. - tests/e2e/features/environment.py (line 390): the feedback-co…
Security And Secret Handling Passed The PR changes two files, each by one line (git diff --name-status shows only tests/e2e/features/environment.py and tests/integration/README.md as modified). - `tests/e2e/features/environment.py…
Full details: Title check

Explanation

The title names the main change: the e2e conversation cleanup now targets the v2 conversations endpoint. The raw summary confirms that after_feature in tests/e2e/features/environment.py switches its DELETE call from /v1/conversations/{conversation_id} to /v2/conversations/{conversation_id}. The README example rename is a minor, supporting change that the title does not mention, which is acceptable. The title is concise, specific, and includes a ticket reference.

Full details: Performance And Algorithmic Complexity

Explanation

The PR changes two files, each by one line. Neither change touches algorithms, loops, list operations, caches, buffers, or pagination. - tests/e2e/features/environment.py (line 390): the feedback-conversation cleanup URL changes from /v1/conversations/{conversation_id} to /v2/conversations/{conversation_id}. The loop, bearer token, 10-second timeout, and status assertion are unchanged. This is a string change with no new per-item work. - tests/integration/README.md (line 196): a documentation example changes from test_conversations_v1_integration.py to test_conversations_v2_integration.py. No performance regression is introduced under any of the five listed criteria. The check is satisfied. The diff was inspected directly from the review refs.

Full details: Security And Secret Handling

Explanation

The PR changes two files, each by one line (git diff --name-status shows only tests/e2e/features/environment.py and tests/integration/README.md as modified). - tests/e2e/features/environment.py (line 390): the cleanup URL changes from /v1/conversations/{conversation_id} to /v2/conversations/{conversation_id}. The bearer token, the 10-second timeout, and the status_code == 200 assertion are unchanged. - tests/integration/README.md (line 196): a file-naming example changes from the v1 to the v2 conversation test name. This is documentation only. Check against the failure conditions: 1. Secrets hardcoded or logged: the test bearer token on line 389 is an existing, unchanged line. The PR does not add or move it. It is a test-only JWT and is not a new exposure. 2. Missing auth on endpoints: the PR adds no endpoint. The existing auth header is still sent. 3. Injection: no new input handling. The URL is built from the same f-string with the same conversation_id source. 4. Sensitive data in responses or logs: no new logging or response handling. 5. K8s/RH secrets: none are added or changed. No failure condition is introduced by the changed code.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Simplify code

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@snuryyeva

Copy link
Copy Markdown
Contributor Author

@asimurka , @Jazzcort PTAL when you get a chance. thanks

@radofuchs radofuchs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@snuryyeva

Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@snuryyeva

Copy link
Copy Markdown
Contributor Author

/retest

This branch has not been deployed

No deployments
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