Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA : Tooling (PrestHubot) #234

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Tooling
---

# Tooling

<!-- * [Nightly Board](./nightly-board) -->
* [PrestHubot](./presthubot)
<!-- * [Test Scenarios](./test-scenarios) -->
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions content/project-organization/quality-council/tooling/presthubot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: PrestHubot
---

# PrestHubot

## Goal

Presthubot is the QA team's Slack Notifier. It checks several rules and sends a report via Slack.

## Schedule

Every week day at 06:45 AM

## Code

You can find the workflow on [Github](https://github.com/PrestaShop/presthubot/blob/master/.github/workflows/slacknotifier.yml).

## How it works

We can divide the process in two parts : QA Functional & QA Automation.

### QA Functional

#### PR Stats for QA
![PR Stats for QA](./images/presthubot-1.png)

This returns the number of Pull Requests that are pending:
* on the various branches under development
* on modules
* on specifications

But also the PRs awaiting their author, and those that are blocked.

#### PR Ready to Test
![PR Ready to Test](./images/presthubot-2.png)

This returns Pull Requests that are awaiting QA on the various branches under development and on the modules.

### QA Automation

#### Nightly Board
![Nightly Board](./images/presthubot-3.png)

This returns the nightly status of the various branches under development and the autoupgrade module.

By status, we mean the number of tests that have passed, failed and are skipped, as well as the processing time.

#### PR Ready to Test
![PR Ready to Test](./images/presthubot-4.png)

This returns the various Pull Requests to be reviewed by the project's Software Developers in Test. It also indicates which maintainers have already approved them.

#### JIRA (Need a Github Path)
![JIRA (Need a Github Path)](./images/presthubot-5.png)

This returns the various scenarios on JIRA which have been automated but which have not defined the test URL.

#### JIRA (Have an invalid Github Path)
![JIRA (Have an invalid Github Path)](./images/presthubot-6.png)

This returns the various scenarios on JIRA which have been automated but which have an invalid URL for the test.

#### Github issues (ToDo exist but GH are closed)
![Github issues (ToDo exist but GH are closed)](./images/presthubot-7.png)

In UI tests, the Software Developer in Test skips some tests due to the presence of bugs. To do this, they add a comment with the link to the issue representing the bug. Presthubot checks every day that the issues remain open as long as the comments are present. This means that a test can be activated as soon as the bug has been corrected (when the developer has not activated the test).