[STAGING][BUILD-RESULTS-002] Successful build on one repository and failure on another #62

Open
opened 2026-03-04 14:38:00 +01:00 by atartamo · 0 comments
Owner

Test Steps

  1. Create a package PR.
  2. Wait for the workflow-pr bot to create the related project PR.
  3. Wait for staging-bot to be added as a reviewer and ensure it is listed in the required reviewers for the project PR.
  4. Mock the OBS result list (/build/PR-Project/_result) with 2 repositories and 2 architectures.
  5. Set all repository, architecture, and package statuses to "in progress" (e.g., code="building").
  6. Transition the first repository (all architectures) to "finished" mode and set its package statuses to "success" (e.g., code="succeeded").
  7. Transition the second repository (all architectures) to "finished" mode and set its package statuses to "failed" (e.g., code="failed").

Expected Results

  1. The staging bot adds a comment: "Build is started in https://<OBS_URL>/project/show/<PR_BASE_PROJECT>:<PR_NUMBER>."
  2. The staging bot adds a comment: "Build failed".
  3. The staging bot adds a comment to the package PR: "Build failed, for more information go in https://<OBS_URL>/project/show/<PR_BASE_PROJECT>:<PR_NUMBER>."
**Test Steps** 1. Create a package PR. 2. Wait for the `workflow-pr` bot to create the related project PR. 3. Wait for `staging-bot` to be added as a reviewer and ensure it is listed in the required reviewers for the project PR. 4. Mock the OBS result list (`/build/PR-Project/_result`) with 2 repositories and 2 architectures. 5. Set all repository, architecture, and package statuses to "in progress" (e.g., `code="building"`). 6. Transition the first repository (all architectures) to "finished" mode and set its package statuses to "success" (e.g., `code="succeeded"`). 7. Transition the second repository (all architectures) to "finished" mode and set its package statuses to "failed" (e.g., `code="failed"`). **Expected Results** 1. The staging bot adds a comment: "Build is started in `https://<OBS_URL>/project/show/<PR_BASE_PROJECT>:<PR_NUMBER>`." 2. The staging bot adds a comment: "Build failed". 3. The staging bot adds a comment to the package PR: "Build failed, for more information go in `https://<OBS_URL>/project/show/<PR_BASE_PROJECT>:<PR_NUMBER>`."
atartamo added the
bot
staging
status
todo
labels 2026-03-04 14:38:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: git-workflow/tests#62