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

add support for regenerating repositories #47

Open
ktdreyer opened this issue Jul 15, 2019 · 4 comments
Open

add support for regenerating repositories #47

ktdreyer opened this issue Jul 15, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@ktdreyer
Copy link
Owner

When setting up an entirely new build tag and target, it's a good idea to generate the repositories for the first time with the koji regen-repo command.

I'm thinking of a new koji_repo module, like:

  handlers:
    - name: regenerate ktdreyer-el7-build
      koji_repo:
        name: ktdreyer-el7-build
        state: regenerated

We could make this module return the values from getRepo(name) and the task_id as well.

@ktdreyer ktdreyer added the enhancement New feature or request label Jul 15, 2019
@ktdreyer
Copy link
Owner Author

ktdreyer commented Dec 9, 2019

In addition to first-time bootstrapping, It's also important to run a repo regeneration any time we change a tag's inheritance.

@ktdreyer
Copy link
Owner Author

ktdreyer commented Apr 20, 2020

Returning getRepo is kind of expensive here, and I don't think we'll use it very often. I think we will just return task_id to keep this simple for now.

@ktdreyer
Copy link
Owner Author

If a user is running kojira, that seems to kick off almost instantly in my small dev environment. Maybe we should improve any gaps in kojira upstream rather than implementing this.

@ktdreyer
Copy link
Owner Author

ktdreyer commented Jun 8, 2021

This would have helped in the internal CLOUDBLD-6000 ticket. I need to investigate whether kojira will kick off when tag inheritance changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant