Skip to content

Conversation

@rezib
Copy link
Collaborator

@rezib rezib commented Sep 30, 2025

The Package specfile attribute is an absolute path. For comparison with paths extracted from patchs, it must be converted to relative path to have a chance to match.

Some unit tests for gerrit actions are introduced. These tests can be used to raise the bug before the fix is applied.

In gerrit action, compare the filepath extracted from patch with the
relative path of package specfile. The package specfile could be an
absolute path, in which case gerrit action never match the condition and
the spec file is never analyzed despite the validating review.
@rezib rezib requested review from qa-cea and valeriyoann September 30, 2025 14:25
Copy link
Collaborator

@qa-cea qa-cea left a comment

Choose a reason for hiding this comment

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

The PR look good to me, but we are going to deprecate Gerrit soon so I don't think we will merge this @valeriyoann ?

@valeriyoann
Copy link
Contributor

Since the code is there, and we never know what may happen in the future, might as well merge it I'd say.

@rezib
Copy link
Collaborator Author

rezib commented Oct 27, 2025

Do you want me to rebase this PR on current master in order to fix detected conflict?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants