[STAGING][BUILD-RESULTS-004] Multiple packages with successful build results at different times #64

Open
opened 2026-03-04 14:38:01 +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 for each package.
  5. Set all repository, architecture, and package statuses to "in progress" (e.g., code="building").
  6. Transition all repositories and architectures for the first package to "finished" mode and set its package statuses to "success" (e.g., code="succeeded").
  7. Transition all repositories and architectures for the second package to "finished" mode and set its package statuses to "success" (e.g., code="succeeded").

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 successful" (only after all builds for all packages are completed and successful).
  3. The staging bot adds a comment to each package PR: "Build successful, 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 for each package. 5. Set all repository, architecture, and package statuses to "in progress" (e.g., `code="building"`). 6. Transition all repositories and architectures for the **first** package to "finished" mode and set its package statuses to "success" (e.g., `code="succeeded"`). 7. Transition all repositories and architectures for the **second** package to "finished" mode and set its package statuses to "success" (e.g., `code="succeeded"`). **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 successful" (only after all builds for all packages are completed and successful). 3. The staging bot adds a comment to each package PR: "Build successful, 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:01 +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#64