Skip to content

[WIP]verify Azure Pipelines works with Bitbucket provider#309

Open
xinredhat wants to merge 1 commit intoredhat-appstudio:mainfrom
xinredhat:verfiy_bitcket+azure
Open

[WIP]verify Azure Pipelines works with Bitbucket provider#309
xinredhat wants to merge 1 commit intoredhat-appstudio:mainfrom
xinredhat:verfiy_bitcket+azure

Conversation

@xinredhat
Copy link
Copy Markdown
Member

@xinredhat xinredhat commented Feb 23, 2026

Summary by CodeRabbit

Chores

  • Optimized test configuration setup for improved CI integration.

@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Simplify test plan to verify Bitbucket with Azure Pipelines

🧪 Tests

Grey Divider

Walkthroughs

Description
• Simplify test plan to focus on Bitbucket with Azure Pipelines
• Remove redundant test configurations for other git/CI combinations
• Retain single test case for Bitbucket and Azure integration
Diagram
flowchart LR
  A["Multiple git/CI combinations"] -- "Remove 7 configs" --> B["Single Bitbucket + Azure config"]
  B -- "Keep for testing" --> C["Bitbucket + Azure Pipelines"]
Loading

Grey Divider

File Changes

1. integration-tests/config/testplan.json 🧪 Tests +1/-50

Consolidate test plan to Bitbucket Azure Pipelines

• Removed 7 test configurations covering GitHub, GitLab with various CI systems
• Retained single test configuration for Bitbucket with Azure Pipelines
• Changed CI system from Jenkins to Azure for Bitbucket provider
• Reduced test plan from 8 configurations to 1 focused configuration

integration-tests/config/testplan.json


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review bot commented Feb 23, 2026

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Test matrix collapsed 🐞 Bug ⛯ Reliability
Description
The default integration test plan now generates only 1 template×TSSC combination (go ×
bitbucket+azure), which significantly reduces CI coverage for other supported Git/CI/registry
combinations and increases regression risk.
Code

