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

packit: add actions for RPM tests #636

Closed
wants to merge 1 commit into from
Closed

packit: add actions for RPM tests #636

wants to merge 1 commit into from

Conversation

dougsland
Copy link
Collaborator

  • build rpm
  • install rpm
  • execute setup

Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 3: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 4: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 5: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 6: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 7: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 8: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command validate-config or our pre-commit hooks for validation of the configuration.

2 similar comments
Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 3: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 4: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 5: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 6: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 7: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 8: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command validate-config or our pre-commit hooks for validation of the configuration.

Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 3: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 4: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 5: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 6: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 7: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}, 8: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'metadata': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command validate-config or our pre-commit hooks for validation of the configuration.

@dougsland dougsland force-pushed the packittest branch 4 times, most recently from fb1508c to 66580a2 Compare October 27, 2024 18:59
@dougsland dougsland closed this Oct 27, 2024
@dougsland dougsland reopened this Oct 28, 2024
@dougsland dougsland force-pushed the packittest branch 10 times, most recently from 0ce5b94 to 660ca30 Compare October 28, 2024 06:26
Copy link
Collaborator

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

Why not using make with enabled vars for make ?
and run make once? rpmbuild will generate whatever needed?

Makefile Outdated Show resolved Hide resolved
@dougsland dougsland force-pushed the packittest branch 4 times, most recently from eba8ff5 to e849c2e Compare October 29, 2024 05:57
Makefile Outdated
--exclude='demos' \
--exclude='.github' \
--transform s/qm/qm-${VERSION}/ \
-f $${HOME}/rpmbuild/SOURCES/v${VERSION}.tar.gz ../qm
Copy link
Collaborator

Choose a reason for hiding this comment

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

.../qm is still failing.
Please work with static dir paths.
It is failing on in rpm build and in github actions check

@dougsland dougsland force-pushed the packittest branch 11 times, most recently from 16272cd to 3cf689c Compare October 29, 2024 22:39
Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 3: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 4: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 5: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 6: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 7: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 8: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command validate-config or our pre-commit hooks for validation of the configuration.

2 similar comments
Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 3: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 4: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 5: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 6: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 7: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 8: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command validate-config or our pre-commit hooks for validation of the configuration.

Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 1: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 3: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 4: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 5: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 6: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 7: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}, 8: {'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'qm': {'value': {'pre': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command validate-config or our pre-commit hooks for validation of the configuration.

@dougsland dougsland force-pushed the packittest branch 4 times, most recently from 0450e06 to 97df7d0 Compare October 30, 2024 08:40
- build rpm
- install rpm
- execute setup

Signed-off-by: Douglas Schilling Landgraf <[email protected]>
@nforro
Copy link
Contributor

nforro commented Oct 30, 2024

@dougsland Hi, I'm from the Packit team and I was wondering, what are you trying to achieve with these changes? I have to admit I don't understand them, and perhaps there is a better way to do what you are trying to do. We are happy to help.

@dougsland
Copy link
Collaborator Author

dougsland commented Oct 30, 2024

@dougsland Hi, I'm from the Packit team and I was wondering, what are you trying to achieve with these changes? I have to admit I don't understand them, and perhaps there is a better way to do what you are trying to do. We are happy to help.

@nforro very happy to see you back here! Basically:

1: clone the repo:
    git clone https://github.com/containers/qm && cd qm
    make rpm

2: install rpm
    sudo dnf install ~/rpmbuild/RPMS/noarch/qm* -y

3: Execute setup script and check if return code is 0 (OK) or not (fails)
    if /usr/share/qm/setup; then ...

@dougsland
Copy link
Collaborator Author

copr is not the right approach, let me try a different approach, thanks to @nforro

@dougsland dougsland closed this Oct 30, 2024
@dougsland dougsland deleted the packittest branch November 10, 2024 12:38
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