Repository navigation
fix(e2e): avoid resolving unrelated workspaces - #23994
sameekshyaranjan wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
240638b to
92e0405
Compare
Require a matching display-name label before accepting a generated DevWorkspace name. Add regression tests for exact and suffixed names, unrelated workspaces, missing labels, and ambiguity. Fixes eclipse-che#23993 Signed-off-by: Sameekshya Ranjan Sahu <148322255+sameekshyaranjan@users.noreply.github.com>
92e0405 to
3e98b63
Compare
What does this PR do?
Prevents the E2E workspace URL resolver from selecting an unrelated DevWorkspace when an exact name is missing. The generated-name fallback now requires the candidate's
kubernetes.io/metadata.namedisplay-name label to equal the requested name. Exact resource-name lookup and backup-restore lookup are preserved.Adds driverless regression tests for direct and list exact matches, restored workspaces, unrelated suffixed workspaces, missing labels, and ambiguous display names.
Screenshot/screencast of this PR
Not applicable: this changes E2E test infrastructure only.
What issues does this PR fix or reference?
Fixes #23993.
How to test this PR?
From
tests/e2eon Linux with Node.js and npm:npm ci TS_USE_WEB_DRIVER_FOR_TEST=false USERSTORY=ApiUrlResolverAPI npm run testThe six new resolver tests, TypeScript compilation, and ESLint/Prettier checks on the changed files passed locally. I also attempted the full E2E suite. Its first integration test could not run locally because this Windows environment has no
ocCLI or Che cluster credentials. The repository-wide lint command reports line-ending errors in untouched files on this Windows checkout; the changed files pass lint and formatting checks.PR Checklist
As the author of this pull request, I made sure that:
What issues does this PR fix or referenceandHow to test this PRare completedReviewers
Reviewers, please comment how you tested the PR when approving it.
Summary by CodeRabbit