integration-tests/config/testplan.json[R6-11]

        "tssc": [{
-          "git": "github",
-          "ci": "tekton",
-          "registry": "quay",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
-          "git": "gitlab",
-          "ci": "tekton",
-          "registry": "nexus",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
-          "git": "gitlab",
-          "ci": "gitlabci",
-          "registry": "quay",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
-          "git": "github",
-          "ci": "githubactions",
-          "registry": "artifactory",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
-          "git": "github",
-          "ci": "azure",
-          "registry": "quay",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
-          "git": "github",
-          "ci": "jenkins",
-          "registry": "quay",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
-          "git": "gitlab",
-          "ci": "jenkins",
-          "registry": "quay",
-          "tpa": "remote",
-          "acs": "remote"
-        },
-        {
          "git": "bitbucket",
-          "ci": "jenkins",
+          "ci": "azure",
          "registry": "quay",
          "tpa": "remote",
          "acs": "remote"
Evidence
The Tekton tssc-e2e task defaults to downloading and using
integration-tests/config/testplan.json as testplan.json, so changing this file directly changes
what the CI executes. The TestPlan implementation generates the Playwright project matrix by
iterating template(s) × tssc entries; with only one tssc entry and one template, only one
project configuration will be produced and exercised. This conflicts with the repository’s
documented intent to test multiple combinations in parallel and will stop exercising previously
covered permutations by default.

integration-tests/config/testplan.json[1-16]
integration-tests/tasks/tssc-e2e.yaml[58-73]
src/playwright/testplan.ts[64-93]
README.md[91-139]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`integration-tests/config/testplan.json` currently defines only one `tssc` configuration (bitbucket+azure) and one template (go). Because the Tekton `tssc-e2e` task uses this file by default, CI will only generate and run a single project configuration, reducing coverage for other supported provider combinations.

## Issue Context
- The CI task downloads this file when no `testplan` param is provided.
- `TestPlan` expands `templates × tssc` into the Playwright project matrix.

## Fix Focus Areas
- integration-tests/config/testplan.json[1-16]
- integration-tests/tasks/tssc-e2e.yaml[58-73]
- src/playwright/testplan.ts[64-93]

## Suggested fix approach
- Option A (simplest): Re-add the previously covered `tssc` combinations into the existing `backend-tests` plan and keep the new `bitbucket+azure` entry alongside them.
- Option B: Add a new dedicated plan (e.g., `bitbucket-azure-tests`) for the focused verification, while keeping `backend-tests` as the broad matrix used by default.
- If you choose Option B and want Tekton to run the new plan, ensure the execution path can select it (e.g., by passing a custom testplan content via the Tekton `testplan` param, or adjusting the command used in the task/scripts to allow overriding the plan name).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 23, 2026

📝 Walkthrough

Walkthrough

The test plan configuration is streamlined by removing multiple tssc entries and consolidating to a single configuration targeting the Bitbucket repository with Azure CI, replacing the previous multi-entry setup that included Jenkins-based entries.

Changes

Cohort / File(s) Summary
Test Plan Configuration
integration-tests/config/testplan.json
Simplified tssc array from multiple entries to a single Bitbucket+Azure configuration, removing Jenkins-based test entries and consolidating CI system setup.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

configuration, testing

Suggested reviewers

  • jsmid1
  • jkopriva
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: narrowing test configurations to verify Azure Pipelines integration with Bitbucket, which aligns with the removal of Jenkins configurations and retention of the Azure/Bitbucket entry.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
integration-tests/config/testplan.json (1)

1-17: ⚠️ Potential issue | 🟠 Major

Merging this [WIP] to main will drop all non-Azure/Bitbucket test combinations.

The previous configuration held multiple tssc entries covering additional CI/Git provider combinations. This change replaces them all with a single bitbucket + azure entry. If the goal is to verify Azure Pipelines works alongside existing coverage, the azure entry should be appended to the existing entries rather than substituting them. Landing this replacement on main would leave the branch testing only one combination going forward — a meaningful regression in test reliability.

If the intent is purely exploratory (run only this combo in isolation), consider keeping this on the feature branch and not merging until the other combinations are restored.

✅ Suggested additive approach
 "tssc": [
+  {
+    "git": "bitbucket",
+    "ci": "azure",
+    "registry": "quay",
+    "tpa": "remote",
+    "acs": "remote"
+  },
   {
-    "git": "bitbucket",
-    "ci": "azure",
-    "registry": "quay",
-    "tpa": "remote",
-    "acs": "remote"
+    ... /* restore previously existing entries here */
   }
 ]
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@integration-tests/config/testplan.json` around lines 1 - 17, The change
replaced the existing tssc matrix with a single bitbucket+azure entry, removing
other CI/git combinations; restore the previous tssc entries and append the new
{"git":"bitbucket","ci":"azure","registry":"quay","tpa":"remote","acs":"remote"}
object to that array instead of replacing it so all prior combinations remain
covered (edit the "tssc" array in the testPlans entry that currently contains
only a single object).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@integration-tests/config/testplan.json`:
- Around line 1-17: The change replaced the existing tssc matrix with a single
bitbucket+azure entry, removing other CI/git combinations; restore the previous
tssc entries and append the new
{"git":"bitbucket","ci":"azure","registry":"quay","tpa":"remote","acs":"remote"}
object to that array instead of replacing it so all prior combinations remain
covered (edit the "tssc" array in the testPlans entry that currently contains
only a single object).
ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e3283b4 and 4e2f8ff.

📒 Files selected for processing (1)
  • integration-tests/config/testplan.json

Comment on lines 6 to 11
"tssc": [{
"git": "github",
"ci": "tekton",
"registry": "quay",
"tpa": "remote",
"acs": "remote"
},
{
"git": "gitlab",
"ci": "tekton",
"registry": "nexus",
"tpa": "remote",
"acs": "remote"
},
{
"git": "gitlab",
"ci": "gitlabci",
"registry": "quay",
"tpa": "remote",
"acs": "remote"
},
{
"git": "github",
"ci": "githubactions",
"registry": "artifactory",
"tpa": "remote",
"acs": "remote"
},
{
"git": "github",
"ci": "azure",
"registry": "quay",
"tpa": "remote",
"acs": "remote"
},
{
"git": "github",
"ci": "jenkins",
"registry": "quay",
"tpa": "remote",
"acs": "remote"
},
{
"git": "gitlab",
"ci": "jenkins",
"registry": "quay",
"tpa": "remote",
"acs": "remote"
},
{
"git": "bitbucket",
"ci": "jenkins",
"ci": "azure",
"registry": "quay",
"tpa": "remote",
"acs": "remote"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Test matrix collapsed 🐞 Bug ⛯ Reliability

The default integration test plan now generates only 1 template×TSSC combination (go ×
bitbucket+azure), which significantly reduces CI coverage for other supported Git/CI/registry
combinations and increases regression risk.
Agent Prompt
## Issue description
`integration-tests/config/testplan.json` currently defines only one `tssc` configuration (bitbucket+azure) and one template (go). Because the Tekton `tssc-e2e` task uses this file by default, CI will only generate and run a single project configuration, reducing coverage for other supported provider combinations.

## Issue Context
- The CI task downloads this file when no `testplan` param is provided.
- `TestPlan` expands `templates × tssc` into the Playwright project matrix.

## Fix Focus Areas
- integration-tests/config/testplan.json[1-16]
- integration-tests/tasks/tssc-e2e.yaml[58-73]
- src/playwright/testplan.ts[64-93]

## Suggested fix approach
- Option A (simplest): Re-add the previously covered `tssc` combinations into the existing `backend-tests` plan and keep the new `bitbucket+azure` entry alongside them.
- Option B: Add a new dedicated plan (e.g., `bitbucket-azure-tests`) for the focused verification, while keeping `backend-tests` as the broad matrix used by default.
- If you choose Option B and want Tekton to run the new plan, ensure the execution path can select it (e.g., by passing a custom testplan content via the Tekton `testplan` param, or adjusting the command used in the task/scripts to allow overriding the plan name).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

@konflux-ci-qe-bot
Copy link
Copy Markdown

@xinredhat: The following test has Failed, say /retest to rerun failed tests.

PipelineRun Name Status Rerun command Build Log Test Log
e2e-4.20-mwskc Failed /retest View Pipeline Log View Test Logs

Inspecting Test Artifacts

To inspect your test artifacts, follow these steps:

  1. Install ORAS (see the ORAS installation guide).
  2. Download artifacts with the following commands:
mkdir -p oras-artifacts
cd oras-artifacts
oras pull quay.io/konflux-test-storage/rhtap-team/rhtap-cli:e2e-4.20-mwskc

Test results analysis

<not enabled>

OCI Artifact Browser URL

<not enabled>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants