From 2c33f52c71b341132f7dd18466bf8de5789b0bfc Mon Sep 17 00:00:00 2001 From: mrhapile Date: Fri, 9 Jan 2026 10:05:28 +0530 Subject: [PATCH 1/2] docs: document E2E workaround for kubeflex context issue Signed-off-by: mrhapile --- CONTRIBUTING.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eb42802c..f866cd20 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -92,6 +92,17 @@ Open a Pull Request (PR) from your branch to the main repository. - **Respect Internationalization Standards:** Avoid pushing raw UI strings directly; always use i18n references. - **Be Respectful:** Review our Code of Conduct before contributing. +## Note on E2E Test Context Workaround + +The E2E test suite includes a temporary workaround for a known kubeflex context-selection issue. + +Under certain conditions, `kflex create` can select an unintended hosting cluster when multiple kubeconfig contexts are present and kubeflex-related context extensions are configured. This can cause E2E tests to fail even when the current context correctly accesses the intended hosting cluster. + +To ensure consistent and reliable test execution, the E2E test setup removes kubeflex-specific extensions from the kubeconfig before running tests. This forces `kflex create` to rely solely on the current kubeconfig context during E2E runs. + +This workaround is limited to the E2E test infrastructure and does not affect normal user workflows. It is intended to be temporary and will be removed once the underlying context-handling issue is resolved. + + ### Caution With AI-Generated Code > AI tools (like GitHub Copilot or ChatGPT) are helpful but **not always context-aware**. From 0c3b20eb0706146abd20ad86971382d2c473b231 Mon Sep 17 00:00:00 2001 From: mrhapile Date: Fri, 9 Jan 2026 10:16:52 +0530 Subject: [PATCH 2/2] docs: document minor fix Signed-off-by: mrhapile --- CONTRIBUTING.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f866cd20..8604ad46 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -102,7 +102,6 @@ To ensure consistent and reliable test execution, the E2E test setup removes kub This workaround is limited to the E2E test infrastructure and does not affect normal user workflows. It is intended to be temporary and will be removed once the underlying context-handling issue is resolved. - ### Caution With AI-Generated Code > AI tools (like GitHub Copilot or ChatGPT) are helpful but **not always context-aware**.