8000 rename validate config to config validate for config grouping by olamidepeterojo · Pull Request #2559 · packit/packit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rename validate config to config validate for config grouping #2559

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

olamidepeterojo
Copy link
Contributor
@olamidepeterojo olamidepeterojo commented Mar 18, 2025

TODO:

  • Write new tests or update the old ones to cover new functionality.
  • Update doc-strings where appropriate.
  • Update or write new documentation in packit/packit.dev.
  • Tested changes

Fixes #2437

Related to

Merge before/after

RELEASE NOTES BEGIN

We have introduced a new command group config for configuration-related commands and moved validate-config command under it, resulting in the new command being packit config validate.

RELEASE NOTES END

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/40aa8fcfba3d4796828c0c4571e228dc

✔️ pre-commit SUCCESS in 2m 07s
✔️ packit-tests-rpm SUCCESS in 23m 12s
✔️ packit-tests-pip-deps SUCCESS in 23m 25s
✔️ packit-tests-git-main SUCCESS in 23m 52s
✔️ packit-tests-pip-deps-sess-rec SUCCESS in 3m 04s
✔️ packit-tests-git-main-sess-rec SUCCESS in 3m 13s
✔️ reverse-dep-packit-service-tests SUCCESS in 5m 18s

Copy link
Member
@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

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

thanks for the contribution! This was not working locally for me, I have added a comment on what you can try to do instead. Let me know in case of any questions.

Comment on lines 3 to 15
8000

import click

from packit.cli.config import config # Import the new config group


@click.group()
def cli():
pass


# Register the config group.
cli.add_command(config)

if __name__ == "__main__":
cli()
Copy link
Member

Choose a reason for hiding this comment

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

instead of this, the command should be added here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok @lbarcziova. Thanks for taking out time to review my code. will amend as requested

Copy link
Contributor

Build failed.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/50499e34ae894f6da1cf9b0502ac21f2

pre-commit FAILURE in 2m 02s
✔️ packit-tests-rpm SUCCESS in 23m 36s
✔️ packit-tests-pip-deps SUCCESS in 23m 50s
✔️ packit-tests-git-main SUCCESS in 23m 57s
✔️ packit-tests-pip-deps-sess-rec SUCCESS in 2m 45s
✔️ packit-tests-git-main-sess-rec SUCCESS in 3m 05s
✔️ reverse-dep-packit-service-tests SUCCESS in 5m 04s

Comment on lines 3 to 15

import click

from packit.cli.config import config # Import the new config group


@click.group()
def cli():
pass


if __name__ == "__main__":
cli()
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 say this is not needed as we are initialising it here

Comment on lines 3 to 7

from packit.cli.packit_base import packit_base

if __name__ == "__main__":
packit_base()
Copy link
Member

Choose a reason for hiding this comment

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

I think this file doesn't need any changes generally, because the initialisation happens already here

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/0ca80407aaa2441c8c7b7bdcb11693c1

✔️ pre-commit SUCCESS in 2m 04s
✔️ packit-tests-rpm SUCCESS in 23m 23s
✔️ packit-tests-pip-deps SUCCESS in 23m 22s
✔️ packit-tests-git-main SUCCESS in 23m 49s
✔️ packit-tests-pip-deps-sess-rec SUCCESS in 2m 38s
✔️ packit-tests-git-main-sess-rec SUCCESS in 2m 51s
✔️ reverse-dep-packit-service-tests SUCCESS in 4m 32s

Copy link
Member
@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Can you please squash the commits and rebase?

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/da74790277654a1692330c1fe45cef46

✔️ pre-commit SUCCESS in 2m 06s
✔️ packit-tests-rpm SUCCESS in 23m 18s
✔️ packit-tests-pip-deps SUCCESS in 23m 30s
✔️ packit-tests-git-main SUCCESS in 23m 55s
✔️ packit-tests-pip-deps-sess-rec SUCCESS in 2m 38s
✔️ packit-tests-git-main-sess-rec SUCCESS in 2m 57s
✔️ reverse-dep-packit-service-tests SUCCESS in 4m 55s

@olamidepeterojo
Copy link
Contributor Author

Hello @lbarcziova , a gentle reminder that i have squashed and rebased

Signed-off-by: Olamidepeterojo <peterojoolamide@gmail.com>

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
@lbarcziova
Copy link
Member

@olamidepeterojo sorry, I was out last week, going to merge this now.

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/d4736898edb54a46bae99b65ade668ea

✔️ pre-commit SUCCESS in 2m 09s
✔️ packit-tests-rpm SUCCESS in 23m 33s
✔️ packit-tests-pip-deps SUCCESS in 23m 29s
✔️ packit-tests-git-main SUCCESS in 23m 37s
✔️ packit-tests-pip-deps-sess-rec SUCCESS in 2m 43s
✔️ packit-tests-git-main-sess-rec SUCCESS in 3m 01s
✔️ reverse-dep-packit-service-tests SUCCESS in 4m 41s

@lbarcziova lbarcziova added the mergeit Merge via Zuul label Mar 31, 2025
@lbarcziova
Copy link
Member

regate

Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/63ea803c67d243ac94a765429e181eea

✔️ pre-commit SUCCESS in 2m 05s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit a66cbcb into packit:main Apr 1, 2025
30 of 33 checks passed
lbarcziova added a commit to lbarcziova/packit.dev that referenced this pull request Apr 7, 2025
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
lbarcziova added a commit to lbarcziova/packit-service that referenced this pull request Apr 7, 2025
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
softwarefactory-project-zuul bot added a commit to packit/packit-service that referenced this pull request Apr 7, 2025
Adjust validate-config occurences to the rename

The command was renamed from validate-config to config validate in packit/packit#2559

Reviewed-by: Matej Focko
lbarcziova added a commit to lbarcziova/packit.dev that referenced this pull request Apr 7, 2025
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
lbarcziova added a commit to lbarcziova/packit.dev that referenced this pull request Apr 8, 2025
The command was renamed from `validate-config` to `config validate` in packit/packit#2559
softwarefactory-project-zuul bot added a commit to packit/packit.dev that referenced this pull request Apr 8, 2025
Adjust validate-config occurences to the rename

The command was renamed from validate-config to config validate in packit/packit#2559
TODO:

 fix references (packit-service, ?)

RELEASE NOTES BEGIN
N/A
RELEASE NOTES END

Reviewed-by: František Lachman <flachman@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge via Zuul
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CLI] Introduce packit config group
2 participants
0