Skip to content

Conversation

@matejmatuska
Copy link
Member

No description provided.

@github-actions
Copy link

Thank you for contributing to the Leapp project!

Please note that every PR needs to comply with the leapp-repository contribution and development guidelines and must pass all tests in order to be mergeable.
If you want to request a review or rebuild a package in copr, you can use following commands as a comment:

  • review please @oamg/developers to notify leapp developers of the review request
  • /packit copr-build to submit a public copr build using packit

Packit will automatically schedule regression tests for this PR's build and latest upstream leapp build.
However, here are additional useful commands for packit:

  • /packit test to re-run manually the default tests
  • /packit retest-failed to re-run failed tests manually
  • /packit test oamg/leapp#42 to run tests with leapp builds for the leapp PR#42 (default is latest upstream - main - build)

Note that first time contributors cannot run tests automatically - they need to be started by a reviewer.

It is possible to schedule specific on-demand tests as well. Currently 2 test sets are supported, beaker-minimal and kernel-rt, both can be used to be run on all upgrade paths or just a couple of specific ones.
To launch on-demand tests with packit:

  • /packit test --labels kernel-rt to schedule kernel-rt tests set for all upgrade paths
  • /packit test --labels beaker-minimal-8.10to9.4,kernel-rt-8.10to9.4 to schedule kernel-rt and beaker-minimal test sets for 8.10->9.4 upgrade path

See other labels for particular jobs defined in the .packit.yaml file.

Please open ticket in case you experience technical problem with the CI. (RH internal only)

Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please contact leapp-infra.

@matejmatuska matejmatuska added the documentation Docs/comments with no functional change label Jul 10, 2025
Copy link
Member

@MichalHe MichalHe left a comment

Choose a reason for hiding this comment

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

I have added some clarity suggestions and typos. Do not let my review discourage you, it is a solid and valuable piece of work.

Comment on lines +103 to +105
Note that good commit message should provide information in similar the [PR
description](#pr-description). Poorly written commit messages can block the
merge of PR or proper review.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Note that good commit message should provide information in similar the [PR
description](#pr-description). Poorly written commit messages can block the
merge of PR or proper review.
Note that a good commit message should provide information similar to the [PR
description](#pr-description). Poorly written commit messages can prevent the PR
from being approved and merged.

- Fork the repository and clone your fork.
- Make your changes in a new git branch:
```bash
git checkout -b bug/my-fix-branch main
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
git checkout -b bug/my-fix-branch main
git switch -c bug/my-fix-branch main

```bash
git checkout -b bug/my-fix-branch main
```
- Commit your changes with message conforming to the our [Git commit messages guidelines](#commit-messages).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Commit your changes with message conforming to the our [Git commit messages guidelines](#commit-messages).
- Commit your changes with a message conforming to the our [Git commit messages guidelines](#commit-messages).

```
- When opening a pull request, select the main branch as a base and follow our [PR description guidelines](#pr-description).
- You can open the PR as a Draft PR to prevent merging while you are still working on it.
- Wait for a review from the maintainers and address all their comments.
Copy link
Member

Choose a reason for hiding this comment

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

I would not add this sentence, sounds that we are benevolent dictators or something :D

## Why inhibit the upgrade process
A critical part of in-place upgrades are inhibtitors. Inhibitors are typically
used when the upgrade cannot safely continue, this can have multiple reasons:
- the upgrade is missing a required resource - for example it cannot figure
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- the upgrade is missing a required resource - for example it cannot figure
- the upgrade is missing a required resource - for example, it cannot figure

## What is an inhibitor
An inhibitor is a {ref}`Report<building-blocks-and-architecture:report>` with
the {py:attr}`leapp.reporting.Groups.INHIBITOR` set. There is nothing else
special about inhibitors, the inhibition is done by a dedicated actor which
Copy link
Member

Choose a reason for hiding this comment

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

A tiny bit clearer, IMHO

Suggested change
special about inhibitors, the inhibition is done by a dedicated actor which
special about inhibitors, the actual inhibition (i.e., stoping the leapp parent process) is done by a dedicated actor which


```{important}
Any Report message produced **after** the Report phase will
**not** have inhibiting effect. The details mentioned in the Report messages
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
**not** have inhibiting effect. The details mentioned in the Report messages
**not** have the inhibiting effect. The details mentioned in the Report messages

```{important}
Any Report message produced **after** the Report phase will
**not** have inhibiting effect. The details mentioned in the Report messages
will be part of the report available to the user to review.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
will be part of the report available to the user to review.
will be a part of the report available to the user to review.


## Producing an inhibitor
Any actor can inhibit the upgrade process by producing a report and adding the
{py:attr}`leapp.reporting.Groups.INHIBITOR` to `leapp.reporting.Groups()`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{py:attr}`leapp.reporting.Groups.INHIBITOR` to `leapp.reporting.Groups()`.
{py:attr}`leapp.reporting.Groups.INHIBITOR` group to `leapp.reporting.Groups()`.

Comment on lines +73 to +74
the system or upgrade configuration the use needs to deal with before moving on
with the upgrade. They are not designed to be used for general failures. To
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
the system or upgrade configuration the use needs to deal with before moving on
with the upgrade. They are not designed to be used for general failures. To
the system or upgrade configuration that the user needs to address before moving on
with the upgrade. They are not intended to be used for general failures. To

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

Labels

documentation Docs/comments with no functional change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants