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

Create a script for automatic Packit config setup in dist-git #2301

Closed
Tracked by #2298
lbarcziova opened this issue Jan 11, 2024 · 2 comments · Fixed by packit/packit#2225
Closed
Tracked by #2298

Create a script for automatic Packit config setup in dist-git #2301

lbarcziova opened this issue Jan 11, 2024 · 2 comments · Fixed by packit/packit#2225
Assignees
Labels
area/fedora Related to Fedora ecosystem complexity/single-task Regular task, should be done within days. gain/high This brings a lot of value to (not strictly a lot of) users. impact/high This issue impacts multiple/lot of users. kind/feature New feature or a request for enhancement.

Comments

@lbarcziova
Copy link
Member

lbarcziova commented Jan 11, 2024

This should be the first step in helping maintainers setting up Packit for their packages for Fedora release automation.
This script could be later used in a more automated way.

The script should:

  • generate the Packit config
    • think about what should be the input: package name, upstream project URL, upstream_tag_template (this could be also guessed by checking tags in upstream project)
    • choosing which jobs to configure (only pull_from_upstream/whole pipeline)
  • push to dist-git rawhide branch / create PR (this could be an input argument)
@lbarcziova lbarcziova added kind/feature New feature or a request for enhancement. area/fedora Related to Fedora ecosystem complexity/single-task Regular task, should be done within days. impact/high This issue impacts multiple/lot of users. gain/high This brings a lot of value to (not strictly a lot of) users. labels Jan 11, 2024
@mfocko mfocko moved this from new to ready-to-refine in Packit Kanban Board Jan 15, 2024
@majamassarini majamassarini moved this from ready-to-refine to refined in Packit Kanban Board Jan 23, 2024
@lbarcziova
Copy link
Member Author

Notes from discussing this with @xsuchy : this could be also a template with a well-described guidance text what to fill in where.

@lbarcziova lbarcziova self-assigned this Jan 26, 2024
@lbarcziova lbarcziova moved this from refined to in-progress in Packit Kanban Board Jan 26, 2024
@lbarcziova
Copy link
Member Author

After thinking about this a little bit more, I think there are 2 types of usecases we want to help with:

  1. user setting up Packit for the first time who doesn't know any of the configuration specifics - for that, the template with guidance seems to be a good fit (or some interactive script with guidance questions)
  2. user who already used Packit and wants to set it up for a lot of packages with as few manual steps as possible, in an automated way: for that the script with few input values such as URL, tag_template, changelog_style that directly pushes it to dist-git seems like a fit

lbarcziova added a commit to lbarcziova/packit.dev that referenced this issue Jan 26, 2024
lbarcziova added a commit to lbarcziova/packit.dev that referenced this issue Jan 30, 2024
lbarcziova added a commit to lbarcziova/packit.dev that referenced this issue Jan 30, 2024
lbarcziova added a commit to lbarcziova/packit.dev that referenced this issue Jan 30, 2024
softwarefactory-project-zuul bot added a commit to packit/packit.dev that referenced this issue Jan 30, 2024
Add downstream configuration template

Related to packit/packit-service#2301
This is just an idea/draft. Let me know WDYT
TODO:

 think about better placement
 reference from guide and maybe somewhere else
 revise the hints (and action commands)

Reviewed-by: Nikola Forró
Reviewed-by: Laura Barcziová
lbarcziova added a commit to lbarcziova/research that referenced this issue Jan 31, 2024
The script can generate the Packit config for dist-git repo
and push it to rawhide or create a PR against rawhide with the config.

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/research that referenced this issue Jan 31, 2024
The script can generate the Packit config for dist-git repo
and push it to rawhide or create a PR against rawhide with the config.

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 2, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 2, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 2, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 2, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
@lbarcziova lbarcziova moved this from in-progress to in-review in Packit Kanban Board Feb 2, 2024
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 5, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 5, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
lbarcziova added a commit to lbarcziova/packit that referenced this issue Feb 5, 2024
Create new command sub-group dist-git for dist-git
related functionality and introduce the init command
that initialises a dist-git repository config with jobs
for release automation.

See packit dist-git init --help

Fixes packit/packit-service#2301
softwarefactory-project-zuul bot added a commit to packit/packit that referenced this issue Feb 5, 2024
Introduce dist-git init command

Create new command sub-group dist-git for dist-git related functionality and introduce the init command that initialises a dist-git repository config with jobs for release automation.
See packit dist-git init --help
Example PR created by packit -d dist-git init --upstream-git-url https://github.com/easypost/syslog-rfc5424-formatter --actions-file ../actions.yaml --create-pr syslog : https://src.fedoraproject.org/rpms/python-syslog-rfc5424-formatter/pull-request/1#request_diff
Fixes packit/packit-service#2301
TODO:

 Write new tests or update the old ones to cover new functionality.
 Update docs

RELEASE NOTES BEGIN
We have introduced new CLI command packit dist-git init that initializes Packit configuration for release automation in dist-git repository.
RELEASE NOTES END

Reviewed-by: Tomas Tomecek <[email protected]>
@github-project-automation github-project-automation bot moved this from in-review to done in Packit Kanban Board Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fedora Related to Fedora ecosystem complexity/single-task Regular task, should be done within days. gain/high This brings a lot of value to (not strictly a lot of) users. impact/high This issue impacts multiple/lot of users. kind/feature New feature or a request for enhancement.
Projects
Archived in project
1 participant